prometheus_list_alerts
Retrieve current Prometheus alerts, including firing and pending ones, with their labels, severity, state, active time, and value. Results grouped by state and severity count.
Instructions
List all active and pending alerts from Prometheus.
Wraps GET /api/v1/alerts. Returns every alert that Prometheus currently
tracks, with labels (including alertname, severity), state
(firing / pending), the time it became active, and its current value.
Also returns a summary grouped by state and a count by severity label.
Examples:
- Use when: "Are there any firing alerts right now?"
→ check firing_count and alerts where state='firing'.
- Use when: "Show me all critical alerts"
→ filter alerts by labels.severity == 'critical'.
- Use when: Checking system health during an incident — list alerts
first to understand what's firing before querying metrics.
- Don't use when: You want historical alert data (Prometheus stores only
current state; use Alertmanager or a recording rule for history).
- Don't use when: You want raw metric values
(call prometheus_query or prometheus_query_range).
Returns:
dict with total_count / firing_count / pending_count /
state_summary / alerts (list with labels, annotations,
state, active_at, value). Enhanced with correlation
information when requested.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Target instance name (omit for default instance) | |
| correlation_context | No | Optional correlation context ID from federation_analyze_alerts for enhanced alert analysis. | |
| include_correlation_info | No | Include correlation-relevant information in output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alerts | Yes | ||
| total_count | Yes | ||
| firing_count | Yes | ||
| pending_count | Yes | ||
| state_summary | Yes |