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

promtool

  • Tooling for the Prometheus monitoring system.
    More information: <https://prometheus.io/docs/prometheus/latest/getting_started/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install promtool on any operating system with command-not-found.com