From 8cba9ac45b67931fd34345352be549b159cd0601 Mon Sep 17 00:00:00 2001 From: yeya24 Date: Fri, 26 Mar 2021 11:22:50 -0400 Subject: [PATCH] Add POST method for exemplars API Signed-off-by: yeya24 --- pkg/api/query/v1.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/api/query/v1.go b/pkg/api/query/v1.go index 3852ca0abe..cf1db16263 100644 --- a/pkg/api/query/v1.go +++ b/pkg/api/query/v1.go @@ -164,6 +164,7 @@ func (qapi *QueryAPI) Register(r *route.Router, tracer opentracing.Tracer, logge r.Get("/metadata", instr("metadata", NewMetricMetadataHandler(qapi.metadatas, qapi.enableMetricMetadataPartialResponse))) r.Get("/query_exemplars", instr("exemplars", NewExemplarsHandler(qapi.exemplars, qapi.enableExemplarPartialResponse))) + r.Post("/query_exemplars", instr("exemplars", NewExemplarsHandler(qapi.exemplars, qapi.enableExemplarPartialResponse))) } type queryData struct {