6 "datasource": "-- Grafana --",
9 "iconColor": "rgba(0, 211, 255, 1)",
10 "name": "Annotations & Alerts",
15 "description": "Kafka resource usage and throughput",
20 "iteration": 1578848023483,
28 "datasource": "prometheus - Juju generated source",
55 "nullPointMode": "connected",
63 "seriesOverrides": [],
69 "expr": "sum(kafka_topic_partition_current_offset - kafka_topic_partition_oldest_offset{instance=\"$instance\", topic=~\"$topic\"}) by (topic)",
70 "format": "time_series",
72 "legendFormat": "{{topic}}",
80 "title": "Messages stored per topic",
84 "value_type": "individual"
122 "datasource": "prometheus - Juju generated source",
133 "alignAsTable": true,
149 "nullPointMode": "connected",
157 "seriesOverrides": [],
160 "steppedLine": false,
163 "expr": "sum(kafka_consumergroup_lag{instance=\"$instance\",topic=~\"$topic\"}) by (consumergroup, topic) ",
164 "format": "time_series",
168 "legendFormat": " {{topic}} ({{consumergroup}})",
176 "title": "Lag by Consumer Group",
180 "value_type": "individual"
218 "datasource": "prometheus - Juju generated source",
229 "alignAsTable": true,
243 "nullPointMode": "connected",
251 "seriesOverrides": [],
254 "steppedLine": false,
257 "expr": "sum(delta(kafka_topic_partition_current_offset{instance=~'$instance', topic=~\"$topic\"}[5m])/5) by (topic)",
258 "format": "time_series",
260 "legendFormat": "{{topic}}",
268 "title": "Messages produced per minute",
272 "value_type": "individual"
310 "datasource": "prometheus - Juju generated source",
321 "alignAsTable": true,
337 "nullPointMode": "connected",
345 "seriesOverrides": [],
348 "steppedLine": false,
351 "expr": "sum(delta(kafka_consumergroup_current_offset{instance=~'$instance',topic=~\"$topic\"}[5m])/5) by (consumergroup, topic)",
352 "format": "time_series",
354 "legendFormat": " {{topic}} ({{consumergroup}})",
362 "title": "Messages consumed per minute",
366 "value_type": "individual"
404 "datasource": "prometheus - Juju generated source",
415 "alignAsTable": true,
429 "nullPointMode": "null",
437 "seriesOverrides": [],
440 "steppedLine": false,
443 "expr": "sum by(topic) (kafka_topic_partitions{instance=\"$instance\",topic=~\"$topic\"})",
444 "format": "time_series",
446 "legendFormat": "{{topic}}",
454 "title": "Partitions per Topic",
458 "value_type": "individual"
503 "text": "osm-kafka-exporter-service",
504 "value": "osm-kafka-exporter-service"
506 "datasource": "prometheus - Juju generated source",
514 "query": "label_values(kafka_consumergroup_current_offset, job)",
517 "skipUrlSync": false,
519 "tagValuesQuery": "",
527 "datasource": "prometheus - Juju generated source",
535 "query": "label_values(kafka_consumergroup_current_offset{job=~\"$job\"}, instance)",
538 "skipUrlSync": false,
540 "tagValuesQuery": "",
555 "datasource": "prometheus - Juju generated source",
563 "query": "label_values(kafka_topic_partition_current_offset{instance='$instance',topic!='__consumer_offsets',topic!='--kafka'}, topic)",
566 "skipUrlSync": false,
568 "tagValuesQuery": "",
570 "tagsQuery": "topic",
581 "refresh_intervals": [
605 "timezone": "browser",