Skip to content

Conversation

siddarth2810
Copy link
Contributor

@siddarth2810 siddarth2810 commented Aug 18, 2025

What this PR does:
The PR enables /api/v1/parse_query API (experimental) which parses a PromQL expression and returns it as a JSON-formatted AST (abstract syntax tree).

Which issue(s) this PR fixes:
Fixes #6671

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Siddarth Gundu <[email protected]>
CHANGELOG.md Outdated
# Changelog

## master / unreleased
* [FEATURE] Query Frontend: Add support for /api/v1/parse_query API (experimental) to parse a PromQL expression and return it as a JSON-formatted AST (abstract syntax tree). #6978
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the changelog entry down to the FEATURE part? We group items order by change, feature, enhancement and bugfix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad ! Changed it, thank you so much.

Signed-off-by: Siddarth Gundu <[email protected]>
@SungJin1212
Copy link
Member

Thanks

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 19, 2025
@danielblando danielblando merged commit 3d92801 into cortexproject:master Aug 21, 2025
32 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/query-frontend lgtm This PR has been approved by a maintainer size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support /api/v1/parse_query API (Experimental)

4 participants