Alertmanager: Validate config

Created on 28 Apr 2016  路  8Comments  路  Source: prometheus/alertmanager

Is there a way to check if the config is valid? (similar to promtool with Prometheus)

Thanks.

areusability kinenhancement prioritP2

Most helpful comment

For people who come from google: https://github.com/prometheus/alertmanager#amtool

amtool check-config config.yml

All 8 comments

Not yet unfortunately (short of actually trying to start Alertmanager with it).

We use jenkins to build and deploy new containers in which we have a test step.

However when I just run it, it obviously keeps hanging forever.

Any other tips on how I could mimic a test?

Thanks!

Currently only by writing code that uses Alertmanager's config packages itself, but that's not recommended as it's not meant to be used externally.

In the future, it would be great to have a tool (similar to promtool or integrated with it) that allows this.

Okay. Looking forward to it.

Thanks!

This should probably be written into amtool

any update on this?

For people who come from google: https://github.com/prometheus/alertmanager#amtool

amtool check-config config.yml
Was this page helpful?
0 / 5 - 0 ratings