Alertmanager template unit testing

13 views
Skip to first unread message

Juan Bran

unread,
Sep 16, 2020, 4:54:57 PM9/16/20
to Prometheus Users
Hi,

We recently ran into issues with a template producing malformed output for our  alerting provider when handling grouped alerts. The work-around so far has been to use group_by: ['...'] which works well enough for now, but we would like to be able to catch these sorts of changes in CI/CD perhaps as unit-tests that validate that the rendered output is as expected. What are our options for testing Alertmanager templates and validate output as part of our deployment pipeline?

Thanks,
-Juan
Reply all
Reply to author
Forward
0 new messages