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

Alert state is not surfaced when using Grafana Unified Alerting #53

Open
elizabeth-prairie opened this issue Jan 25, 2023 · 0 comments · May be fixed by #65
Open

Alert state is not surfaced when using Grafana Unified Alerting #53

elizabeth-prairie opened this issue Jan 25, 2023 · 0 comments · May be fixed by #65

Comments

@elizabeth-prairie
Copy link

Current Behavior

The alert state is not surfaced on the EntityGrafanaAlertsCard component when using Grafana Unified Alerting.

image

Expected Behavior

We expect that the alert state be surfaced on the EntityGrafanaAlertsCard component when using Grafana Unified Alerting, just as it is for the Grafana Legacy Alerts.

image

Troubleshooting

We identified that the alert state is intentionally disabled when using Grafana Unified Alerting. We suspect this was the case as the API that is currently used to retrieve the alerts (/api/ruler/grafana/api/v1/rules) does not return the alert state.

Can you provide context as to why the /api/ruler/grafana/api/v1/rules endpoint was chosen?

Possible Solutions

The /api/prometheus/grafana/api/v1/alerts endpoint could be called in conjunction with the /api/ruler/grafana/api/v1/rules endpoint to retrieve the alert state.

Alternatively, the /api/prometheus/grafana/api/v1/rules endpoint appears to return the majority of the needed information, however this does not seem to include rule_uid.

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