From 31d6566aff82b5fe7d7b709ca587a277ef2812fb Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 3 Jun 2019 18:17:25 +0300 Subject: [PATCH] app/vminsert: accept data on `/insert//prometheus/api/v1/write` --- app/vminsert/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vminsert/main.go b/app/vminsert/main.go index 28ec2aa06..1cdeca663 100644 --- a/app/vminsert/main.go +++ b/app/vminsert/main.go @@ -97,7 +97,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool { } switch p.Suffix { - case "prometheus/", "prometheus": + case "prometheus/", "prometheus", "prometheus/api/v1/write": prometheusWriteRequests.Inc() if err := prometheus.InsertHandler(at, r, int64(*maxInsertRequestSize)); err != nil { prometheusWriteErrors.Inc()