List active alerts
Show all firing alerts in Alertmanager
amtool alert query --alertmanager.url=http://alertmanager:9093
- tool
- prometheus30 commands
More prometheus commands
-
curl -X POST http://prometheus:9090/-/reloadHot-reload Prometheus configuration without restart
-
curl -sG 'http://prometheus:9090/api/v1/query' --data-urlencode 'query=up' | jq '.data.result'Run an instant PromQL query via HTTP API
-
curl -sG 'http://prometheus:9090/api/v1/query_range' --data-urlencode 'query=rate(http_requests_total[5m])' --data-urlencode 'start=1h' --data-urlencode 'end=now' --data-urlencode 'step=60'Fetch time-series data over a range for a rate metric
-
topk(10, sum by (pod) (rate(container_cpu_usage_seconds_total[5m])))PromQL: top 10 pods by CPU usage rate
-
100 - (node_filesystem_avail_bytes{mountpoint="/"} / node_filesystem_size_bytes{mountpoint="/"} * 100) > 85PromQL expression: fire when root disk > 85% used