Skip to content

Commit fda1386

Browse files
authored
Set units and chart descriptions for MirrorMaker2 Grafana example dashboard (#11263)
Signed-off-by: George H Sun <[email protected]>
1 parent 17f91b9 commit fda1386

File tree

3 files changed

+95
-24
lines changed

3 files changed

+95
-24
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Strimzi Drain Cleaner updated to 1.3.0 (included in the Strimzi installation files)
2020
* Implicit IPv4 preference when enabling JMX has been removed, and will now use JVM defaults.
2121
This will make the cluster boot up correctly in IPv6 only environments, where IPv4 preference will break it due to lack of IPv4 addresses.
22+
* Improved the MirrorMaker2 example Grafana dashboard to set metric units and include chart descriptions.
2223

2324
### Major changes, deprecations and removals
2425

packaging/examples/metrics/grafana-dashboards/strimzi-kafka-mirror-maker-2.json

+47-12
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
"axisBorderShow": false,
221221
"axisCenteredZero": false,
222222
"axisColorMode": "text",
223-
"axisLabel": "Bytes/sec",
223+
"axisLabel": "",
224224
"axisPlacement": "auto",
225225
"barAlignment": 0,
226226
"drawStyle": "line",
@@ -263,7 +263,7 @@
263263
}
264264
]
265265
},
266-
"unit": "bytes"
266+
"unit": "binBps"
267267
},
268268
"overrides": []
269269
},
@@ -317,7 +317,7 @@
317317
"axisBorderShow": false,
318318
"axisCenteredZero": false,
319319
"axisColorMode": "text",
320-
"axisLabel": "Bytes/sec",
320+
"axisLabel": "",
321321
"axisPlacement": "auto",
322322
"barAlignment": 0,
323323
"drawStyle": "line",
@@ -360,7 +360,7 @@
360360
}
361361
]
362362
},
363-
"unit": "bytes"
363+
"unit": "binBps"
364364
},
365365
"overrides": []
366366
},
@@ -557,6 +557,7 @@
557557
},
558558
{
559559
"datasource": "${DS_PROMETHEUS}",
560+
"description": "The number of records that this task has consumed from the source but not yet produced to the target.",
560561
"fieldConfig": {
561562
"defaults": {
562563
"color": {
@@ -658,7 +659,7 @@
658659
"axisBorderShow": false,
659660
"axisCenteredZero": false,
660661
"axisColorMode": "text",
661-
"axisLabel": "bytes",
662+
"axisLabel": "",
662663
"axisPlacement": "auto",
663664
"barAlignment": 0,
664665
"drawStyle": "line",
@@ -700,7 +701,7 @@
700701
}
701702
]
702703
},
703-
"unit": "short"
704+
"unit": "bytes"
704705
},
705706
"overrides": []
706707
},
@@ -740,6 +741,7 @@
740741
},
741742
{
742743
"datasource": "${DS_PROMETHEUS}",
744+
"description": "Time duration that this task takes to commit its offsets to the target.",
743745
"fieldConfig": {
744746
"defaults": {
745747
"color": {
@@ -749,7 +751,7 @@
749751
"axisBorderShow": false,
750752
"axisCenteredZero": false,
751753
"axisColorMode": "text",
752-
"axisLabel": "ms",
754+
"axisLabel": "",
753755
"axisPlacement": "auto",
754756
"barAlignment": 0,
755757
"drawStyle": "line",
@@ -791,7 +793,7 @@
791793
}
792794
]
793795
},
794-
"unit": "short"
796+
"unit": "ms"
795797
},
796798
"overrides": []
797799
},
@@ -831,6 +833,7 @@
831833
},
832834
{
833835
"datasource": "${DS_PROMETHEUS}",
836+
"description": "Time duration between record timestamp in the source topic and the time when the source connector handles the record (aka. MM2 consumer lag time).",
834837
"fieldConfig": {
835838
"defaults": {
836839
"color": {
@@ -894,6 +897,10 @@
894897
{
895898
"id": "custom.width",
896899
"value": 65
900+
},
901+
{
902+
"id": "unit",
903+
"value": "ms"
897904
}
898905
]
899906
},
@@ -918,6 +925,10 @@
918925
{
919926
"id": "custom.width",
920927
"value": 45
928+
},
929+
{
930+
"id": "unit",
931+
"value": "ms"
921932
}
922933
]
923934
},
@@ -930,6 +941,10 @@
930941
{
931942
"id": "custom.width",
932943
"value": 41
944+
},
945+
{
946+
"id": "unit",
947+
"value": "ms"
933948
}
934949
]
935950
},
@@ -1064,6 +1079,7 @@
10641079
},
10651080
{
10661081
"datasource": "${DS_PROMETHEUS}",
1082+
"description": "The end to end latency from the record timestamp in the source topic to the time when the record is written successfully to the target cluster.",
10671083
"fieldConfig": {
10681084
"defaults": {
10691085
"color": {
@@ -1126,6 +1142,10 @@
11261142
{
11271143
"id": "custom.width",
11281144
"value": 65
1145+
},
1146+
{
1147+
"id": "unit",
1148+
"value": "ms"
11291149
}
11301150
]
11311151
},
@@ -1138,6 +1158,10 @@
11381158
{
11391159
"id": "custom.width",
11401160
"value": 70
1161+
},
1162+
{
1163+
"id": "unit",
1164+
"value": "ms"
11411165
}
11421166
]
11431167
},
@@ -1150,6 +1174,10 @@
11501174
{
11511175
"id": "custom.width",
11521176
"value": 45
1177+
},
1178+
{
1179+
"id": "unit",
1180+
"value": "ms"
11531181
}
11541182
]
11551183
},
@@ -1162,6 +1190,10 @@
11621190
{
11631191
"id": "custom.width",
11641192
"value": 41
1193+
},
1194+
{
1195+
"id": "unit",
1196+
"value": "ms"
11651197
}
11661198
]
11671199
},
@@ -1296,6 +1328,7 @@
12961328
},
12971329
{
12981330
"datasource": "${DS_PROMETHEUS}",
1331+
"description": "The latency for synchronizing the consumer groups of the source cluster to the target cluster.",
12991332
"fieldConfig": {
13001333
"defaults": {
13011334
"color": {
@@ -1333,7 +1366,7 @@
13331366
"properties": [
13341367
{
13351368
"id": "unit",
1336-
"value": "dtdurationms"
1369+
"value": "ms"
13371370
},
13381371
{
13391372
"id": "custom.width",
@@ -1379,7 +1412,7 @@
13791412
"refId": "A"
13801413
}
13811414
],
1382-
"title": "Offset Synchronization Latency",
1415+
"title": "Consumer Group Offset Sync Latency",
13831416
"transformations": [
13841417
{
13851418
"id": "organize",
@@ -1416,6 +1449,7 @@
14161449
},
14171450
{
14181451
"datasource": "${DS_PROMETHEUS}",
1452+
"description": "Consumer lag which in the context of the replication indicates whether the consumer in the source connector can keep up with the rate records are produced in the source.",
14191453
"fieldConfig": {
14201454
"defaults": {
14211455
"color": {
@@ -1425,7 +1459,7 @@
14251459
"axisBorderShow": false,
14261460
"axisCenteredZero": false,
14271461
"axisColorMode": "text",
1428-
"axisLabel": "",
1462+
"axisLabel": "offset",
14291463
"axisPlacement": "auto",
14301464
"barAlignment": 0,
14311465
"drawStyle": "line",
@@ -1506,6 +1540,7 @@
15061540
},
15071541
{
15081542
"datasource": "${DS_PROMETHEUS}",
1543+
"description": "Consumer lag which in the context of the replication indicates whether the consumer in the source connector can keep up with the rate records are produced in the source.",
15091544
"fieldConfig": {
15101545
"defaults": {
15111546
"color": {
@@ -2321,6 +2356,6 @@
23212356
},
23222357
"timezone": "",
23232358
"title": "Strimzi Kafka Mirror Maker 2",
2324-
"version": 9,
2359+
"version": 10,
23252360
"weekStart": ""
23262361
}

0 commit comments

Comments
 (0)