List active alerts prometheus

Show only firing alerts with name and severity

curl -s http://prometheus:9090/api/v1/alerts | jq '.data.alerts[] | select(.state=="firing") | {name: .labels.alertname, severity: .labels.severity}'
more prometheus all 30 commands →