Check rule files
Check the syntax of Prometheus alerting and recording rule files
promtool check rules rules.yml
- tool
- prometheus30 commands
- tags
- prometheusmonitoring
More prometheus commands
-
amtool silence add --alertmanager.url=http://alertmanager:9093 alertname=<name> --duration=2h --comment='Maintenance'Create a silence to stop alert notifications during maintenance
-
amtool silence query --alertmanager.url=http://alertmanager:9093Show all active silences in Alertmanager
-
amtool silence expire <id> --alertmanager.url=http://alertmanager:9093End an active silence right now
-
amtool check-config alertmanager.ymlValidate the Alertmanager configuration file
-
amtool alert query --alertmanager.url=http://alertmanager:9093Show all firing alerts in Alertmanager