projects
/
demos
/
kafka
/
monitoring
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5c72870
)
WIP:brokers
author
Kai Moritz
<kai@juplo.de>
Tue, 8 Aug 2023 19:12:03 +0000
(21:12 +0200)
committer
Kai Moritz
<kai@juplo.de>
Tue, 8 Aug 2023 19:12:03 +0000
(21:12 +0200)
kafka-brokers.json
patch
|
blob
|
history
diff --git
a/kafka-brokers.json
b/kafka-brokers.json
index
3d9d06a
..
13cbb5d
100644
(file)
--- a/
kafka-brokers.json
+++ b/
kafka-brokers.json
@@
-60,9
+60,12
@@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
- "description": "Number of
active controllers in the cluster.
",
+ "description": "Number of
Brokers Online
",
"fieldConfig": {
"defaults": {
"fieldConfig": {
"defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
"mappings": [
{
"options": {
"mappings": [
{
"options": {
@@
-78,15
+81,16
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "#
299c46
",
+ "color": "#
d44a3a
",
"value": null
},
{
"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
},
"x": 0,
"y": 1
},
- "id": 1
2
,
+ "id": 1
4
,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
- "orientation": "
vertic
al",
+ "orientation": "
horizont
al",
"reduceOptions": {
"calcs": [
"lastNotNull"
"reduceOptions": {
"calcs": [
"lastNotNull"
@@
-116,25
+120,26
@@
"values": false
},
"text": {},
"values": false
},
"text": {},
- "textMode": "
value_and_name
"
+ "textMode": "
auto
"
},
"pluginVersion": "10.0.3",
},
"pluginVersion": "10.0.3",
+ "repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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,
"format": "time_series",
"instant": true,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "
{{instance}}
",
+ "legendFormat": "",
"refId": "A"
}
],
"refId": "A"
}
],
- "title": "
Active Controllers
",
+ "title": "
Brokers Online
",
"type": "stat"
},
{
"type": "stat"
},
{
@@
-142,12
+147,9
@@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
- "description": "Number of
Brokers Online
",
+ "description": "Number of
active controllers in the cluster.
",
"fieldConfig": {
"defaults": {
"fieldConfig": {
"defaults": {
- "color": {
- "mode": "thresholds"
- },
"mappings": [
{
"options": {
"mappings": [
{
"options": {
@@
-163,16
+165,15
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "#
d44a3a
",
+ "color": "#
299c46
",
"value": null
},
{
"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,
},
"gridPos": {
"h": 4,
- "w":
4
,
+ "w":
5
,
"x": 4,
"y": 1
},
"x": 4,
"y": 1
},
- "id": 1
4
,
+ "id": 1
2
,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
- "orientation": "
horizont
al",
+ "orientation": "
vertic
al",
"reduceOptions": {
"calcs": [
"lastNotNull"
"reduceOptions": {
"calcs": [
"lastNotNull"
@@
-202,26
+203,25
@@
"values": false
},
"text": {},
"values": false
},
"text": {},
- "textMode": "
auto
"
+ "textMode": "
value_and_name
"
},
"pluginVersion": "10.0.3",
},
"pluginVersion": "10.0.3",
- "repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"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,
"format": "time_series",
"instant": true,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "",
+ "legendFormat": "
{{instance}}
",
"refId": "A"
}
],
"refId": "A"
}
],
- "title": "
Brokers Online
",
+ "title": "
Active Controllers
",
"type": "stat"
},
{
"type": "stat"
},
{
@@
-269,8
+269,8
@@
},
"gridPos": {
"h": 4,
},
"gridPos": {
"h": 4,
- "w":
4
,
- "x":
8
,
+ "w":
6
,
+ "x":
9
,
"y": 1
},
"id": 18,
"y": 1
},
"id": 18,
@@
-1018,8
+1018,7
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
},
{
"color": "red",
@@
-1137,8
+1136,7
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
},
{
"color": "red",
@@
-1289,8
+1287,7
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
},
{
"color": "red",
@@
-2666,8
+2663,7
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
},
{
"color": "red",
@@
-2766,8
+2762,7
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
},
{
"color": "red",
@@
-2892,8
+2887,7
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
},
{
"color": "red",
@@
-3017,8
+3011,7
@@
"mode": "absolute",
"steps": [
{
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
},
{
"color": "red",
@@
-6152,7
+6145,7
@@
"type": "row"
}
],
"type": "row"
}
],
- "refresh":
false
,
+ "refresh":
""
,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"schemaVersion": 38,
"style": "dark",
"tags": [],
@@
-6260,8
+6253,8
@@
]
},
"time": {
]
},
"time": {
- "from": "
2023-08-08T18:45:09.420Z
",
- "to": "
2023-08-08T19:25:09.420Z
"
+ "from": "
now-5m
",
+ "to": "
now
"
},
"timepicker": {
"refresh_intervals": [
},
"timepicker": {
"refresh_intervals": [