From: Kai Moritz Date: Tue, 8 Aug 2023 19:12:03 +0000 (+0200) Subject: WIP:brokers X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=1e602945d2ab1ac3c45c7de9f7499a53fd5a6033;p=demos%2Fkafka%2Fmonitoring WIP:brokers --- diff --git a/kafka-brokers.json b/kafka-brokers.json index 3d9d06a..13cbb5d 100644 --- a/kafka-brokers.json +++ b/kafka-brokers.json @@ -60,9 +60,12 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Number of active controllers in the cluster.", + "description": "Number of Brokers Online", "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "mappings": [ { "options": { @@ -78,15 +81,16 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", + "color": "#d44a3a", "value": null }, { - "color": "#e5ac0e", - "value": 2 + "color": "rgba(237, 129, 40, 0.89)", + "value": 0 }, { - "color": "#bf1b00" + "color": "#299c46", + "value": 2 } ] }, @@ -100,14 +104,14 @@ "x": 0, "y": 1 }, - "id": 12, + "id": 14, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", - "orientation": "vertical", + "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" @@ -116,25 +120,26 @@ "values": false }, "text": {}, - "textMode": "value_and_name" + "textMode": "auto" }, "pluginVersion": "10.0.3", + "repeatDirection": "h", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "kafka_controller_kafkacontroller_activecontrollercount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"} > 0", + "expr": "count(kafka_server_replicamanager_leadercount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", "intervalFactor": 1, - "legendFormat": "{{instance}}", + "legendFormat": "", "refId": "A" } ], - "title": "Active Controllers", + "title": "Brokers Online", "type": "stat" }, { @@ -142,12 +147,9 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "description": "Number of Brokers Online", + "description": "Number of active controllers in the cluster.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, "mappings": [ { "options": { @@ -163,16 +165,15 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", + "color": "#299c46", "value": null }, { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0 + "color": "#e5ac0e", + "value": 2 }, { - "color": "#299c46", - "value": 2 + "color": "#bf1b00" } ] }, @@ -182,18 +183,18 @@ }, "gridPos": { "h": 4, - "w": 4, + "w": 5, "x": 4, "y": 1 }, - "id": 14, + "id": 12, "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", - "orientation": "horizontal", + "orientation": "vertical", "reduceOptions": { "calcs": [ "lastNotNull" @@ -202,26 +203,25 @@ "values": false }, "text": {}, - "textMode": "auto" + "textMode": "value_and_name" }, "pluginVersion": "10.0.3", - "repeatDirection": "h", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "expr": "count(kafka_server_replicamanager_leadercount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"})", + "expr": "kafka_controller_kafkacontroller_activecontrollercount{job=\"kafka-broker\",env=\"$env\",instance=~\"$instance\"} > 0", "format": "time_series", "instant": true, "interval": "", "intervalFactor": 1, - "legendFormat": "", + "legendFormat": "{{instance}}", "refId": "A" } ], - "title": "Brokers Online", + "title": "Active Controllers", "type": "stat" }, { @@ -269,8 +269,8 @@ }, "gridPos": { "h": 4, - "w": 4, - "x": 8, + "w": 6, + "x": 9, "y": 1 }, "id": 18, @@ -1018,8 +1018,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1137,8 +1136,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1289,8 +1287,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2666,8 +2663,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2766,8 +2762,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2892,8 +2887,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3017,8 +3011,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -6152,7 +6145,7 @@ "type": "row" } ], - "refresh": false, + "refresh": "", "schemaVersion": 38, "style": "dark", "tags": [], @@ -6260,8 +6253,8 @@ ] }, "time": { - "from": "2023-08-08T18:45:09.420Z", - "to": "2023-08-08T19:25:09.420Z" + "from": "now-5m", + "to": "now" }, "timepicker": { "refresh_intervals": [