Skip to content

Conversation

@zecke
Copy link
Contributor

@zecke zecke commented Dec 19, 2025

There is currently no way to test/assert that an inhibition rule is working as intended. I would like to add a tool similar to the promtool test. The attached MR starts with adding tests for inhibitions and that is useful as such.

How far should we take this? We could add assertions for alert grouping. Given these firing alerts, assert that these aggregator groups exist. Given the ability to mute alerts based on time. Would we want to introduce timeouts as well?

Introduce `config inhibition test` that given the configuration file,
the firing alerts, verify that a set of labels are/are not inhibited.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant