diff --git a/pkg/server.go b/pkg/server.go index 5db4b5e..2776b7f 100644 --- a/pkg/server.go +++ b/pkg/server.go @@ -40,6 +40,16 @@ func NewMetricsServer(c *Config, metrics chan string) (*MetricsServer, func(), e metrics: "", } + router.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte(` + GPU Exporter + +

GPU Exporter

+

Metrics

+ + `)) + }) + router.HandleFunc("/health", serverv1.Health) router.HandleFunc("/metrics", serverv1.Metrics)