From 81409cd1c2c7b682020ef8f384fc8c804c782d66 Mon Sep 17 00:00:00 2001 From: MarceStarlet Date: Wed, 31 Oct 2018 13:16:29 -0700 Subject: [PATCH 1/2] Adding in-sync replica by topic metric rule --- _data/rules.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_data/rules.yml b/_data/rules.yml index 5035cf6..2373da6 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -270,6 +270,10 @@ services: - name: danielqsj/kafka_exporter doc_url: https://github.com/danielqsj/kafka_exporter rules: + - name: Kafka Topics + description: Kafka topic in-sync partition + query: 'sum(kafka_topic_partition_in_sync_replica) by (topic) > 3' + severity: error - name: Linkerd exporters: From 3aa92fbc9a1bb30cee5d70efa88f221e4a207d74 Mon Sep 17 00:00:00 2001 From: Marcela Sena Date: Thu, 1 Nov 2018 11:21:56 -0700 Subject: [PATCH 2/2] Fixing in-sync replica condition If the in-sync replicas minimum set by topic is less than 3, an alert is needed. --- _data/rules.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/rules.yml b/_data/rules.yml index e43f62d..a655c8b 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -272,7 +272,7 @@ services: rules: - name: Kafka Topics description: Kafka topic in-sync partition - query: 'sum(kafka_topic_partition_in_sync_replica) by (topic) > 3' + query: 'sum(kafka_topic_partition_in_sync_replica) by (topic) < 3' severity: error - name: Kafka consumers group description: Kafka consumers group