From c4d309aa41739ff92518f404a9ca153cb65d6f32 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 6 Oct 2020 15:09:07 +0300 Subject: [PATCH] app/vmagent: add a link to https://victoriametrics.github.io/vmagent.html from main page --- app/vmagent/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/vmagent/main.go b/app/vmagent/main.go index af1de694d..8caf8fa65 100644 --- a/app/vmagent/main.go +++ b/app/vmagent/main.go @@ -138,6 +138,10 @@ func main() { } func requestHandler(w http.ResponseWriter, r *http.Request) bool { + if r.RequestURI == "/" { + fmt.Fprintf(w, "vmagent - see docs at https://victoriametrics.github.io/vmagent.html") + return true + } path := strings.Replace(r.URL.Path, "//", "/", -1) switch path { case "/api/v1/write":