app/vmagent: add a link to https://victoriametrics.github.io/vmagent.html from main page

This commit is contained in:
Aliaksandr Valialkin 2020-10-06 15:09:07 +03:00
parent abfd3a8fab
commit c4d309aa41

View file

@ -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":