From 28ad350a31d445127abbe6ae66616dc687aa6e8f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 7 May 2020 19:29:27 +0300 Subject: [PATCH] app/vmagent: return 200 from `/-/reload` endpoint as Prometheus does --- app/vmagent/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmagent/main.go b/app/vmagent/main.go index ad0f3d0127..adb55223e8 100644 --- a/app/vmagent/main.go +++ b/app/vmagent/main.go @@ -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