File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,6 @@ const (
4848staticLabelName  =  "static" 
4949)
5050
51- // landingPage contains the HTML served at '/'. 
52- // TODO: Make cu nicer and more informative. 
53- var  landingPage  =  []byte (`<html> 
54- <head><title>Postgres exporter</title></head> 
55- <body> 
56- <h1>Postgres exporter</h1> 
57- <p><a href='`  +  * metricPath  +  `'>Metrics</a></p> 
58- </body> 
59- </html> 
60- ` )
61- 
6251// ColumnUsage should be one of several enum values which describe how a 
6352// queried row is to be converted to a Prometheus metric. 
6453type  ColumnUsage  int 
@@ -1048,6 +1037,17 @@ func main() {
10481037log .AddFlags (kingpin .CommandLine )
10491038kingpin .Parse ()
10501039
1040+ // landingPage contains the HTML served at '/'. 
1041+ // TODO: Make cu nicer and more informative. 
1042+ var  landingPage  =  []byte (`<html> 
1043+ <head><title>Postgres exporter</title></head> 
1044+ <body> 
1045+ <h1>Postgres exporter</h1> 
1046+ <p><a href='`  +  * metricPath  +  `'>Metrics</a></p> 
1047+ </body> 
1048+ </html> 
1049+ ` )
1050+ 
10511051if  * onlyDumpMaps  {
10521052dumpMaps ()
10531053return 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments