From 7ccdb57ea4923385e97618d0499d248b26fe0912 Mon Sep 17 00:00:00 2001 From: Eugene Ma Date: Wed, 3 Apr 2024 16:10:24 -0700 Subject: [PATCH] add "/api/v1/push" to request handler (#5990) Co-authored-by: Eugene Ma Co-authored-by: Roman Khavronenko Co-authored-by: Aliaksandr Valialkin --- 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 e34934bfa..435277438 100644 --- a/app/vmagent/main.go +++ b/app/vmagent/main.go @@ -264,7 +264,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool { path = strings.TrimSuffix(path, "/") } switch path { - case "/prometheus/api/v1/write", "/api/v1/write": + case "/prometheus/api/v1/write", "/api/v1/write", "/api/v1/push": if common.HandleVMProtoServerHandshake(w, r) { return true }