From 7459a197c61be544512256029e6e69b6bc234786 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 e34934bfa6..435277438c 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 }