Skip to content

Commit

Permalink
docs: grafana & prometheus example update
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsametileri committed Jul 5, 2023
1 parent d0d767e commit 262bed3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,6 @@
"timezone": "",
"title": "Kafka Konsumer Dashboard",
"uid": "DlIdtG_4z",
"version": 4,
"version": 5,
"weekStart": ""
}
8 changes: 0 additions & 8 deletions examples/with-grafana/prometheus/alerts.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
groups:
- name: konsumer-alerts
rules:
- alert: ProcessedRetryMessageIncreasing
expr: sum(rate(kafka_konsumer_processed_retry_messages_total{job="konsumer"}[1m])) > 0.25
for: 5m
labels:
severity: "error"
annotations:
summary: "Kafka Konsumer processed retry message increasing"
description: "Kafka Konsumer processed retry message increasing, current rate: {{ $value }} <http://localhost:3000/d/DlIdtG_4z/kafka-konsumer-dashboard|Grafana>"
- alert: ProcessedMessageDecreasing
expr: sum(rate(kafka_konsumer_processed_messages_total{job="konsumer"}[1m])) < 0.1
for: 5m
Expand Down
1 change: 0 additions & 1 deletion examples/with-kafka-batch-consumer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func main() {
Topic: "standart-topic",
GroupID: "standart-cg",
},
LogLevel: kafka.LogLevelDebug,
RetryEnabled: true,
RetryConfiguration: kafka.RetryConfiguration{
Brokers: []string{"localhost:29092"},
Expand Down

0 comments on commit 262bed3

Please sign in to comment.