From 993d96879bf4149bbf1d3912365e84e2bf1ba5fc Mon Sep 17 00:00:00 2001 From: Simon Ehrenstein <simon.ehrenstein@gmail.com> Date: Mon, 21 Feb 2022 13:32:05 +0100 Subject: [PATCH] Refine metrics used in grafana dashboard --- helm/templates/grafana/dashboard-config-map.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/templates/grafana/dashboard-config-map.yaml b/helm/templates/grafana/dashboard-config-map.yaml index c1d4471aa..c4f5709bb 100644 --- a/helm/templates/grafana/dashboard-config-map.yaml +++ b/helm/templates/grafana/dashboard-config-map.yaml @@ -253,7 +253,7 @@ data: "steppedLine": false, "targets": [ { - "expr": "sum by(group, topic) (kafka_consumergroup_lag >= 0)", + "expr": "sum by(consumergroup, topic) (kafka_consumergroup_lag >= 0)", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{topic}}", @@ -436,7 +436,7 @@ data: "steppedLine": false, "targets": [ { - "expr": "sum by(group,topic) (kafka_consumergroup_group_offset >= 0)", + "expr": "sum by(consumergroup,topic) (kafka_consumergroup_current_offset{topic='input'} >= 0)", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{topic}}", @@ -527,7 +527,7 @@ data: "steppedLine": false, "targets": [ { - "expr": "count by(group,topic) (kafka_consumergroup_group_offset >= 0)", + "expr": "count by(topic) (kafka_topic_partitions >= 0)", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{topic}}", @@ -618,7 +618,7 @@ data: "steppedLine": false, "targets": [ { - "expr": "sum by(group,topic) (kafka_partition_latest_offset)", + "expr": "sum by(topic) (kafka_topic_partition_current_offset)", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{topic}}", -- GitLab