groups: - name: confluent-cloud-alerts rules: - alert: ConsumerLag expr: (confluent_kafka_server_consumer_lag_offsets{job="Confluent_Cloud"}) > 15000000 for: 1m labels: severity: critical annotations: summary: "ConsumerLag Offsets for (Kafka {{ $labels.kafka_id }}) and for the topic (Topic Name : {{ $labels.topic }}) , (Consumer : {{ $labels.consumer_group_id}}) is greater than 15000" description: "ConsumerLag Offsets for (Kafka {{ $labels.kafka_id }}) and for the topic (Topic Name : {{ $labels.topic }}) , (Consumer : {{ $labels.consumer_group_id}}) ( VALUE = {{ $value }}\n LABELS: {{ $labels }}"