Skip to content

feat: Add PromQL expression validation with Perses variable support - #53

Merged
heliapb merged 1 commit into
perses:mainfrom
slashpai:feat/validate
Jul 29, 2026
Merged

feat: Add PromQL expression validation with Perses variable support#53
heliapb merged 1 commit into
perses:mainfrom
slashpai:feat/validate

Conversation

@slashpai

@slashpai slashpai commented Jul 27, 2026

Copy link
Copy Markdown
Member

Add PromQL expression validation

@slashpai

Copy link
Copy Markdown
Member Author

@heliapb @saswatamcode Looking for some feedback, PTAL when you get a chance

Comment thread builder_test.go Outdated
@heliapb

heliapb commented Jul 28, 2026

Copy link
Copy Markdown
Member

other than that LGTM

Comment thread label/label.go Outdated
Add Validaite/ValidateWithVars for round-trip PromQL syntax checks
(with Perses dashboard variable substitution). EqualRegexp/
NotEqualRegexp compile regex and panic on invalid patterns.

Signed-off-by: Jayapriya Pai <janantha@redhat.com>

@saswatamcode saswatamcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Looks like this won't break API too :)

@slashpai slashpai changed the title feat!: Add PromQL expression validation with Perses variable support feat: Add PromQL expression validation with Perses variable support Jul 28, 2026
@heliapb
heliapb merged commit 2ecc15b into perses:main Jul 29, 2026
7 checks passed
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.

3 participants