From b977c8484b6341f706943cc1fc03247e5e836e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sat, 11 May 2024 09:41:59 +0200 Subject: [PATCH] Remove landing page (#1471) --- exporter.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/exporter.go b/exporter.go index 2a0aecbb..02dbb984 100644 --- a/exporter.go +++ b/exporter.go @@ -211,34 +211,6 @@ func main() { mux.HandleFunc("/debug/pprof/trace", pprof.Trace) } - if *metricsPath != "/" && *metricsPath != "" { - landingConfig := web.LandingConfig{ - Name: "Windows Exporter", - Description: "Prometheus Exporter for Windows servers", - Version: version.Info(), - Links: []web.LandingLinks{ - { - Address: *metricsPath, - Text: "Metrics", - }, - { - Address: "/health", - Text: "Health Check", - }, - { - Address: "/version", - Text: "Version Info", - }, - }, - } - landingPage, err := web.NewLandingPage(landingConfig) - if err != nil { - _ = level.Error(logger).Log("msg", "failed to generate landing page", "err", err) - os.Exit(1) - } - mux.Handle("/", landingPage) - } - _ = level.Info(logger).Log("msg", "Starting windows_exporter", "version", version.Info()) _ = level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext()) _ = level.Debug(logger).Log("msg", "Go MAXPROCS", "procs", runtime.GOMAXPROCS(0))