diff --git a/postgres_exporter.go b/postgres_exporter.go index 9fd39d7e..a976e75f 100644 --- a/postgres_exporter.go +++ b/postgres_exporter.go @@ -48,17 +48,6 @@ const ( staticLabelName = "static" ) -// landingPage contains the HTML served at '/'. -// TODO: Make cu nicer and more informative. -var landingPage = []byte(` -Postgres exporter - -

Postgres exporter

-

Metrics

- - -`) - // ColumnUsage should be one of several enum values which describe how a // queried row is to be converted to a Prometheus metric. type ColumnUsage int @@ -1048,6 +1037,17 @@ func main() { log.AddFlags(kingpin.CommandLine) kingpin.Parse() + // landingPage contains the HTML served at '/'. + // TODO: Make cu nicer and more informative. + var landingPage = []byte(` + Postgres exporter + +

Postgres exporter

+

Metrics

+ + + `) + if *onlyDumpMaps { dumpMaps() return