From f8ffc2a18a76b8d71f944c06d134ca25dde236de Mon Sep 17 00:00:00 2001 From: Dominik-K Date: Fri, 27 Mar 2020 16:20:19 +0100 Subject: [PATCH] Add warning that inhibition occurs on missing `equal` (#2214) Signed-off-by: Dominik --- README.md | 4 ++++ doc/examples/simple.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 3a84fb78..56d56521 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,10 @@ inhibit_rules: target_match: severity: 'warning' # Apply inhibition if the alertname is the same. + # CAUTION: + # If all label names listed in `equal` are missing + # from both the source and target alerts, + # the inhibition rule will apply! equal: ['alertname'] diff --git a/doc/examples/simple.yml b/doc/examples/simple.yml index 921e718e..8f0f4972 100644 --- a/doc/examples/simple.yml +++ b/doc/examples/simple.yml @@ -97,6 +97,10 @@ inhibit_rules: target_match: severity: 'warning' # Apply inhibition if the alertname is the same. + # CAUTION: + # If all label names listed in `equal` are missing + # from both the source and target alerts, + # the inhibition rule will apply! equal: ['alertname', 'cluster', 'service']