cortex icon indicating copy to clipboard operation
cortex copied to clipboard

Support /api/v1/parse_query API (Experimental)

Open friedrichg opened this issue 9 months ago • 3 comments

Is your feature request related to a problem? Please describe. Dashboard tools, in this specific case perses, might relay on this prometheus API part to parse the query.

Describe the solution you'd like Query frontend should handle this part

Describe alternatives you've considered None

Additional context Yes, it's experimental, but we should implement it per https://www.hyrumslaw.com/ ;) https://prometheus.io/docs/prometheus/latest/querying/api/#parsing-a-promql-expressions-into-a-abstract-syntax-tree-ast

friedrichg avatar Mar 26 '25 09:03 friedrichg

The treeview feature is enabled with this https://github.com/perses/perses/issues/2420#issuecomment-2482376705

friedrichg avatar Mar 26 '25 09:03 friedrichg

This API is already supported and exposed by Prometheus API Router. I agree it is better to handle it in Query Frontend only but we should be able to enable it today on both Query Frontend and Querier by registering the route here.

yeya24 avatar Mar 29 '25 21:03 yeya24

Hi

Does this issue still require handling? If so, can I take it?

pnijem avatar May 04 '25 16:05 pnijem