Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alerting: Show alert rules from Amazon Managed Service for Prometheus for the Amazon Prometheus data source #94508

Closed

Conversation

kevinwcyu
Copy link
Contributor

What is this feature?

The core Prometheus data source currently supports displaying alert rules that are created in Amazon Managed Service for Prometheus (later referred to as AMP) on the "Alert rules" page in Grafana. This PR is to add the same support for the Amazon Managed Service for Prometheus data source (later referred to as Amazon Prometheus DS).

For context, the Amazon Prometheus DS was split off from the core Prometheus data source. Since the new data source has a different data source id, it doesn't get recognized as a Prometheus data source, so this feature doesn't work when using the Amazon Prometheus DS.

Here's a screenshot showing the results of this PR. There is an Amazon Prometheus DS and a core Prometheus data source that have both been configured to connect to AMP. Both of the data sources now show the alert rules configured in the "Data source-managed" section of the "Alert rules" page.

alert rules

Why do we need this feature?

The Amazon Prometheus DS should maintain feature parity with the core Prometheus data source for features that existed before the split.

Who is this feature for?

Users of the Amazon Prometheus DS

Which issue(s) does this PR fix?:

Fixes grafana/grafana-amazonprometheus-datasource#251

Special notes for your reviewer:

I have not added any tests yet because I wanted to get feedback on whether this approach is OK first.

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.

@kevinwcyu kevinwcyu requested review from a team as code owners October 9, 2024 19:24
@kevinwcyu kevinwcyu requested review from wbrowne, marefr, oshirohugo, gillesdemey, tomratcliffe, konrad147 and soniaAguilarPeiron and removed request for a team October 9, 2024 19:24
@github-actions github-actions bot added this to the 11.3.x milestone Oct 9, 2024
@kevinwcyu kevinwcyu changed the title Show alert rules from Amazon Managed Service for Prometheus for the Amazon Prometheus data source Alerting: Show alert rules from Amazon Managed Service for Prometheus for the Amazon Prometheus data source Oct 9, 2024
@kevinwcyu kevinwcyu marked this pull request as draft October 11, 2024 23:03
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update or ping for review. Thank you for your contributions!

@github-actions github-actions bot added the stale Issue with no recent activity label Nov 11, 2024
Copy link
Contributor

This pull request has been automatically closed because it has not had any further activity in the last 2 weeks. Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant