Skip to content

Commit

Permalink
query: support POST method for query/query_range endpoints (#939)
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Lee <[email protected]>
  • Loading branch information
eahydra authored and GiedriusS committed Mar 20, 2019
1 parent 12546c2 commit 44272a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/query/api/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ func (api *API) Register(r *route.Router, tracer opentracing.Tracer, logger log.
r.Options("/*path", instr("options", api.options))

r.Get("/query", instr("query", api.query))
r.Post("/query", instr("query", api.query))

r.Get("/query_range", instr("query_range", api.queryRange))
r.Post("/query_range", instr("query_range", api.queryRange))

r.Get("/label/:name/values", instr("label_values", api.labelValues))

Expand Down

0 comments on commit 44272a6

Please sign in to comment.