get_alerts
Fetch active alerts from Prometheus with filters for severity, state, alert name, job, server name, and instance to monitor system health and identify issues.
Instructions
Fetch active alerts from Prometheus /api/v1/alerts.
Filters (exact-match):
severity/state/alertname/job/server_name/instance
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| severity | No | ||
| state | No | ||
| alertname | No | ||
| job | No | ||
| server_name | No | ||
| instance | No | ||
| include_alerts | No | ||
| environment | No | ||
| env_hint | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |