From 46683eadf74ca6c7316501a5935f855054319238 Mon Sep 17 00:00:00 2001 From: pbudner Date: Sat, 11 Mar 2023 13:50:52 +0100 Subject: [PATCH] fix: advertise correct flag to enable remote write receiver Signed-off-by: pbudner --- web/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/v1/api.go b/web/api/v1/api.go index 157786ccb..3b6ade562 100644 --- a/web/api/v1/api.go +++ b/web/api/v1/api.go @@ -1494,7 +1494,7 @@ func (api *API) remoteWrite(w http.ResponseWriter, r *http.Request) { if api.remoteWriteHandler != nil { api.remoteWriteHandler.ServeHTTP(w, r) } else { - http.Error(w, "remote write receiver needs to be enabled with --enable-feature=remote-write-receiver", http.StatusNotFound) + http.Error(w, "remote write receiver needs to be enabled with --web.enable-remote-write-receiver", http.StatusNotFound) } }