We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b8367 commit 57fecb4Copy full SHA for 57fecb4
qcloud_exporter.go
@@ -61,5 +61,15 @@ func main() {
61
62
http.Handle(*metricsPath, promhttp.HandlerFor(registry, promhttp.HandlerOpts{}))
63
64
+ http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
65
+ w.Write([]byte(`<html>
66
+ <head><title>TencentCloud Exporter</title></head>
67
+ <body>
68
+ <h1>TencentCloud Exporter</h1>
69
+ <p><a href='` + *metricsPath + `'>Metrics</a></p>
70
+ </body>
71
+ </html>`))
72
+ })
73
+
74
log.Fatal(http.ListenAndServe(*listenAddress, nil))
75
}
0 commit comments