Skip to content

Conversation

alexander-akhmetov
Copy link
Contributor

@alexander-akhmetov alexander-akhmetov commented Jul 26, 2025

What is this feature?

Adds rule group name validation to the the Alerting Prometheus conversion API. Currently it's possible to send a rule group with an empty name, and this PR makes this impossible.

Also improves error handling in the conversion API by propagating error messages to API responses.

@github-project-automation github-project-automation bot moved this to In review in Alerting Jul 26, 2025
@alexander-akhmetov alexander-akhmetov added no-changelog Skip including change in changelog/release notes add to changelog and removed no-changelog Skip including change in changelog/release notes labels Jul 26, 2025
@alexander-akhmetov alexander-akhmetov marked this pull request as ready for review July 26, 2025 22:04
@alexander-akhmetov alexander-akhmetov requested a review from a team as a code owner July 26, 2025 22:04
@alexander-akhmetov alexander-akhmetov changed the title Alerting: Add rule group name validation to the conversion API Alerting: Add rule group name validation to the Prometheus conversion API Jul 27, 2025
@alexander-akhmetov alexander-akhmetov added the backport v12.1.x Mark PR for automatic backport to v12.1.x label Jul 28, 2025
@alexander-akhmetov alexander-akhmetov merged commit f969eb0 into main Jul 28, 2025
123 checks passed
@alexander-akhmetov alexander-akhmetov deleted the alexander-akhmetov/validate-group-name branch July 28, 2025 09:44
@github-project-automation github-project-automation bot moved this from In review to Done in Alerting Jul 28, 2025
grafana-delivery-bot bot pushed a commit that referenced this pull request Jul 28, 2025
… API (#108740)

Alerting: Add rule group name validation to the conversion API
(cherry picked from commit f969eb0)
alexander-akhmetov added a commit that referenced this pull request Jul 28, 2025
…etheus conversion API (#108767)

Alerting: Add rule group name validation to the Prometheus conversion API (#108740)

Alerting: Add rule group name validation to the conversion API
(cherry picked from commit f969eb0)

Co-authored-by: Alexander Akhmetov <me@alx.cx>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/alerting Grafana Alerting area/backend backport v12.1.x Mark PR for automatic backport to v12.1.x
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants