From c4ab11d05c420541ac7b310bae6c2da7d5e58fae Mon Sep 17 00:00:00 2001 From: Mac Browning Date: Fri, 9 Oct 2015 20:26:05 -0400 Subject: [PATCH] add root endpoint with redirect --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.go b/main.go index c56c397..02f71c2 100644 --- a/main.go +++ b/main.go @@ -34,6 +34,15 @@ var ( func serveHTTP() { http.Handle(*metricsEndpoint, prometheus.Handler()) + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte(` + StatsD Bridge + +

StatsD Bridge

+

Metrics

+ + `)) + }) http.ListenAndServe(*listenAddress, nil) }