Guard YC Kafka silence alert window

This commit is contained in:
Kochetkov S 2026-06-16 12:21:33 +03:00
parent c0162c7fa3
commit 87d89c22f2
2 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -30,6 +30,12 @@ spec:
) == 0 ) == 0
) )
and on (topic, kafka_instance, source_cluster, cluster) and on (topic, kafka_instance, source_cluster, cluster)
(
min by (topic, kafka_instance, source_cluster, cluster) (
count_over_time(kafka_topic_partition_current_offset{kafka_instance="yc-kafka", cluster="brusnika-stage", topic!~"^__.*"}[12h])
) >= 1400
)
and on (topic, kafka_instance, source_cluster, cluster)
( (
sum by (topic, kafka_instance, source_cluster, cluster) ( sum by (topic, kafka_instance, source_cluster, cluster) (
kafka_topic_partitions{kafka_instance="yc-kafka", cluster="brusnika-stage", topic!~"^__.*"} kafka_topic_partitions{kafka_instance="yc-kafka", cluster="brusnika-stage", topic!~"^__.*"}