app/vmagent: return 200 from /-/reload endpoint as Prometheus does

This commit is contained in:
Aliaksandr Valialkin 2020-05-07 19:29:27 +03:00
parent 2f28e945b8
commit 28ad350a31

View file

@ -160,7 +160,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
case "/-/reload":
promscrapeConfigReloadRequests.Inc()
procutil.SelfSIGHUP()
w.WriteHeader(http.StatusNoContent)
w.WriteHeader(http.StatusOK)
return true
}
return false