-
Notifications
You must be signed in to change notification settings - Fork 169
Description
As part of the Grafana MCP toolkit, we need a tool that, given a dashboard UID, can enumerate all alerts associated with that dashboard UID across all environments returning the results in structured JSON format.
Key Requirements
Input:
dashboard_uid (e.g., abcd1234)
Output:
A JSON array, where each entry contains:
alert_name: The alert rule’s name or title
panel_title: The title of the linked panel (if applicable)
panel_id: The ID of the linked panel (if applicable)
condition: The alert condition or expression (e.g., metric, threshold, and duration)
status: The alert’s current state (enabled or paused)
notification_channels: List of notification channels (e.g., Slack, Opsgenie, etc.)
runbook_url: Associated runbook URL or alert message (if present)
environment: Environment name/context (e.g., prd, dev, stg, etc.)