Skip to content

[FEATURE] prometheus/validation: add standalone PromQL validation module#723

Draft
slashpai wants to merge 1 commit into
perses:mainfrom
slashpai:promql-validate
Draft

[FEATURE] prometheus/validation: add standalone PromQL validation module#723
slashpai wants to merge 1 commit into
perses:mainfrom
slashpai:promql-validate

Conversation

@slashpai

@slashpai slashpai commented Jul 6, 2026

Copy link
Copy Markdown
Member

Add a lightweight Go module that validates PromQL expressions using the Prometheus parser. Expressions containing Perses variable references ( or ) are skipped since they cannot be parsed without substitution. The module has no dependency on Perses core, allowing it to be imported by both the backend and perses-operator.

Description

Screenshots

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

Add a lightweight Go module that validates PromQL expressions using the
Prometheus parser. Expressions containing Perses variable references
( or ) are skipped since they cannot be parsed without
substitution. The module has no dependency on Perses core, allowing it
to be imported by both the backend and perses-operator.

Signed-off-by: Jayapriya Pai <janantha@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant