4 "name": "DS_CINNAMON_PROMETHEUS",
5 "label": "Cinnamon Prometheus",
8 "pluginId": "prometheus",
9 "pluginName": "Prometheus"
36 "datasource": "-- Grafana --",
39 "iconColor": "rgba(0, 211, 255, 1)",
40 "name": "Annotations & Alerts",
49 "iteration": 1556312150750,
63 "title": "All Consumer Group Lag",
71 "datasource": "${DS_CINNAMON_PROMETHEUS}",
72 "description": "Max extrapolated lag in seconds for each consumer group.",
93 "nullPointMode": "null",
98 "seriesOverrides": [],
101 "steppedLine": false,
104 "expr": "topk(50, kafka_consumergroup_group_max_lag_seconds{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"})",
105 "format": "time_series",
108 "legendFormat": "{{group}}",
115 "title": "Consumer Group Max Lag Seconds",
119 "value_type": "individual"
132 "label": "estimated lag in seconds",
157 "datasource": "${DS_CINNAMON_PROMETHEUS}",
158 "description": "Extrapolated lag in seconds for each partition.",
179 "nullPointMode": "null",
184 "seriesOverrides": [],
187 "steppedLine": false,
190 "expr": "topk(25, kafka_consumergroup_group_lag_seconds{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"})",
191 "format": "time_series",
194 "legendFormat": "{{group}},{{topic}},{{partition}}",
201 "title": "Consumer Group Lag Partition Seconds",
205 "value_type": "individual"
218 "label": "estimated lag in seconds",
243 "datasource": "${DS_CINNAMON_PROMETHEUS}",
244 "description": "Max offset lag for each consumer group.",
265 "nullPointMode": "null",
271 "repeatDirection": "h",
272 "seriesOverrides": [],
275 "steppedLine": false,
278 "expr": "topk(50, kafka_consumergroup_group_max_lag{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"})",
279 "format": "time_series",
282 "legendFormat": "{{group}}",
289 "title": "Consumer Group Max Lag Offsets",
293 "value_type": "individual"
331 "datasource": "${DS_CINNAMON_PROMETHEUS}",
332 "description": "Consumer Group Lag Partition Offsets",
353 "nullPointMode": "null",
358 "seriesOverrides": [],
361 "steppedLine": false,
364 "expr": "topk(25, kafka_consumergroup_group_lag{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"})",
365 "format": "time_series",
368 "legendFormat": "{{group}},{{topic}},{{partition}}",
375 "title": "Consumer Group Lag Partition Offsets",
379 "value_type": "individual"
400 "label": "offsets_2",
422 "title": "Consumer Group Lag In Time Per Group Over Offset Lag",
430 "datasource": "${DS_CINNAMON_PROMETHEUS}",
453 "nullPointMode": "null",
458 "repeat": "consumer_group",
459 "repeatDirection": "h",
462 "alias": "Consumer group lag in offsets",
468 "alias": "Consumer group lag in time",
469 "color": "rgb(255, 0, 0)",
476 "steppedLine": false,
479 "expr": "kafka_consumergroup_group_max_lag_seconds{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"}",
480 "format": "time_series",
483 "legendFormat": "Consumer group lag in time",
487 "expr": "kafka_consumergroup_group_max_lag{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"}",
488 "format": "time_series",
491 "legendFormat": "Consumer group lag in offsets",
498 "title": "$consumer_group",
502 "value_type": "individual"
504 "transparent": false,
516 "label": "estimated lag in seconds",
524 "label": "lag in offsets",
546 "title": "Consumer Group Lag in Time Per Group Over Summed Offsets",
554 "datasource": "${DS_CINNAMON_PROMETHEUS}",
577 "nullPointMode": "null",
582 "repeat": "consumer_group",
583 "repeatDirection": "h",
586 "alias": "Sum of group offsets",
590 "alias": "Sum of latest offsets",
594 "alias": "/Consumer group.*/",
595 "color": "rgb(255, 0, 0)",
601 "steppedLine": false,
604 "expr": "max(kafka_consumergroup_group_lag_seconds{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"}) by (group)",
605 "format": "time_series",
608 "legendFormat": "Consumer group lag in time",
612 "expr": "sum(kafka_consumergroup_group_offset{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"})",
613 "format": "time_series",
616 "legendFormat": "Sum of group offsets",
620 "expr": "sum((kafka_consumergroup_group_offset{namespace=\"$namespace\",cluster_name=\"$cluster_name\",group=~\"$consumer_group\",group!=\"\"} * 0)\n+ on(namespace,cluster_name,topic,partition) group_left() kafka_partition_latest_offset{namespace=\"$namespace\",cluster_name=\"$cluster_name\"})",
621 "format": "time_series",
623 "legendFormat": "Sum of latest offsets",
630 "title": "$consumer_group",
634 "value_type": "individual"
636 "transparent": false,
648 "label": "estimated lag in seconds",
678 "title": "Kafka Lag Exporter JVM Metrics",
686 "datasource": "${DS_CINNAMON_PROMETHEUS}",
707 "nullPointMode": "null",
712 "seriesOverrides": [],
715 "steppedLine": false,
718 "expr": "sum(rate(jvm_memory_bytes_used{app_kubernetes_io_instance=\"kafka-lag-exporter\"}[5m])) by (kubernetes_pod_name)",
719 "format": "time_series",
721 "legendFormat": "{{kubernetes_pod_name}}",
728 "title": "JVM Memory Used",
732 "value_type": "individual"
744 "format": "decbytes",
770 "datasource": "${DS_CINNAMON_PROMETHEUS}",
791 "nullPointMode": "null",
796 "seriesOverrides": [],
799 "steppedLine": false,
802 "expr": "sum(rate(jvm_gc_collection_seconds_sum{app_kubernetes_io_instance=\"kafka-lag-exporter\"}[5m])) by (kubernetes_pod_name)",
803 "format": "time_series",
805 "legendFormat": "{{kubernetes_pod_name}}",
812 "title": "JVM GC Time",
816 "value_type": "individual"
854 "datasource": "${DS_CINNAMON_PROMETHEUS}",
875 "nullPointMode": "null",
880 "seriesOverrides": [],
883 "steppedLine": false,
886 "expr": "sum(rate(jvm_gc_collection_seconds_count{app_kubernetes_io_instance=\"kafka-lag-exporter\"}[5m])) by (kubernetes_pod_name)",
887 "format": "time_series",
889 "legendFormat": "{{kubernetes_pod_name}}",
896 "title": "JVM GC Rate",
900 "value_type": "individual"
943 "datasource": "${DS_CINNAMON_PROMETHEUS}",
946 "label": "Namespace",
950 "query": "query_result(kafka_consumergroup_group_lag)",
952 "regex": "/.*namespace=\"([^\"]*).*/",
953 "skipUrlSync": false,
955 "tagValuesQuery": "",
964 "datasource": "${DS_CINNAMON_PROMETHEUS}",
967 "label": "Cluster Name",
969 "name": "cluster_name",
971 "query": "query_result(kafka_consumergroup_group_lag{namespace=\"$namespace\"})",
973 "regex": "/.*cluster_name=\"([^\"]*).*/",
974 "skipUrlSync": false,
976 "tagValuesQuery": "",
985 "datasource": "${DS_CINNAMON_PROMETHEUS}",
988 "label": "Consumer Group",
990 "name": "consumer_group",
992 "query": "query_result(kafka_consumergroup_group_lag{namespace=\"$namespace\",cluster_name=\"$cluster_name\"})",
994 "regex": "/.*group=\"([^\"]*).*/",
995 "skipUrlSync": false,
997 "tagValuesQuery": "",
1010 "refresh_intervals": [
1035 "title": "Kafka Lag Exporter",