logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Promtool Validator - Validate Prometheus Configs | Online Free DevTools by Hexmos

Validate Prometheus configurations with Promtool. Ensure rule and config file validity, and check metric consistency using command line. Free online tool, no registration required.

promtool

Tooling for the Prometheus monitoring system. More information: https://prometheus.io/docs/prometheus/latest/getting_started/.

  • Check if the configuration files are valid or not (if present report errors):

promtool check config {{config_file.yml}}

  • Check if the rule files are valid or not (if present report errors):

promtool check rules {{rules_file.yml}}

  • Pass Prometheus metrics over stdin to check them for consistency and correctness:

curl --silent {{http://example.com:9090/metrics/}} | promtool check metrics

  • Unit tests for rules config:

promtool test rules {{test_file.yml}}

return

See Also