1 # Copyright 2021 Canonical Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
26 datasource: '-- Grafana --'
29 iconColor: 'rgba(0, 211, 255, 1)'
30 name: Annotations & Alerts
32 description: Kafka resource usage and throughput
37 iteration: 1578848023483
44 datasource: Prometheus
69 nullPointMode: connected
82 sum(kafka_topic_partition_current_offset -
83 kafka_topic_partition_oldest_offset{instance="$instance",
84 topic=~"$topic"}) by (topic)
87 legendFormat: '{{topic}}'
93 title: Messages stored per topic
97 value_type: individual
125 datasource: Prometheus
150 nullPointMode: connected
163 sum(kafka_consumergroup_lag{instance="$instance",topic=~"$topic"}) by
164 (consumergroup, topic)
169 legendFormat: ' {{topic}} ({{consumergroup}})'
175 title: Lag by Consumer Group
179 value_type: individual
207 datasource: Prometheus
230 nullPointMode: connected
243 sum(delta(kafka_topic_partition_current_offset{instance=~'$instance',
244 topic=~"$topic"}[5m])/5) by (topic)
247 legendFormat: '{{topic}}'
253 title: Messages produced per minute
257 value_type: individual
285 datasource: Prometheus
310 nullPointMode: connected
323 sum(delta(kafka_consumergroup_current_offset{instance=~'$instance',topic=~"$topic"}[5m])/5)
324 by (consumergroup, topic)
327 legendFormat: ' {{topic}} ({{consumergroup}})'
333 title: Messages consumed per minute
337 value_type: individual
365 datasource: Prometheus
388 nullPointMode: 'null'
402 (kafka_topic_partitions{instance="$instance",topic=~"$topic"})
405 legendFormat: '{{topic}}'
411 title: Partitions per Topic
415 value_type: individual
448 text: osm-kafka-exporter-service
449 value: osm-kafka-exporter-service
450 datasource: Prometheus
458 query: 'label_values(kafka_consumergroup_current_offset, job)'
469 datasource: Prometheus
478 'label_values(kafka_consumergroup_current_offset{job=~"$job"},'
495 datasource: Prometheus
504 label_values(kafka_topic_partition_current_offset{instance='$instance',topic!='__consumer_offsets',topic!='--kafka'},