mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 01:17:19 +08:00
23 lines
1.1 KiB
YAML
23 lines
1.1 KiB
YAML
groups:
|
|
|
|
- name: LinkedinKafkaExporter
|
|
|
|
rules:
|
|
|
|
- alert: KafkaTopicOffsetDecreased
|
|
expr: 'delta(kafka_burrow_partition_current_offset[1m]) < 0'
|
|
for: 0m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
summary: Kafka topic offset decreased (instance {{ $labels.instance }})
|
|
description: "Kafka topic offset has decreased\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
|
|
|
- alert: KafkaConsumerLag
|
|
expr: 'kafka_burrow_topic_partition_offset - on(partition, cluster, topic) group_right() kafka_burrow_partition_current_offset >= (kafka_burrow_topic_partition_offset offset 15m - on(partition, cluster, topic) group_right() kafka_burrow_partition_current_offset offset 15m) AND kafka_burrow_topic_partition_offset - on(partition, cluster, topic) group_right() kafka_burrow_partition_current_offset > 0'
|
|
for: 15m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
summary: Kafka consumer lag (instance {{ $labels.instance }})
|
|
description: "Kafka consumer has a 30 minutes and increasing lag\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|