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 099e44005b
commit 51291015a5

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