Skip to content

Conversation

soniaAguilarPeiron
Copy link
Contributor

What is this feature?

This PR adds additional filter when importing datasource-managed rules through the UI.
It skips rules from synthetics monitoring see more context here

Why do we need this feature?

Rules managed by plugins should not be imported. Synthetics rules don't use the __grafana_origin to indicate that they are managed by a plugin, so we need to filtering out these rules differently.

Who is this feature for?

Alerting users.

Which issue(s) does this PR fix?:

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@soniaAguilarPeiron soniaAguilarPeiron added this to the 12.1.x milestone Jun 5, 2025
@soniaAguilarPeiron soniaAguilarPeiron self-assigned this Jun 5, 2025
@soniaAguilarPeiron soniaAguilarPeiron added the area/alerting Grafana Alerting label Jun 5, 2025
@soniaAguilarPeiron soniaAguilarPeiron requested a review from a team as a code owner June 5, 2025 07:50
@soniaAguilarPeiron soniaAguilarPeiron requested review from gillesdemey and removed request for a team June 5, 2025 07:50
@github-project-automation github-project-automation bot moved this to In review in Alerting Jun 5, 2025

This comment has been minimized.

@soniaAguilarPeiron soniaAguilarPeiron force-pushed the alerting/filter-out-synthetics-cloud-rules-when-importing branch from 96e5cc3 to 3b559ec Compare June 5, 2025 07:56

This comment has been minimized.

@soniaAguilarPeiron soniaAguilarPeiron changed the title Alerting: filter out synthetic datasource-managed rules when importing to GMA t… Alerting: Filter out synthetic datasource-managed rules when importing to GMA Jun 5, 2025
Copy link
Contributor

@konrad147 konrad147 left a comment

Choose a reason for hiding this comment

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

LGTM!

@soniaAguilarPeiron soniaAguilarPeiron merged commit 32336d5 into main Jun 6, 2025
82 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Alerting Jun 6, 2025
@soniaAguilarPeiron soniaAguilarPeiron deleted the alerting/filter-out-synthetics-cloud-rules-when-importing branch June 6, 2025 10:33
YannickAlex07 pushed a commit to YannickAlex07/grafana that referenced this pull request Jul 11, 2025
…g to GMA (grafana#106358)

* filter out synthetic datasource-managed rules when importing to GMA through the UI

* address pr feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants