Skip to content

Commit

Permalink
Merge pull request #3980 from yeya24/add-post-method
Browse files Browse the repository at this point in the history
Add POST method for exemplars API
  • Loading branch information
yeya24 authored Mar 26, 2021
2 parents 5139e33 + 8cba9ac commit 4c3e1aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/query/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4c3e1aa

Please sign in to comment.