Reliable Insights

It's nice to check that your configuration is valid before pushing to production.

Prometheus will gracefully fail to reload if there's a bad configuration, but will fail to start if there isn't one at startup. Thus it's wise to check that the configuration is good before checking it in via continuous integration or similar mechanisms.

To facilitate this, promtool which comes with Prometheus has a check config command. Let's download Prometheus and create an invalid config: