From 2ca73c9d62f2644c2ab641f7dffe9fb4351b9c0b Mon Sep 17 00:00:00 2001 From: Marc Oppenheimer Date: Thu, 10 Oct 2024 23:45:15 +0100 Subject: [PATCH] chore: shorten Active Controllers alert period, set to == 0 --- src/alert_rules/prometheus/kafka_metrics.rules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alert_rules/prometheus/kafka_metrics.rules b/src/alert_rules/prometheus/kafka_metrics.rules index 57de7025..8325bd74 100644 --- a/src/alert_rules/prometheus/kafka_metrics.rules +++ b/src/alert_rules/prometheus/kafka_metrics.rules @@ -69,8 +69,8 @@ groups: # Controller and Partitions # ========================= - alert: Active Controllers - expr: sum(kafka_controller_kafkacontroller_activecontrollercount{juju_charm!=".*"}) != 1 - for: 1m + expr: sum(kafka_controller_kafkacontroller_activecontrollercount{juju_charm!=".*"}) == 0 + for: 0m labels: severity: critical annotations: @@ -246,4 +246,4 @@ groups: severity: warning annotations: summary: 'Broker {{ $labels.instance }} :: Safe Guard :: 1000 topics reached' - description: 'The number of active topics in the cluster has reached 1000.' \ No newline at end of file + description: 'The number of active topics in the cluster has reached 1000.'