IDP Grafana plugin: Add support for Unified Alerting and dashboard embedding on AWS Managed Grafana
C
Classic Mole
Problem:
The IDP Grafana plugin does not fully support AWS Managed Grafana when Unified Alerting is enabled (unifiedAlerting: true):
- Alert display (grafana/alert-label-selector) – The plugin queries Grafana's Unified Alerting ruler API and receives a successful (HTTP 200) response, but fails to surface matching alerts in the IDP Grafana tab, even when the alert is actively firing with a label that matches the selector. Other Grafana queries (e.g. dashboard tag search) work correctly through the same proxy path, indicating the issue lies in how the plugin parses/filters the Unified Alerting response — potentially due to a structural difference in AWS Managed Grafana's API output.
- Dashboard embedding (grafana/overview-dashboard) – Embedded dashboards load directly in the browser (not through the Delegate Proxy), which triggers Grafana's login redirect and gets blocked by its Content-Security-Policy, resulting in a failed embed. This suggests the current embedding approach doesn't account for Grafana environments requiring authenticated/proxied access.
Ask:
- Add/fix support for parsing Unified Alerting responses from AWS Managed Grafana so label-matched alerts render correctly in IDP.
- Support an authenticated or proxied embedding mechanism for grafana/overview-dashboard that works with Grafana instances enforcing login and CSP restrictions (such as AWS Managed Grafana).
Impact:
Without this, customers using AWS Managed Grafana cannot reliably use IDP's Grafana alert and dashboard-embed features, limiting IDP's Grafana integration to a subset of supported Grafana deployments.