prometheus/prometheus — pull request #128 by discordianfish (2013-04-10 12:44:06+00:00)
Title: Convert addresses pointing to localhost in status.

Until now, targets pointing to localhost in the status view are linked to localhost, so you can't follow those links by clicking on them.
This change converts the links to point to the hostname of the prometheus server.

Before:
http://localhost:9090/metrics.json

After:
http://localhost:9090/metrics.json

Still not 100% sure we should do it like that, but it pretty straight forward. Another option would be to convert the address right before serving the view, either in the template (web/templates/status.html) or when rendering it (web/status.go).
Beside that, we might want that feature configurable - but I'm not sure about that.

So what do you think?