X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=kafka-brokers.json;h=d31abf2ecb5cf0ba90ab057d210003bc2b726fec;hb=6f51d52060978e6f22c97eaba185467e7ffe9575;hp=1dbbaafdd801aa39698495dcba2706f67011a8f2;hpb=4d3aee9eb9b903feaafe17a47f4ec3124c40b8de;p=demos%2Fkafka%2Fmonitoring diff --git a/kafka-brokers.json b/kafka-brokers.json index 1dbbaaf..d31abf2 100644 --- a/kafka-brokers.json +++ b/kafka-brokers.json @@ -142,7 +142,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Number of partitions under min insync replicas.", + "description": "Number of Brokers Online", "fieldConfig": { "defaults": { "color": { @@ -163,16 +163,16 @@ "mode": "absolute", "steps": [ { - "color": "#508642", + "color": "#d44a3a", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", - "value": 1 + "value": 0 }, { - "color": "#bf1b00", - "value": 5 + "color": "#299c46", + "value": 2 } ] }, @@ -186,7 +186,7 @@ "x": 4, "y": 1 }, - "id": 32, + "id": 14, "links": [], "maxDataPoints": 100, "options": { @@ -205,23 +205,23 @@ "textMode": "auto" }, "pluginVersion": "10.0.3", + "repeatDirection": "h", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(kafka_cluster_partition_underminisr{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", + "expr": "count(kafka_server_replicamanager_leadercount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", "format": "time_series", - "hide": false, "instant": true, "interval": "", - "intervalFactor": 2, + "intervalFactor": 1, "legendFormat": "", "refId": "A" } ], - "title": "Under Min ISR Partitions", + "title": "Brokers Online", "type": "stat" }, { @@ -229,7 +229,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Number of partitions that dont have an active leader and are hence not writable or readable.", + "description": "Unclean leader election rate", "fieldConfig": { "defaults": { "color": { @@ -250,16 +250,15 @@ "mode": "absolute", "steps": [ { - "color": "#508642", + "color": "#299c46", "value": null }, { - "color": "#ef843c", - "value": 1 + "color": "rgba(237, 129, 40, 0.89)", + "value": 2 }, { - "color": "#bf1b00", - "value": 1 + "color": "#d44a3a" } ] }, @@ -270,10 +269,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 8, + "x": 11, "y": 1 }, - "id": 22, + "id": 16, "links": [], "maxDataPoints": 100, "options": { @@ -298,7 +297,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(kafka_controller_kafkacontroller_offlinepartitionscount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", + "expr": "sum(kafka_controller_controllerstats_uncleanleaderelectionspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -307,7 +306,7 @@ "refId": "A" } ], - "title": "Offline Partitions Count", + "title": "Unclean Leader Election Rate", "type": "stat" }, { @@ -315,7 +314,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "", + "description": "Partitions that are online", "fieldConfig": { "defaults": { "color": { @@ -336,15 +335,16 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", + "color": "#d44a3a", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", - "value": 2 + "value": 0 }, { - "color": "#d44a3a" + "color": "#299c46", + "value": 0 } ] }, @@ -355,10 +355,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 12, + "x": 15, "y": 1 }, - "id": 33, + "id": 18, "links": [], "maxDataPoints": 100, "options": { @@ -383,7 +383,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(kafka_controller_kafkacontroller_preferredreplicaimbalancecount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", + "expr": "sum(kafka_server_replicamanager_partitioncount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -392,7 +392,7 @@ "refId": "A" } ], - "title": "Preferred Replica Imbalance", + "title": "Online Partitions", "type": "stat" }, { @@ -400,118 +400,85 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, + "description": "", "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "mode": "thresholds" }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "Bytes/s", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } - }, - "links": [], - "mappings": [], + ], "thresholds": { "mode": "absolute", "steps": [ { - "color": "green", + "color": "#299c46", "value": null }, { - "color": "red", - "value": 80 + "color": "rgba(237, 129, 40, 0.89)", + "value": 2 + }, + { + "color": "#d44a3a" } ] }, - "unit": "Bps" + "unit": "none" }, "overrides": [] }, "gridPos": { - "h": 8, - "w": 8, - "x": 16, + "h": 4, + "w": 4, + "x": 19, "y": 1 }, - "id": 84, + "id": 33, "links": [], + "maxDataPoints": 100, "options": { - "legend": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { "calcs": [ - "mean", - "lastNotNull", - "max" + "lastNotNull" ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "fields": "", + "values": false }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "text": {}, + "textMode": "auto" }, - "pluginVersion": "8.1.3", + "pluginVersion": "10.0.3", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(rate(kafka_server_brokertopicmetrics_bytesinpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "Bytes in", - "metric": "kafka_server_brokertopicmetrics_bytesinpersec", - "refId": "A", - "step": 4 - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "sum(rate(kafka_server_brokertopicmetrics_bytesoutpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", + "expr": "sum(kafka_controller_kafkacontroller_preferredreplicaimbalancecount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", "format": "time_series", - "hide": false, + "instant": true, "interval": "", - "intervalFactor": 2, - "legendFormat": "Bytes out", - "metric": "kafka_server_brokertopicmetrics_bytesinpersec", - "refId": "B", - "step": 4 + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" } ], - "title": "Broker network throughput", - "type": "timeseries" + "title": "Preferred Replica Imbalance", + "type": "stat" }, { "datasource": { @@ -605,94 +572,215 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Number of Brokers Online", + "description": "", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], + }, + "decimals": 0, + "links": [], + "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { - "color": "#d44a3a", + "color": "green", "value": null }, { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0 - }, - { - "color": "#299c46", - "value": 2 + "color": "red", + "value": 80 } ] }, - "unit": "none" + "unit": "partitions" }, "overrides": [] }, "gridPos": { - "h": 4, - "w": 4, + "h": 12, + "w": 11, "x": 4, "y": 5 }, - "id": 14, - "links": [], - "maxDataPoints": 100, + "id": 123, "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { + "legend": { "calcs": [ - "lastNotNull" + "lastNotNull", + "max" ], - "fields": "", - "values": false + "displayMode": "table", + "placement": "bottom", + "showLegend": true }, - "text": {}, - "textMode": "auto" + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.0.3", - "repeatDirection": "h", + "pluginVersion": "8.1.3", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "count(kafka_server_replicamanager_leadercount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", - "format": "time_series", - "instant": true, + "editorMode": "code", + "exemplar": false, + "expr": "kafka_server_replicamanager_underreplicatedpartitions{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", + "hide": false, "interval": "", - "intervalFactor": 1, - "legendFormat": "", + "legendFormat": "{{instance}}", + "range": true, "refId": "A" } ], - "title": "Brokers Online", - "type": "stat" + "title": "Underreplicated Partitions", + "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Partitions that are online", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "partitions" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 8, + "x": 15, + "y": 5 + }, + "id": 124, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.1.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "exemplar": false, + "expr": "kafka_server_replicamanager_leadercount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", + "hide": false, + "interval": "", + "legendFormat": "{{instance}}", + "range": true, + "refId": "A" + } + ], + "title": "Leader Count", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Number of partitions under min insync replicas.", "fieldConfig": { "defaults": { "color": { @@ -713,16 +801,16 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", + "color": "#508642", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", - "value": 0 + "value": 1 }, { - "color": "#299c46", - "value": 0 + "color": "#bf1b00", + "value": 5 } ] }, @@ -733,10 +821,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 8, - "y": 5 + "x": 0, + "y": 9 }, - "id": 18, + "id": 32, "links": [], "maxDataPoints": 100, "options": { @@ -761,16 +849,17 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(kafka_server_replicamanager_partitioncount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", + "expr": "sum(kafka_cluster_partition_underminisr{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", "format": "time_series", + "hide": false, "instant": true, "interval": "", - "intervalFactor": 1, + "intervalFactor": 2, "legendFormat": "", "refId": "A" } ], - "title": "Online Partitions", + "title": "Under Min ISR Partitions", "type": "stat" }, { @@ -778,7 +867,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Unclean leader election rate", + "description": "Number of partitions that dont have an active leader and are hence not writable or readable.", "fieldConfig": { "defaults": { "color": { @@ -799,15 +888,16 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", + "color": "#508642", "value": null }, { - "color": "rgba(237, 129, 40, 0.89)", - "value": 2 + "color": "#ef843c", + "value": 1 }, { - "color": "#d44a3a" + "color": "#bf1b00", + "value": 1 } ] }, @@ -818,10 +908,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 12, - "y": 5 + "x": 0, + "y": 13 }, - "id": 16, + "id": 22, "links": [], "maxDataPoints": 100, "options": { @@ -846,7 +936,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(kafka_controller_controllerstats_uncleanleaderelectionspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", + "expr": "sum(kafka_controller_kafkacontroller_offlinepartitionscount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -855,15 +945,40 @@ "refId": "A" } ], - "title": "Unclean Leader Election Rate", + "title": "Offline Partitions Count", "type": "stat" }, + { + "collapsed": false, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 31, + "panels": [], + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "refId": "A" + } + ], + "title": "Throughput & Request rate", + "type": "row" + }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": ": The number of in-sync replicas (ISRs) for a particular partition should remain fairly static, the only exceptions are when you are expanding your broker cluster or removing partitions. In order to maintain high availability, a healthy Kafka cluster requires a minimum number of ISRs for failover. A replica could be removed from the ISR pool for a couple of reasons: it is too far behind the leaders offset (user-configurable by setting the replica.lag.max.messages configuration parameter), or it has not contacted the leader for some time (configurable with the replica.socket.timeout.ms parameter). No matter the reason, an increase in IsrShrinksPerSec without a corresponding increase in IsrExpandsPerSec shortly thereafter is cause for concern and requires user intervention.The Kafka documentation provides a wealth of information on the user-configurable parameters for brokers.", "fieldConfig": { "defaults": { "color": { @@ -872,7 +987,7 @@ "custom": { "axisCenteredZero": false, "axisColorMode": "text", - "axisLabel": "", + "axisLabel": "Bytes/s", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", @@ -884,13 +999,13 @@ "viz": false }, "lineInterpolation": "linear", - "lineWidth": 1, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", - "spanNulls": true, + "spanNulls": false, "stacking": { "group": "A", "mode": "none" @@ -901,7 +1016,6 @@ }, "links": [], "mappings": [], - "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -915,42 +1029,18 @@ } ] }, - "unit": "ops" + "unit": "Bps" }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "kafka-3:80" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] + "overrides": [] }, "gridPos": { - "h": 9, + "h": 8, "w": 12, - "x": 12, - "y": 9 + "x": 0, + "y": 18 }, - "id": 123, + "id": 84, + "links": [], "options": { "legend": { "calcs": [ @@ -958,7 +1048,7 @@ "lastNotNull", "max" ], - "displayMode": "table", + "displayMode": "list", "placement": "bottom", "showLegend": true }, @@ -974,45 +1064,34 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "code", - "exemplar": false, - "expr": "kafka_server_replicamanager_underreplicatedpartitions{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", + "expr": "sum(rate(kafka_server_brokertopicmetrics_bytesinpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "Bytes in", + "metric": "kafka_server_brokertopicmetrics_bytesinpersec", + "refId": "A", + "step": 4 + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "expr": "sum(rate(kafka_server_brokertopicmetrics_bytesoutpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", + "format": "time_series", "hide": false, "interval": "", - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" + "intervalFactor": 2, + "legendFormat": "Bytes out", + "metric": "kafka_server_brokertopicmetrics_bytesinpersec", + "refId": "B", + "step": 4 } ], - "title": "IsrExpands per Sec", + "title": "Broker network throughput", "type": "timeseries" }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 18 - }, - "id": 31, - "panels": [], - "targets": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "refId": "A" - } - ], - "title": "Request rate", - "type": "row" - }, { "datasource": { "type": "prometheus", @@ -1048,8 +1127,8 @@ "gridPos": { "h": 4, "w": 4, - "x": 0, - "y": 19 + "x": 12, + "y": 18 }, "id": 93, "links": [], @@ -1090,7 +1169,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Produce request rate.", + "description": "Fetch request rate.", "fieldConfig": { "defaults": { "mappings": [ @@ -1120,10 +1199,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 4, - "y": 19 + "x": 16, + "y": 18 }, - "id": 35, + "id": 37, "links": [], "maxDataPoints": 100, "options": { @@ -1148,13 +1227,13 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"Produce\"}[5m]))", + "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"FetchConsumer\"}[5m]))", "interval": "", "legendFormat": "", "refId": "A" } ], - "title": "Produce Request Per Sec", + "title": "Consumer Fetch Request Per Sec", "type": "stat" }, { @@ -1162,7 +1241,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Fetch request rate.", + "description": "Produce request rate.", "fieldConfig": { "defaults": { "mappings": [ @@ -1192,10 +1271,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 8, - "y": 19 + "x": 20, + "y": 18 }, - "id": 37, + "id": 35, "links": [], "maxDataPoints": 100, "options": { @@ -1220,13 +1299,13 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"FetchConsumer\"}[5m]))", + "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"Produce\"}[5m]))", "interval": "", "legendFormat": "", "refId": "A" } ], - "title": "Consumer Fetch Request Per Sec", + "title": "Produce Request Per Sec", "type": "stat" }, { @@ -1234,7 +1313,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Fetch request rate.", + "description": "Metadata request rate.", "fieldConfig": { "defaults": { "mappings": [ @@ -1264,10 +1343,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 0, - "y": 23 + "x": 12, + "y": 22 }, - "id": 94, + "id": 36, "links": [], "maxDataPoints": 100, "options": { @@ -1292,13 +1371,13 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"Fetch\"}[5m]))", + "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"Metadata\"}[5m]))", "interval": "", "legendFormat": "", "refId": "A" } ], - "title": "Broker Fetch Request Per Sec", + "title": "Metadata Request Per Sec", "type": "stat" }, { @@ -1336,8 +1415,8 @@ "gridPos": { "h": 4, "w": 4, - "x": 4, - "y": 23 + "x": 16, + "y": 22 }, "id": 38, "links": [], @@ -1378,7 +1457,7 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Metadata request rate.", + "description": "Fetch request rate.", "fieldConfig": { "defaults": { "mappings": [ @@ -1408,10 +1487,10 @@ "gridPos": { "h": 4, "w": 4, - "x": 8, - "y": 23 + "x": 20, + "y": 22 }, - "id": 36, + "id": 94, "links": [], "maxDataPoints": 100, "options": { @@ -1436,13 +1515,13 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"Metadata\"}[5m]))", + "expr": "sum(rate(kafka_network_requestmetrics_requestspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",request=\"Fetch\"}[5m]))", "interval": "", "legendFormat": "", "refId": "A" } ], - "title": "Metadata Request Per Sec", + "title": "Broker Fetch Request Per Sec", "type": "stat" }, { @@ -1455,7 +1534,7 @@ "h": 1, "w": 24, "x": 0, - "y": 27 + "y": 26 }, "id": 40, "panels": [], @@ -1547,10 +1626,10 @@ ] }, "gridPos": { - "h": 8, + "h": 12, "w": 8, "x": 0, - "y": 28 + "y": 27 }, "id": 27, "links": [], @@ -1662,14 +1741,38 @@ } } ] + }, + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "kafka-2:80" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] } ] }, "gridPos": { - "h": 8, + "h": 12, "w": 8, "x": 8, - "y": 28 + "y": 27 }, "id": 2, "links": [], @@ -1794,10 +1897,10 @@ ] }, "gridPos": { - "h": 8, + "h": 12, "w": 8, "x": 16, - "y": 28 + "y": 27 }, "id": 3, "links": [], @@ -1846,7 +1949,7 @@ "h": 1, "w": 24, "x": 0, - "y": 36 + "y": 39 }, "id": 29, "panels": [ @@ -1934,635 +2037,16 @@ "uid": "PBFA97CFB590B2093" }, "exemplar": true, - "expr": "sum without(instance,topic)(rate(kafka_server_brokertopicmetrics_messagesinpersec{job=\"kafka-broker\",env=\"$env\",topic!=\"\"}[5m]))", - "interval": "", - "intervalFactor": 2, - "legendFormat": "bytes/sec", - "metric": "kafka_server_brokertopicmetrics_messagesinpersec", - "refId": "A", - "step": 4 - } - ], - "title": "Messages In", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "Bytes/s", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 24 - }, - "id": 5, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single" - } - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "exemplar": true, - "expr": "sum without(instance,topic)(rate(kafka_server_brokertopicmetrics_bytesinpersec{job=\"kafka-broker\",env=\"$env\",topic!=\"\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "bytes/sec", - "metric": "kafka_server_brokertopicmetrics_bytesinpersec", - "refId": "A", - "step": 4 - } - ], - "title": "Bytes In", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "Bytes/s", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 24 - }, - "id": 6, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single" - } - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "exemplar": true, - "expr": "sum without(instance,topic)(rate(kafka_server_brokertopicmetrics_bytesoutpersec{job=\"kafka-broker\",env=\"$env\",topic!=\"\"}[5m]))", - "interval": "", - "intervalFactor": 2, - "legendFormat": "bytes/sec", - "metric": "kafka_server_brokertopicmetrics_bytesinpersec", - "refId": "A", - "step": 4 - } - ], - "title": "Bytes Out", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "Messages/s", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 32 - }, - "id": 10, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single" - } - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "sum without(topic)(rate(kafka_server_brokertopicmetrics_messagesinpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{instance}}", - "metric": "kafka_server_brokertopicmetrics_messagesinpersec", - "refId": "A", - "step": 4 - } - ], - "title": "Messages In Per Broker", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "Bytes/s", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 32 - }, - "id": 7, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single" - } - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "sum without(topic)(rate(kafka_server_brokertopicmetrics_bytesinpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{instance}}", - "metric": "kafka_server_brokertopicmetrics_bytesinpersec", - "refId": "A", - "step": 4 - } - ], - "title": "Bytes In Per Broker", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 32 - }, - "id": 9, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single" - } - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "sum without(topic)(rate(kafka_server_brokertopicmetrics_bytesoutpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{instance}}", - "refId": "A" - } - ], - "title": "Bytes Out Per Broker", - "type": "timeseries" - } - ], - "targets": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "refId": "A" - } - ], - "title": "Throughput In/Out", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 37 - }, - "id": 44, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "Average fraction of time the network processor threads are idle. Values are between 0 (all resources are used) and 100 (all resources are available)\n", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 25 - }, - "id": 24, - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single" - } - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "1-kafka_network_socketserver_networkprocessoravgidlepercent{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", + "expr": "sum without(instance,topic)(rate(kafka_server_brokertopicmetrics_messagesinpersec{job=\"kafka-broker\",env=\"$env\",topic!=\"\"}[5m]))", "interval": "", - "legendFormat": "{{instance}}", - "refId": "A" + "intervalFactor": 2, + "legendFormat": "bytes/sec", + "metric": "kafka_server_brokertopicmetrics_messagesinpersec", + "refId": "A", + "step": 4 } ], - "title": "Network Processor Avg Usage Percent", + "title": "Messages In", "type": "timeseries" }, { @@ -2570,14 +2054,13 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Average fraction of time the request handler threads are idle. Values are between 0 (all resources are used) and 100 (all resources are available).\n", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { - "axisLabel": "", + "axisLabel": "Bytes/s", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", @@ -2589,13 +2072,13 @@ "viz": false }, "lineInterpolation": "linear", - "lineWidth": 1, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", - "spanNulls": true, + "spanNulls": false, "stacking": { "group": "A", "mode": "none" @@ -2619,17 +2102,18 @@ } ] }, - "unit": "percentunit" + "unit": "Bps" }, "overrides": [] }, "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 25 + "h": 8, + "w": 8, + "x": 8, + "y": 24 }, - "id": 25, + "id": 5, + "links": [], "options": { "legend": { "calcs": [ @@ -2652,55 +2136,32 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "1 - kafka_server_kafkarequesthandlerpool_requesthandleravgidlepercent_total{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", + "exemplar": true, + "expr": "sum without(instance,topic)(rate(kafka_server_brokertopicmetrics_bytesinpersec{job=\"kafka-broker\",env=\"$env\",topic!=\"\"}[5m]))", + "format": "time_series", "interval": "", - "legendFormat": "{{instance}}", - "refId": "A" + "intervalFactor": 2, + "legendFormat": "bytes/sec", + "metric": "kafka_server_brokertopicmetrics_bytesinpersec", + "refId": "A", + "step": 4 } ], - "title": "Request Handler Avg Percent", + "title": "Bytes In", "type": "timeseries" - } - ], - "targets": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "refId": "A" - } - ], - "title": "Thread utilization", - "type": "row" - }, - { - "collapsed": true, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 38 - }, - "id": 86, - "panels": [ + }, { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Latency in millseconds for ZooKeeper requests from broker.\n", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { - "axisLabel": "", + "axisLabel": "Bytes/s", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", @@ -2712,13 +2173,13 @@ "viz": false }, "lineInterpolation": "linear", - "lineWidth": 1, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", - "spanNulls": true, + "spanNulls": false, "stacking": { "group": "A", "mode": "none" @@ -2729,6 +2190,7 @@ }, "links": [], "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -2741,17 +2203,18 @@ } ] }, - "unit": "ms" + "unit": "Bps" }, "overrides": [] }, "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 26 + "h": 8, + "w": 8, + "x": 16, + "y": 24 }, - "id": 88, + "id": 6, + "links": [], "options": { "legend": { "calcs": [ @@ -2774,13 +2237,17 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "kafka_server_zookeeperclientmetrics_zookeeperrequestlatencyms{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",quantile=~\"$percentile\"}", - "hide": false, - "legendFormat": "{{instance}} - {{quantile}}", - "refId": "A" + "exemplar": true, + "expr": "sum without(instance,topic)(rate(kafka_server_brokertopicmetrics_bytesoutpersec{job=\"kafka-broker\",env=\"$env\",topic!=\"\"}[5m]))", + "interval": "", + "intervalFactor": 2, + "legendFormat": "bytes/sec", + "metric": "kafka_server_brokertopicmetrics_bytesinpersec", + "refId": "A", + "step": 4 } ], - "title": "Zookeeper Request Latency", + "title": "Bytes Out", "type": "timeseries" }, { @@ -2788,14 +2255,13 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { - "axisLabel": "", + "axisLabel": "Messages/s", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", @@ -2807,13 +2273,13 @@ "viz": false }, "lineInterpolation": "linear", - "lineWidth": 1, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", - "spanNulls": true, + "spanNulls": false, "stacking": { "group": "A", "mode": "none" @@ -2824,7 +2290,6 @@ }, "links": [], "mappings": [], - "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -2837,17 +2302,18 @@ } ] }, - "unit": "short" + "unit": "cps" }, "overrides": [] }, "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 26 + "h": 8, + "w": 8, + "x": 0, + "y": 32 }, - "id": 92, + "id": 10, + "links": [], "options": { "legend": { "calcs": [ @@ -2870,15 +2336,17 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "kafka_server_sessionexpirelistener_zookeepersyncconnectspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", - "hide": false, - "instant": false, + "expr": "sum without(topic)(rate(kafka_server_brokertopicmetrics_messagesinpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", + "format": "time_series", "interval": "", + "intervalFactor": 2, "legendFormat": "{{instance}}", - "refId": "A" + "metric": "kafka_server_brokertopicmetrics_messagesinpersec", + "refId": "A", + "step": 4 } ], - "title": "Zookeeper connections per sec", + "title": "Messages In Per Broker", "type": "timeseries" }, { @@ -2886,14 +2354,13 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { - "axisLabel": "", + "axisLabel": "Bytes/s", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", @@ -2905,13 +2372,13 @@ "viz": false }, "lineInterpolation": "linear", - "lineWidth": 1, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", - "spanNulls": true, + "spanNulls": false, "stacking": { "group": "A", "mode": "none" @@ -2922,7 +2389,6 @@ }, "links": [], "mappings": [], - "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -2935,17 +2401,18 @@ } ] }, - "unit": "short" + "unit": "Bps" }, "overrides": [] }, "gridPos": { - "h": 9, + "h": 8, "w": 8, - "x": 0, - "y": 35 + "x": 8, + "y": 32 }, - "id": 89, + "id": 7, + "links": [], "options": { "legend": { "calcs": [ @@ -2968,14 +2435,17 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "kafka_server_sessionexpirelistener_zookeeperexpirespersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", - "hide": false, + "expr": "sum without(topic)(rate(kafka_server_brokertopicmetrics_bytesinpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", + "format": "time_series", "interval": "", + "intervalFactor": 2, "legendFormat": "{{instance}}", - "refId": "A" + "metric": "kafka_server_brokertopicmetrics_bytesinpersec", + "refId": "A", + "step": 4 } ], - "title": "Zookeeper expired connections per sec", + "title": "Bytes In Per Broker", "type": "timeseries" }, { @@ -2983,7 +2453,6 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -3032,17 +2501,18 @@ } ] }, - "unit": "short" + "unit": "binBps" }, "overrides": [] }, "gridPos": { - "h": 9, + "h": 8, "w": 8, - "x": 8, - "y": 35 + "x": 16, + "y": 32 }, - "id": 90, + "id": 9, + "links": [], "options": { "legend": { "calcs": [ @@ -3065,125 +2535,254 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "kafka_server_sessionexpirelistener_zookeeperdisconnectspersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", - "hide": false, + "expr": "sum without(topic)(rate(kafka_server_brokertopicmetrics_bytesoutpersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\",topic!=\"\"}[5m]))", + "format": "time_series", "interval": "", + "intervalFactor": 1, "legendFormat": "{{instance}}", "refId": "A" } ], - "title": "Zookeeper disconnect per sec", - "type": "timeseries" + "title": "Bytes Out Per Broker", + "type": "timeseries" + } + ], + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "refId": "A" + } + ], + "title": "Throughput In/Out", + "type": "row" + }, + { + "collapsed": false, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 40 + }, + "id": 44, + "panels": [], + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "refId": "A" + } + ], + "title": "Thread utilization", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Average fraction of time the network processor threads are idle. Values are between 0 (all resources are used) and 100 (all resources are available)\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 41 + }, + "id": 24, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.1.3", + "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 16, - "y": 35 + "expr": "1-kafka_network_socketserver_networkprocessoravgidlepercent{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", + "interval": "", + "legendFormat": "{{instance}}", + "refId": "A" + } + ], + "title": "Network Processor Avg Usage Percent", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Average fraction of time the request handler threads are idle. Values are between 0 (all resources are used) and 100 (all resources are available).\n", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - "id": 91, - "options": { - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "tooltip": { - "mode": "single" + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } }, - "pluginVersion": "8.1.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "expr": "kafka_server_sessionexpirelistener_zookeeperauthfailurespersec{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", - "hide": false, - "interval": "", - "legendFormat": "{{instance}}", - "refId": "A" - } + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 41 + }, + "id": 25, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" ], - "title": "Zookeeper auth failures per sec", - "type": "timeseries" + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" } - ], + }, + "pluginVersion": "8.1.3", "targets": [ { "datasource": { - "type": "datasource", - "uid": "grafana" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, + "expr": "1 - kafka_server_kafkarequesthandlerpool_requesthandleravgidlepercent_total{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"}", + "interval": "", + "legendFormat": "{{instance}}", "refId": "A" } ], - "title": "Zookeeper", - "type": "row" + "title": "Request Handler Avg Percent", + "type": "timeseries" }, { "collapsed": false, @@ -3195,7 +2794,7 @@ "h": 1, "w": 24, "x": 0, - "y": 39 + "y": 53 }, "id": 82, "panels": [], @@ -3270,13 +2869,38 @@ }, "unit": "ops" }, - "overrides": [] + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "kafka-2:80" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] }, "gridPos": { "h": 9, "w": 12, "x": 0, - "y": 40 + "y": 54 }, "id": 80, "options": { @@ -3370,13 +2994,38 @@ }, "unit": "ops" }, - "overrides": [] + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "kafka-2:80" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] }, "gridPos": { "h": 9, "w": 12, "x": 12, - "y": 40 + "y": 54 }, "id": 83, "options": { @@ -3422,7 +3071,7 @@ "h": 1, "w": 24, "x": 0, - "y": 49 + "y": 63 }, "id": 53, "panels": [ @@ -3635,7 +3284,7 @@ "h": 1, "w": 24, "x": 0, - "y": 50 + "y": 64 }, "id": 58, "panels": [ @@ -4138,7 +3787,7 @@ "h": 1, "w": 24, "x": 0, - "y": 51 + "y": 65 }, "id": 68, "panels": [ @@ -4643,7 +4292,7 @@ "h": 1, "w": 24, "x": 0, - "y": 52 + "y": 66 }, "id": 66, "panels": [ @@ -5148,7 +4797,7 @@ "h": 1, "w": 24, "x": 0, - "y": 53 + "y": 67 }, "id": 102, "panels": [ @@ -5929,7 +5578,7 @@ "h": 1, "w": 24, "x": 0, - "y": 54 + "y": 68 }, "id": 120, "panels": [ @@ -6188,7 +5837,7 @@ "h": 1, "w": 24, "x": 0, - "y": 55 + "y": 69 }, "id": 46, "panels": [ @@ -6577,7 +6226,7 @@ ] }, "time": { - "from": "now-12h", + "from": "now-5m", "to": "now" }, "timepicker": {