diff --git a/main.go b/main.go index 6e842d3..8149012 100644 --- a/main.go +++ b/main.go @@ -141,12 +141,15 @@ func main() { prometheus.MustRegister(PrometheusExporter) - // 400 Bad Request for anything except the configured metrics path, or health if configured. - // If you want to make the path obscure to hide it from snooping while still exposing - // it to the public web, you don't want to show some "go here instead" message at root etc. if StartParams.Path != "/" { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusBadRequest) + w.Write([]byte(` + Varnish Exporter + +

Varnish Exporter

+

Metrics

+ +`)) }) } if StartParams.HealthPath != "" {