Skip to content

Commit ee728fd

Browse files
authored
Merge pull request #485 from tmiddlet2666/coh-23752
Add Cache Evictions Over Time Graph in Grafana Dashboards
2 parents 9573a56 + b278d9e commit ee728fd

File tree

6 files changed

+616
-49
lines changed

6 files changed

+616
-49
lines changed

dashboards/grafana-micrometer/cache-details-dashboard.json

Lines changed: 98 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,14 +641,107 @@
641641
"alignLevel": null
642642
}
643643
},
644+
{
645+
"aliasColors": {},
646+
"bars": true,
647+
"dashLength": 10,
648+
"dashes": false,
649+
"datasource": null,
650+
"description": "",
651+
"fill": 1,
652+
"fillGradient": 0,
653+
"gridPos": {
654+
"h": 9,
655+
"w": 24,
656+
"x": 0,
657+
"y": 16
658+
},
659+
"hiddenSeries": false,
660+
"id": 42,
661+
"legend": {
662+
"avg": false,
663+
"current": false,
664+
"max": false,
665+
"min": false,
666+
"show": true,
667+
"total": false,
668+
"values": false
669+
},
670+
"lines": false,
671+
"linewidth": 1,
672+
"links": [],
673+
"nullPointMode": "null",
674+
"options": {
675+
"dataLinks": []
676+
},
677+
"percentage": false,
678+
"pointradius": 5,
679+
"points": false,
680+
"renderer": "flot",
681+
"seriesOverrides": [],
682+
"spaceLength": 10,
683+
"stack": false,
684+
"steppedLine": false,
685+
"targets": [
686+
{
687+
"expr": "sum(coherence_storage_manager_eviction_count{cluster=~\"$ClusterName\",coherence_service=~'$ServiceName', cache=~\"$CacheName\"}) - sum(coherence_storage_manager_eviction_count{cluster=~\"$ClusterName\",coherence_service=~'$ServiceName', cache=~\"$CacheName\"} offset $__interval) ",
688+
"format": "time_series",
689+
"interval": "",
690+
"intervalFactor": 1,
691+
"legendFormat": "Evictions",
692+
"refId": "A"
693+
}
694+
],
695+
"thresholds": [],
696+
"timeFrom": null,
697+
"timeRegions": [],
698+
"timeShift": null,
699+
"title": "Cache Evictions for $CacheName",
700+
"tooltip": {
701+
"shared": true,
702+
"sort": 0,
703+
"value_type": "individual"
704+
},
705+
"type": "graph",
706+
"xaxis": {
707+
"buckets": null,
708+
"mode": "time",
709+
"name": null,
710+
"show": true,
711+
"values": []
712+
},
713+
"yaxes": [
714+
{
715+
"format": "short",
716+
"label": null,
717+
"logBase": 1,
718+
"max": null,
719+
"min": "0",
720+
"show": true
721+
},
722+
{
723+
"format": "short",
724+
"label": null,
725+
"logBase": 1,
726+
"max": null,
727+
"min": null,
728+
"show": true
729+
}
730+
],
731+
"yaxis": {
732+
"align": false,
733+
"alignLevel": null
734+
}
735+
},
644736
{
645737
"columns": [],
738+
"datasource": null,
646739
"fontSize": "100%",
647740
"gridPos": {
648741
"h": 7,
649742
"w": 24,
650743
"x": 0,
651-
"y": 16
744+
"y": 25
652745
},
653746
"id": 27,
654747
"links": [],
@@ -907,7 +1000,7 @@
9071000
"h": 7,
9081001
"w": 24,
9091002
"x": 0,
910-
"y": 23
1003+
"y": 32
9111004
},
9121005
"id": 36,
9131006
"links": [],
@@ -1118,7 +1211,7 @@
11181211
"h": 8,
11191212
"w": 24,
11201213
"x": 0,
1121-
"y": 30
1214+
"y": 39
11221215
},
11231216
"id": 33,
11241217
"links": [],
@@ -1138,6 +1231,7 @@
11381231
},
11391232
{
11401233
"alias": "Listener Registrations",
1234+
"align": "auto",
11411235
"colorMode": null,
11421236
"colors": [
11431237
"rgba(245, 54, 54, 0.9)",
@@ -1434,7 +1528,7 @@
14341528
"h": 7,
14351529
"w": 24,
14361530
"x": 0,
1437-
"y": 38
1531+
"y": 47
14381532
},
14391533
"id": 39,
14401534
"links": [],

dashboards/grafana-micrometer/caches-summary-dashboard.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,101 @@
424424
"title": "Cache Index Size",
425425
"transform": "table",
426426
"type": "table"
427+
},
428+
{
429+
"aliasColors": {},
430+
"bars": true,
431+
"dashLength": 10,
432+
"dashes": false,
433+
"datasource": null,
434+
"description": "Shows a graph of total cache evictions across all caches and members.",
435+
"fill": 1,
436+
"fillGradient": 0,
437+
"gridPos": {
438+
"h": 11,
439+
"w": 24,
440+
"x": 0,
441+
"y": 19
442+
},
443+
"hiddenSeries": false,
444+
"id": 94,
445+
"legend": {
446+
"alignAsTable": true,
447+
"avg": false,
448+
"current": true,
449+
"max": true,
450+
"min": false,
451+
"rightSide": false,
452+
"show": true,
453+
"total": false,
454+
"values": true
455+
},
456+
"lines": false,
457+
"linewidth": 1,
458+
"links": [],
459+
"nullPointMode": "null",
460+
"options": {
461+
"dataLinks": []
462+
},
463+
"percentage": false,
464+
"pointradius": 5,
465+
"points": false,
466+
"renderer": "flot",
467+
"seriesOverrides": [],
468+
"spaceLength": 10,
469+
"stack": true,
470+
"steppedLine": false,
471+
"targets": [
472+
{
473+
"expr": "sum(coherence_storage_manager_eviction_count{cluster=~\"$ClusterName\"}) - sum(coherence_storage_manager_eviction_count{cluster=~\"$ClusterName\"} offset $__interval)",
474+
"format": "time_series",
475+
"instant": false,
476+
"interval": "",
477+
"intervalFactor": 1,
478+
"legendFormat": "Total Evictions",
479+
"refId": "A"
480+
}
481+
],
482+
"thresholds": [],
483+
"timeFrom": null,
484+
"timeRegions": [],
485+
"timeShift": null,
486+
"title": "Total Cache Evictions",
487+
"tooltip": {
488+
"shared": true,
489+
"sort": 0,
490+
"value_type": "individual"
491+
},
492+
"type": "graph",
493+
"xaxis": {
494+
"buckets": null,
495+
"mode": "time",
496+
"name": null,
497+
"show": true,
498+
"values": []
499+
},
500+
"yaxes": [
501+
{
502+
"format": "short",
503+
"label": "",
504+
"logBase": 1,
505+
"max": null,
506+
"min": 0,
507+
"show": true
508+
},
509+
{
510+
"format": "short",
511+
"label": null,
512+
"logBase": 1,
513+
"max": null,
514+
"min": 0,
515+
"show": false
516+
}
517+
],
518+
"yaxis": {
519+
"align": false,
520+
"alignLevel": null
521+
}
427522
}
428523
],
429524
"refresh": "30s",

0 commit comments

Comments
 (0)