Skip to content

Commit a652d5f

Browse files
committed
Update distribution link status panel
1 parent 0cb6447 commit a652d5f

File tree

1 file changed

+85
-22
lines changed

1 file changed

+85
-22
lines changed

deps/rabbitmq_prometheus/docker/grafana/dashboards/Erlang-Distribution.json

Lines changed: 85 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
"name": "Stat",
3030
"version": ""
3131
},
32+
{
33+
"type": "panel",
34+
"id": "status-history",
35+
"name": "Status history",
36+
"version": ""
37+
},
3238
{
3339
"type": "panel",
3440
"id": "timeseries",
@@ -441,7 +447,50 @@
441447
"color": {
442448
"mode": "thresholds"
443449
},
444-
"mappings": [],
450+
"custom": {
451+
"fillOpacity": 70,
452+
"hideFrom": {
453+
"legend": false,
454+
"tooltip": false,
455+
"viz": false
456+
},
457+
"lineWidth": 1
458+
},
459+
"mappings": [
460+
{
461+
"options": {
462+
"3": {
463+
"color": "green",
464+
"index": 1,
465+
"text": "up"
466+
}
467+
},
468+
"type": "value"
469+
},
470+
{
471+
"options": {
472+
"from": 1,
473+
"result": {
474+
"color": "dark-red",
475+
"index": 0,
476+
"text": "down"
477+
},
478+
"to": 2
479+
},
480+
"type": "range"
481+
},
482+
{
483+
"options": {
484+
"match": "null",
485+
"result": {
486+
"color": "text",
487+
"index": 2,
488+
"text": "no data"
489+
}
490+
},
491+
"type": "special"
492+
}
493+
],
445494
"thresholds": {
446495
"mode": "absolute",
447496
"steps": [
@@ -465,22 +514,20 @@
465514
"y": 4
466515
},
467516
"id": 19,
517+
"maxDataPoints": 10,
468518
"options": {
469-
"colorMode": "value",
470-
"graphMode": "area",
471-
"justifyMode": "auto",
472-
"orientation": "auto",
473-
"percentChangeColorMode": "standard",
474-
"reduceOptions": {
475-
"calcs": [
476-
"lastNotNull"
477-
],
478-
"fields": "",
479-
"values": false
519+
"colWidth": 0.9,
520+
"legend": {
521+
"displayMode": "list",
522+
"placement": "bottom",
523+
"showLegend": false
480524
},
481-
"showPercentChange": false,
482-
"textMode": "auto",
483-
"wideLayout": true
525+
"rowHeight": 0.9,
526+
"showValue": "auto",
527+
"tooltip": {
528+
"mode": "single",
529+
"sort": "none"
530+
}
484531
},
485532
"pluginVersion": "11.2.2",
486533
"targets": [
@@ -494,17 +541,19 @@
494541
"displayAliasType": "Warning / Critical",
495542
"displayType": "Regular",
496543
"displayValueWithAlias": "Never",
497-
"expr": "erlang_vm_dist_node_state * on(instance, job) group_left(rabbitmq_node, rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}",
544+
"editorMode": "code",
545+
"expr": "erlang_vm_dist_node_state{peer!~\"rabbitmqcli.*\"} * on(rabbitmq_instance, job) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}",
498546
"format": "time_series",
499547
"intervalFactor": 1,
500-
"legendFormat": " {{rabbitmq_node}} -> {{peer}}",
548+
"legendFormat": "{{rabbitmq_instance}} -> {{ peer }}",
549+
"range": true,
501550
"refId": "A",
502551
"units": "none",
503552
"valueHandler": "Number Threshold"
504553
}
505554
],
506555
"title": "State of distribution links",
507-
"type": "stat"
556+
"type": "status-history"
508557
},
509558
{
510559
"datasource": {
@@ -2363,9 +2412,13 @@
23632412
"mode": "palette-classic"
23642413
},
23652414
"custom": {
2415+
"axisBorderShow": false,
2416+
"axisCenteredZero": false,
2417+
"axisColorMode": "text",
23662418
"axisLabel": "",
23672419
"axisPlacement": "auto",
23682420
"barAlignment": 0,
2421+
"barWidthFactor": 0.6,
23692422
"drawStyle": "line",
23702423
"fillOpacity": 0,
23712424
"gradientMode": "none",
@@ -2374,6 +2427,7 @@
23742427
"tooltip": false,
23752428
"viz": false
23762429
},
2430+
"insertNulls": false,
23772431
"lineInterpolation": "linear",
23782432
"lineWidth": 1,
23792433
"pointSize": 5,
@@ -2398,7 +2452,8 @@
23982452
"mode": "absolute",
23992453
"steps": [
24002454
{
2401-
"color": "green"
2455+
"color": "green",
2456+
"value": null
24022457
},
24032458
{
24042459
"color": "red",
@@ -2580,7 +2635,8 @@
25802635
"showLegend": false
25812636
},
25822637
"tooltip": {
2583-
"mode": "multi"
2638+
"mode": "multi",
2639+
"sort": "none"
25842640
}
25852641
},
25862642
"pluginVersion": "8.3.4",
@@ -2612,9 +2668,13 @@
26122668
"mode": "palette-classic"
26132669
},
26142670
"custom": {
2671+
"axisBorderShow": false,
2672+
"axisCenteredZero": false,
2673+
"axisColorMode": "text",
26152674
"axisLabel": "",
26162675
"axisPlacement": "auto",
26172676
"barAlignment": 0,
2677+
"barWidthFactor": 0.6,
26182678
"drawStyle": "line",
26192679
"fillOpacity": 10,
26202680
"gradientMode": "none",
@@ -2623,6 +2683,7 @@
26232683
"tooltip": false,
26242684
"viz": false
26252685
},
2686+
"insertNulls": false,
26262687
"lineInterpolation": "linear",
26272688
"lineWidth": 1,
26282689
"pointSize": 5,
@@ -2647,7 +2708,8 @@
26472708
"mode": "absolute",
26482709
"steps": [
26492710
{
2650-
"color": "transparent"
2711+
"color": "transparent",
2712+
"value": null
26512713
},
26522714
{
26532715
"color": "red",
@@ -2694,7 +2756,8 @@
26942756
"showLegend": false
26952757
},
26962758
"tooltip": {
2697-
"mode": "multi"
2759+
"mode": "multi",
2760+
"sort": "none"
26982761
}
26992762
},
27002763
"pluginVersion": "8.3.4",

0 commit comments

Comments
 (0)