promtool
Tooling for the Prometheus monitoring system. tldr-pages
On several platforms
Several platforms
Check if the configuration files are valid or not (if present report errors)
promtool check config config_file.ymlIdentifyCheck if the rule files are valid or not (if present report errors)
promtool check rules rules_file.ymlIdentifyPass Prometheus metrics over stdin to check them for consistency and correctness
curl --silent http://example.com:9090/metrics/ | promtool check metricsIdentifyTrips 1 Sigma rule: lowCurl Usage on Linux by Nasreddine Bencherchali (Nextron Systems)
Run unit tests for rules config
promtool test rules test_file.ymlIdentify