Troubleshooting
An administrator edited the alert rule file /etc/prometheus/rules/cpu.yml and wants to check only its syntax before reloading Prometheus. Which command does this?
Show the answer
Correct answerB. promtool check rules /etc/prometheus/rules/cpu.yml
promtool check rules validates the syntax and expressions of Prometheus rule files. amtool check-config is tempting but validates Alertmanager configuration files, not Prometheus rule files.