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 cfd720e772
commit d16dbfd639

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