Debian Codegraph @

contrib/grafana_prometheus_redis_dashboard.json

raw symbols SCIP
1 {
2 "__inputs": [
3 {
4 "name": "DS_PROM",
5 "label": "prom",
6 "description": "",
7 "type": "datasource",
8 "pluginId": "prometheus",
9 "pluginName": "Prometheus"
10 }
11 ],
12 "__elements": {},
13 "__requires": [
14 {
15 "type": "panel",
16 "id": "gauge",
17 "name": "Gauge",
18 "version": ""
19 },
20 {
21 "type": "grafana",
22 "id": "grafana",
23 "name": "Grafana",
24 "version": "10.3.3"
25 },
26 {
27 "type": "datasource",
28 "id": "prometheus",
29 "name": "Prometheus",
30 "version": "1.0.0"
31 },
32 {
33 "type": "panel",
34 "id": "stat",
35 "name": "Stat",
36 "version": ""
37 },
38 {
39 "type": "panel",
40 "id": "timeseries",
41 "name": "Time series",
42 "version": ""
43 }
44 ],
45 "annotations": {
46 "list": [
47 {
48 "builtIn": 1,
49 "datasource": {
50 "type": "datasource",
51 "uid": "grafana"
52 },
53 "enable": true,
54 "hide": true,
55 "iconColor": "rgba(0, 211, 255, 1)",
56 "name": "Annotations & Alerts",
57 "type": "dashboard"
58 }
59 ]
60 },
61 "description": "Redis Dashboard for Prometheus Redis Exporter 1.x",
62 "editable": true,
63 "fiscalYearStartMonth": 0,
64 "gnetId": 763,
65 "graphTooltip": 1,
66 "id": null,
67 "links": [],
68 "liveNow": false,
69 "panels": [
70 {
71 "datasource": {
72 "type": "prometheus",
73 "uid": "${DS_PROM}"
74 },
75 "fieldConfig": {
76 "defaults": {
77 "color": {
78 "fixedColor": "rgb(31, 120, 193)",
79 "mode": "fixed"
80 },
81 "decimals": 0,
82 "mappings": [
83 {
84 "options": {
85 "match": "null",
86 "result": {
87 "text": "N/A"
88 }
89 },
90 "type": "special"
91 }
92 ],
93 "thresholds": {
94 "mode": "absolute",
95 "steps": [
96 {
97 "color": "green",
98 "value": null
99 },
100 {
101 "color": "red",
102 "value": 80
103 }
104 ]
105 },
106 "unit": "s",
107 "unitScale": true
108 },
109 "overrides": []
110 },
111 "gridPos": {
112 "h": 7,
113 "w": 3,
114 "x": 0,
115 "y": 0
116 },
117 "id": 9,
118 "links": [],
119 "maxDataPoints": 100,
120 "options": {
121 "colorMode": "none",
122 "graphMode": "area",
123 "justifyMode": "auto",
124 "orientation": "horizontal",
125 "reduceOptions": {
126 "calcs": [
127 "lastNotNull"
128 ],
129 "fields": "",
130 "values": false
131 },
132 "showPercentChange": false,
133 "textMode": "auto",
134 "wideLayout": true
135 },
136 "pluginVersion": "10.3.3",
137 "targets": [
138 {
139 "datasource": {
140 "type": "prometheus",
141 "uid": "${DS_PROM}"
142 },
143 "expr": "max(max_over_time(redis_uptime_in_seconds{namespace=~\"$namespace\", instance=~\"$instance\"}[$__interval]))",
144 "format": "time_series",
145 "interval": "",
146 "intervalFactor": 2,
147 "legendFormat": "",
148 "metric": "",
149 "refId": "A",
150 "step": 1800
151 }
152 ],
153 "title": "Max Uptime",
154 "type": "stat"
155 },
156 {
157 "datasource": {
158 "type": "prometheus",
159 "uid": "${DS_PROM}"
160 },
161 "fieldConfig": {
162 "defaults": {
163 "color": {
164 "fixedColor": "rgb(31, 120, 193)",
165 "mode": "fixed"
166 },
167 "decimals": 0,
168 "mappings": [
169 {
170 "options": {
171 "match": "null",
172 "result": {
173 "text": "N/A"
174 }
175 },
176 "type": "special"
177 }
178 ],
179 "thresholds": {
180 "mode": "absolute",
181 "steps": [
182 {
183 "color": "green",
184 "value": null
185 },
186 {
187 "color": "red",
188 "value": 80
189 }
190 ]
191 },
192 "unit": "none",
193 "unitScale": true
194 },
195 "overrides": []
196 },
197 "gridPos": {
198 "h": 7,
199 "w": 2,
200 "x": 3,
201 "y": 0
202 },
203 "hideTimeOverride": true,
204 "id": 12,
205 "links": [],
206 "maxDataPoints": 100,
207 "options": {
208 "colorMode": "none",
209 "graphMode": "area",
210 "justifyMode": "auto",
211 "orientation": "horizontal",
212 "reduceOptions": {
213 "calcs": [
214 "lastNotNull"
215 ],
216 "fields": "",
217 "values": false
218 },
219 "showPercentChange": false,
220 "textMode": "auto",
221 "wideLayout": true
222 },
223 "pluginVersion": "10.3.3",
224 "targets": [
225 {
226 "datasource": {
227 "type": "prometheus",
228 "uid": "${DS_PROM}"
229 },
230 "expr": "sum(redis_connected_clients{namespace=~\"$namespace\", instance=~\"$instance\"})",
231 "format": "time_series",
232 "intervalFactor": 2,
233 "legendFormat": "",
234 "metric": "",
235 "refId": "A",
236 "step": 2
237 }
238 ],
239 "timeFrom": "1m",
240 "title": "Clients",
241 "type": "stat"
242 },
243 {
244 "datasource": {
245 "type": "prometheus",
246 "uid": "${DS_PROM}"
247 },
248 "fieldConfig": {
249 "defaults": {
250 "color": {
251 "mode": "thresholds"
252 },
253 "decimals": 0,
254 "mappings": [
255 {
256 "options": {
257 "match": "null",
258 "result": {
259 "text": "N/A"
260 }
261 },
262 "type": "special"
263 }
264 ],
265 "max": 100,
266 "min": 0,
267 "thresholds": {
268 "mode": "absolute",
269 "steps": [
270 {
271 "color": "rgba(50, 172, 45, 0.97)",
272 "value": null
273 },
274 {
275 "color": "rgba(237, 129, 40, 0.89)",
276 "value": 80
277 },
278 {
279 "color": "rgba(245, 54, 54, 0.9)",
280 "value": 95
281 }
282 ]
283 },
284 "unit": "percent",
285 "unitScale": true
286 },
287 "overrides": []
288 },
289 "gridPos": {
290 "h": 7,
291 "w": 3,
292 "x": 5,
293 "y": 0
294 },
295 "hideTimeOverride": true,
296 "id": 11,
297 "links": [],
298 "maxDataPoints": 100,
299 "options": {
300 "minVizHeight": 75,
301 "minVizWidth": 75,
302 "orientation": "horizontal",
303 "reduceOptions": {
304 "calcs": [
305 "lastNotNull"
306 ],
307 "fields": "",
308 "values": false
309 },
310 "showThresholdLabels": false,
311 "showThresholdMarkers": true,
312 "sizing": "auto"
313 },
314 "pluginVersion": "10.3.3",
315 "targets": [
316 {
317 "datasource": {
318 "type": "prometheus",
319 "uid": "${DS_PROM}"
320 },
321 "expr": "sum(100 * (redis_memory_used_bytes{namespace=~\"$namespace\", instance=~\"$instance\"} / redis_memory_max_bytes{namespace=~\"$namespace\", instance=~\"$instance\"}))",
322 "format": "time_series",
323 "intervalFactor": 2,
324 "legendFormat": "",
325 "metric": "",
326 "refId": "A",
327 "step": 2
328 }
329 ],
330 "timeFrom": "1m",
331 "title": "Memory Usage",
332 "type": "gauge"
333 },
334 {
335 "datasource": {
336 "type": "prometheus",
337 "uid": "${DS_PROM}"
338 },
339 "fieldConfig": {
340 "defaults": {
341 "color": {
342 "mode": "palette-classic"
343 },
344 "custom": {
345 "axisBorderShow": false,
346 "axisCenteredZero": false,
347 "axisColorMode": "text",
348 "axisLabel": "",
349 "axisPlacement": "auto",
350 "barAlignment": 0,
351 "drawStyle": "line",
352 "fillOpacity": 80,
353 "gradientMode": "none",
354 "hideFrom": {
355 "legend": false,
356 "tooltip": false,
357 "viz": false
358 },
359 "insertNulls": false,
360 "lineInterpolation": "linear",
361 "lineWidth": 1,
362 "pointSize": 5,
363 "scaleDistribution": {
364 "type": "linear"
365 },
366 "showPoints": "never",
367 "spanNulls": true,
368 "stacking": {
369 "group": "A",
370 "mode": "normal"
371 },
372 "thresholdsStyle": {
373 "mode": "off"
374 }
375 },
376 "links": [],
377 "mappings": [],
378 "thresholds": {
379 "mode": "absolute",
380 "steps": [
381 {
382 "color": "green",
383 "value": null
384 },
385 {
386 "color": "red",
387 "value": 80
388 }
389 ]
390 },
391 "unit": "short",
392 "unitScale": true
393 },
394 "overrides": []
395 },
396 "gridPos": {
397 "h": 7,
398 "w": 8,
399 "x": 8,
400 "y": 0
401 },
402 "id": 18,
403 "links": [],
404 "options": {
405 "legend": {
406 "calcs": [],
407 "displayMode": "list",
408 "placement": "bottom",
409 "showLegend": false
410 },
411 "tooltip": {
412 "mode": "multi",
413 "sort": "desc"
414 }
415 },
416 "pluginVersion": "10.3.3",
417 "targets": [
418 {
419 "datasource": {
420 "type": "prometheus",
421 "uid": "${DS_PROM}"
422 },
423 "expr": "sum(rate(redis_commands_total{namespace=~\"$namespace\", instance=~\"$instance\"} [1m])) by (cmd)",
424 "format": "time_series",
425 "interval": "",
426 "intervalFactor": 2,
427 "legendFormat": "{{ cmd }}",
428 "metric": "redis_command_calls_total",
429 "refId": "A",
430 "step": 240
431 }
432 ],
433 "title": "Total Commands / sec",
434 "type": "timeseries"
435 },
436 {
437 "datasource": {
438 "type": "prometheus",
439 "uid": "${DS_PROM}"
440 },
441 "fieldConfig": {
442 "defaults": {
443 "color": {
444 "mode": "palette-classic"
445 },
446 "custom": {
447 "axisBorderShow": false,
448 "axisCenteredZero": false,
449 "axisColorMode": "text",
450 "axisLabel": "",
451 "axisPlacement": "auto",
452 "barAlignment": 0,
453 "drawStyle": "line",
454 "fillOpacity": 10,
455 "gradientMode": "none",
456 "hideFrom": {
457 "legend": false,
458 "tooltip": false,
459 "viz": false
460 },
461 "insertNulls": false,
462 "lineInterpolation": "linear",
463 "lineWidth": 2,
464 "pointSize": 5,
465 "scaleDistribution": {
466 "type": "linear"
467 },
468 "showPoints": "never",
469 "spanNulls": true,
470 "stacking": {
471 "group": "A",
472 "mode": "none"
473 },
474 "thresholdsStyle": {
475 "mode": "off"
476 }
477 },
478 "links": [],
479 "mappings": [],
480 "min": 0,
481 "thresholds": {
482 "mode": "absolute",
483 "steps": [
484 {
485 "color": "green",
486 "value": null
487 },
488 {
489 "color": "red",
490 "value": 80
491 }
492 ]
493 },
494 "unit": "short",
495 "unitScale": true
496 },
497 "overrides": []
498 },
499 "gridPos": {
500 "h": 7,
501 "w": 8,
502 "x": 16,
503 "y": 0
504 },
505 "id": 1,
506 "links": [],
507 "options": {
508 "legend": {
509 "calcs": [],
510 "displayMode": "list",
511 "placement": "bottom",
512 "showLegend": false
513 },
514 "tooltip": {
515 "mode": "multi",
516 "sort": "none"
517 }
518 },
519 "pluginVersion": "10.3.3",
520 "targets": [
521 {
522 "datasource": {
523 "type": "prometheus",
524 "uid": "${DS_PROM}"
525 },
526 "expr": "irate(redis_keyspace_hits_total{instance=~\"$instance\"}[5m])",
527 "format": "time_series",
528 "hide": false,
529 "interval": "",
530 "intervalFactor": 2,
531 "legendFormat": "hits, {{ instance }}",
532 "metric": "",
533 "refId": "A",
534 "step": 240,
535 "target": ""
536 },
537 {
538 "datasource": {
539 "type": "prometheus",
540 "uid": "${DS_PROM}"
541 },
542 "expr": "irate(redis_keyspace_misses_total{instance=~\"$instance\"}[5m])",
543 "format": "time_series",
544 "hide": false,
545 "interval": "",
546 "intervalFactor": 2,
547 "legendFormat": "misses, {{ instance }}",
548 "metric": "",
549 "refId": "B",
550 "step": 240,
551 "target": ""
552 }
553 ],
554 "title": "Hits / Misses per Sec",
555 "type": "timeseries"
556 },
557 {
558 "datasource": {
559 "type": "prometheus",
560 "uid": "${DS_PROM}"
561 },
562 "fieldConfig": {
563 "defaults": {
564 "color": {
565 "mode": "palette-classic"
566 },
567 "custom": {
568 "axisBorderShow": false,
569 "axisCenteredZero": false,
570 "axisColorMode": "text",
571 "axisLabel": "",
572 "axisPlacement": "auto",
573 "barAlignment": 0,
574 "drawStyle": "line",
575 "fillOpacity": 10,
576 "gradientMode": "none",
577 "hideFrom": {
578 "legend": false,
579 "tooltip": false,
580 "viz": false
581 },
582 "insertNulls": false,
583 "lineInterpolation": "linear",
584 "lineWidth": 2,
585 "pointSize": 5,
586 "scaleDistribution": {
587 "type": "linear"
588 },
589 "showPoints": "never",
590 "spanNulls": false,
591 "stacking": {
592 "group": "A",
593 "mode": "none"
594 },
595 "thresholdsStyle": {
596 "mode": "off"
597 }
598 },
599 "links": [],
600 "mappings": [],
601 "min": 0,
602 "thresholds": {
603 "mode": "absolute",
604 "steps": [
605 {
606 "color": "green",
607 "value": null
608 },
609 {
610 "color": "red",
611 "value": 80
612 }
613 ]
614 },
615 "unit": "bytes",
616 "unitScale": true
617 },
618 "overrides": [
619 {
620 "matcher": {
621 "id": "byName",
622 "options": "max"
623 },
624 "properties": [
625 {
626 "id": "color",
627 "value": {
628 "fixedColor": "#BF1B00",
629 "mode": "fixed"
630 }
631 }
632 ]
633 }
634 ]
635 },
636 "gridPos": {
637 "h": 7,
638 "w": 12,
639 "x": 0,
640 "y": 7
641 },
642 "id": 7,
643 "links": [],
644 "options": {
645 "legend": {
646 "calcs": [],
647 "displayMode": "list",
648 "placement": "bottom",
649 "showLegend": true
650 },
651 "tooltip": {
652 "mode": "multi",
653 "sort": "none"
654 }
655 },
656 "pluginVersion": "10.3.3",
657 "targets": [
658 {
659 "datasource": {
660 "type": "prometheus",
661 "uid": "${DS_PROM}"
662 },
663 "expr": "redis_memory_used_bytes{instance=~\"$instance\"}",
664 "format": "time_series",
665 "intervalFactor": 2,
666 "legendFormat": "used, {{ instance }}",
667 "metric": "",
668 "refId": "A",
669 "step": 240,
670 "target": ""
671 },
672 {
673 "datasource": {
674 "type": "prometheus",
675 "uid": "${DS_PROM}"
676 },
677 "expr": "redis_memory_max_bytes{instance=~\"$instance\"}",
678 "format": "time_series",
679 "hide": false,
680 "intervalFactor": 2,
681 "legendFormat": "max, {{ instance }}",
682 "refId": "B",
683 "step": 240
684 }
685 ],
686 "title": "Total Memory Usage",
687 "type": "timeseries"
688 },
689 {
690 "datasource": {
691 "type": "prometheus",
692 "uid": "${DS_PROM}"
693 },
694 "fieldConfig": {
695 "defaults": {
696 "color": {
697 "mode": "palette-classic"
698 },
699 "custom": {
700 "axisBorderShow": false,
701 "axisCenteredZero": false,
702 "axisColorMode": "text",
703 "axisLabel": "",
704 "axisPlacement": "auto",
705 "barAlignment": 0,
706 "drawStyle": "line",
707 "fillOpacity": 10,
708 "gradientMode": "none",
709 "hideFrom": {
710 "legend": false,
711 "tooltip": false,
712 "viz": false
713 },
714 "insertNulls": false,
715 "lineInterpolation": "linear",
716 "lineWidth": 2,
717 "pointSize": 5,
718 "scaleDistribution": {
719 "type": "linear"
720 },
721 "showPoints": "never",
722 "spanNulls": true,
723 "stacking": {
724 "group": "A",
725 "mode": "none"
726 },
727 "thresholdsStyle": {
728 "mode": "off"
729 }
730 },
731 "links": [],
732 "mappings": [],
733 "thresholds": {
734 "mode": "absolute",
735 "steps": [
736 {
737 "color": "green",
738 "value": null
739 },
740 {
741 "color": "red",
742 "value": 80
743 }
744 ]
745 },
746 "unit": "bytes",
747 "unitScale": true
748 },
749 "overrides": []
750 },
751 "gridPos": {
752 "h": 7,
753 "w": 12,
754 "x": 12,
755 "y": 7
756 },
757 "id": 10,
758 "links": [],
759 "options": {
760 "legend": {
761 "calcs": [],
762 "displayMode": "list",
763 "placement": "bottom",
764 "showLegend": true
765 },
766 "tooltip": {
767 "mode": "multi",
768 "sort": "none"
769 }
770 },
771 "pluginVersion": "10.3.3",
772 "targets": [
773 {
774 "datasource": {
775 "type": "prometheus",
776 "uid": "${DS_PROM}"
777 },
778 "expr": "sum(rate(redis_net_input_bytes_total{instance=~\"$instance\"}[5m]))",
779 "format": "time_series",
780 "intervalFactor": 2,
781 "legendFormat": "{{ input }}",
782 "refId": "A",
783 "step": 240
784 },
785 {
786 "datasource": {
787 "type": "prometheus",
788 "uid": "${DS_PROM}"
789 },
790 "expr": "sum(rate(redis_net_output_bytes_total{instance=~\"$instance\"}[5m]))",
791 "format": "time_series",
792 "interval": "",
793 "intervalFactor": 2,
794 "legendFormat": "{{ output }}",
795 "refId": "B",
796 "step": 240
797 }
798 ],
799 "title": "Network I/O",
800 "type": "timeseries"
801 },
802 {
803 "datasource": {
804 "type": "prometheus",
805 "uid": "${DS_PROM}"
806 },
807 "fieldConfig": {
808 "defaults": {
809 "color": {
810 "mode": "palette-classic"
811 },
812 "custom": {
813 "axisBorderShow": false,
814 "axisCenteredZero": false,
815 "axisColorMode": "text",
816 "axisLabel": "",
817 "axisPlacement": "auto",
818 "barAlignment": 0,
819 "drawStyle": "line",
820 "fillOpacity": 70,
821 "gradientMode": "none",
822 "hideFrom": {
823 "legend": false,
824 "tooltip": false,
825 "viz": false
826 },
827 "insertNulls": false,
828 "lineInterpolation": "linear",
829 "lineWidth": 2,
830 "pointSize": 5,
831 "scaleDistribution": {
832 "type": "linear"
833 },
834 "showPoints": "never",
835 "spanNulls": true,
836 "stacking": {
837 "group": "A",
838 "mode": "normal"
839 },
840 "thresholdsStyle": {
841 "mode": "off"
842 }
843 },
844 "links": [],
845 "mappings": [],
846 "thresholds": {
847 "mode": "absolute",
848 "steps": [
849 {
850 "color": "green",
851 "value": null
852 },
853 {
854 "color": "red",
855 "value": 80
856 }
857 ]
858 },
859 "unit": "short",
860 "unitScale": true
861 },
862 "overrides": [
863 {
864 "matcher": {
865 "id": "byValue",
866 "options": {
867 "op": "gte",
868 "reducer": "allIsZero",
869 "value": 0
870 }
871 },
872 "properties": [
873 {
874 "id": "custom.hideFrom",
875 "value": {
876 "legend": true,
877 "tooltip": true,
878 "viz": false
879 }
880 }
881 ]
882 }
883 ]
884 },
885 "gridPos": {
886 "h": 7,
887 "w": 12,
888 "x": 0,
889 "y": 14
890 },
891 "id": 5,
892 "links": [],
893 "options": {
894 "legend": {
895 "calcs": [
896 "lastNotNull"
897 ],
898 "displayMode": "list",
899 "placement": "bottom",
900 "showLegend": true
901 },
902 "tooltip": {
903 "mode": "multi",
904 "sort": "none"
905 }
906 },
907 "pluginVersion": "10.3.3",
908 "targets": [
909 {
910 "datasource": {
911 "type": "prometheus",
912 "uid": "${DS_PROM}"
913 },
914 "expr": "sum (redis_db_keys{instance=~\"$instance\"}) by (db, instance)",
915 "format": "time_series",
916 "interval": "",
917 "intervalFactor": 2,
918 "legendFormat": "{{ db }}, {{ instance }}",
919 "refId": "A",
920 "step": 240,
921 "target": ""
922 }
923 ],
924 "title": "Total Items per DB",
925 "type": "timeseries"
926 },
927 {
928 "datasource": {
929 "type": "prometheus",
930 "uid": "${DS_PROM}"
931 },
932 "fieldConfig": {
933 "defaults": {
934 "color": {
935 "mode": "palette-classic"
936 },
937 "custom": {
938 "axisBorderShow": false,
939 "axisCenteredZero": false,
940 "axisColorMode": "text",
941 "axisLabel": "",
942 "axisPlacement": "auto",
943 "barAlignment": 0,
944 "drawStyle": "line",
945 "fillOpacity": 70,
946 "gradientMode": "none",
947 "hideFrom": {
948 "legend": false,
949 "tooltip": false,
950 "viz": false
951 },
952 "insertNulls": false,
953 "lineInterpolation": "linear",
954 "lineWidth": 2,
955 "pointSize": 5,
956 "scaleDistribution": {
957 "type": "linear"
958 },
959 "showPoints": "never",
960 "spanNulls": true,
961 "stacking": {
962 "group": "A",
963 "mode": "normal"
964 },
965 "thresholdsStyle": {
966 "mode": "off"
967 }
968 },
969 "links": [],
970 "mappings": [],
971 "thresholds": {
972 "mode": "absolute",
973 "steps": [
974 {
975 "color": "green",
976 "value": null
977 },
978 {
979 "color": "red",
980 "value": 80
981 }
982 ]
983 },
984 "unit": "short",
985 "unitScale": true
986 },
987 "overrides": []
988 },
989 "gridPos": {
990 "h": 7,
991 "w": 12,
992 "x": 12,
993 "y": 14
994 },
995 "id": 13,
996 "links": [],
997 "options": {
998 "legend": {
999 "calcs": [],
1000 "displayMode": "list",
1001 "placement": "bottom",
1002 "showLegend": true
1003 },
1004 "tooltip": {
1005 "mode": "multi",
1006 "sort": "none"
1007 }
1008 },
1009 "pluginVersion": "10.3.3",
1010 "targets": [
1011 {
1012 "datasource": {
1013 "type": "prometheus",
1014 "uid": "${DS_PROM}"
1015 },
1016 "expr": "sum (redis_db_keys{instance=~\"$instance\"}) by (instance) - sum (redis_db_keys_expiring{instance=~\"$instance\"}) by (instance)",
1017 "format": "time_series",
1018 "interval": "",
1019 "intervalFactor": 2,
1020 "legendFormat": "not expiring, {{ instance }}",
1021 "refId": "A",
1022 "step": 240,
1023 "target": ""
1024 },
1025 {
1026 "datasource": {
1027 "type": "prometheus",
1028 "uid": "${DS_PROM}"
1029 },
1030 "expr": "sum (redis_db_keys_expiring{instance=~\"$instance\"}) by (instance)",
1031 "format": "time_series",
1032 "interval": "",
1033 "intervalFactor": 2,
1034 "legendFormat": "expiring, {{ instance }}",
1035 "metric": "",
1036 "refId": "B",
1037 "step": 240
1038 }
1039 ],
1040 "title": "Expiring vs Not-Expiring Keys",
1041 "type": "timeseries"
1042 },
1043 {
1044 "datasource": {
1045 "type": "prometheus",
1046 "uid": "${DS_PROM}"
1047 },
1048 "fieldConfig": {
1049 "defaults": {
1050 "color": {
1051 "mode": "palette-classic"
1052 },
1053 "custom": {
1054 "axisBorderShow": false,
1055 "axisCenteredZero": false,
1056 "axisColorMode": "text",
1057 "axisLabel": "",
1058 "axisPlacement": "auto",
1059 "barAlignment": 0,
1060 "drawStyle": "line",
1061 "fillOpacity": 10,
1062 "gradientMode": "none",
1063 "hideFrom": {
1064 "legend": false,
1065 "tooltip": false,
1066 "viz": false
1067 },
1068 "insertNulls": false,
1069 "lineInterpolation": "linear",
1070 "lineWidth": 2,
1071 "pointSize": 5,
1072 "scaleDistribution": {
1073 "type": "linear"
1074 },
1075 "showPoints": "never",
1076 "spanNulls": true,
1077 "stacking": {
1078 "group": "A",
1079 "mode": "none"
1080 },
1081 "thresholdsStyle": {
1082 "mode": "off"
1083 }
1084 },
1085 "links": [],
1086 "mappings": [],
1087 "thresholds": {
1088 "mode": "absolute",
1089 "steps": [
1090 {
1091 "color": "green"
1092 },
1093 {
1094 "color": "red",
1095 "value": 80
1096 }
1097 ]
1098 },
1099 "unit": "short",
1100 "unitScale": true
1101 },
1102 "overrides": [
1103 {
1104 "matcher": {
1105 "id": "byName",
1106 "options": "evicts"
1107 },
1108 "properties": [
1109 {
1110 "id": "color",
1111 "value": {
1112 "fixedColor": "#890F02",
1113 "mode": "fixed"
1114 }
1115 }
1116 ]
1117 },
1118 {
1119 "matcher": {
1120 "id": "byName",
1121 "options": "memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"prometheus\"}"
1122 },
1123 "properties": [
1124 {
1125 "id": "color",
1126 "value": {
1127 "fixedColor": "#890F02",
1128 "mode": "fixed"
1129 }
1130 }
1131 ]
1132 },
1133 {
1134 "matcher": {
1135 "id": "byName",
1136 "options": "reclaims"
1137 },
1138 "properties": [
1139 {
1140 "id": "color",
1141 "value": {
1142 "fixedColor": "#3F6833",
1143 "mode": "fixed"
1144 }
1145 }
1146 ]
1147 }
1148 ]
1149 },
1150 "gridPos": {
1151 "h": 7,
1152 "w": 12,
1153 "x": 0,
1154 "y": 21
1155 },
1156 "id": 8,
1157 "links": [],
1158 "options": {
1159 "legend": {
1160 "calcs": [],
1161 "displayMode": "list",
1162 "placement": "bottom",
1163 "showLegend": true
1164 },
1165 "tooltip": {
1166 "mode": "multi",
1167 "sort": "none"
1168 }
1169 },
1170 "pluginVersion": "10.3.3",
1171 "targets": [
1172 {
1173 "datasource": {
1174 "type": "prometheus",
1175 "uid": "${DS_PROM}"
1176 },
1177 "expr": "sum(rate(redis_expired_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
1178 "format": "time_series",
1179 "hide": false,
1180 "interval": "",
1181 "intervalFactor": 2,
1182 "legendFormat": "expired, {{ instance }}",
1183 "metric": "",
1184 "refId": "A",
1185 "step": 240,
1186 "target": ""
1187 },
1188 {
1189 "datasource": {
1190 "type": "prometheus",
1191 "uid": "${DS_PROM}"
1192 },
1193 "expr": "sum(rate(redis_evicted_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
1194 "format": "time_series",
1195 "interval": "",
1196 "intervalFactor": 2,
1197 "legendFormat": "evicted, {{ instance }}",
1198 "refId": "B",
1199 "step": 240
1200 }
1201 ],
1202 "title": "Expired/Evicted Keys",
1203 "type": "timeseries"
1204 },
1205 {
1206 "datasource": {
1207 "type": "prometheus",
1208 "uid": "${DS_PROM}"
1209 },
1210 "fieldConfig": {
1211 "defaults": {
1212 "color": {
1213 "mode": "palette-classic"
1214 },
1215 "custom": {
1216 "axisBorderShow": false,
1217 "axisCenteredZero": false,
1218 "axisColorMode": "text",
1219 "axisLabel": "",
1220 "axisPlacement": "auto",
1221 "barAlignment": 0,
1222 "drawStyle": "line",
1223 "fillOpacity": 10,
1224 "gradientMode": "none",
1225 "hideFrom": {
1226 "legend": false,
1227 "tooltip": false,
1228 "viz": false
1229 },
1230 "insertNulls": false,
1231 "lineInterpolation": "linear",
1232 "lineWidth": 1,
1233 "pointSize": 5,
1234 "scaleDistribution": {
1235 "type": "linear"
1236 },
1237 "showPoints": "never",
1238 "spanNulls": false,
1239 "stacking": {
1240 "group": "A",
1241 "mode": "none"
1242 },
1243 "thresholdsStyle": {
1244 "mode": "off"
1245 }
1246 },
1247 "links": [],
1248 "mappings": [],
1249 "thresholds": {
1250 "mode": "absolute",
1251 "steps": [
1252 {
1253 "color": "green"
1254 },
1255 {
1256 "color": "red",
1257 "value": 80
1258 }
1259 ]
1260 },
1261 "unit": "short",
1262 "unitScale": true
1263 },
1264 "overrides": []
1265 },
1266 "gridPos": {
1267 "h": 7,
1268 "w": 12,
1269 "x": 12,
1270 "y": 21
1271 },
1272 "id": 16,
1273 "links": [],
1274 "options": {
1275 "legend": {
1276 "calcs": [],
1277 "displayMode": "list",
1278 "placement": "bottom",
1279 "showLegend": true
1280 },
1281 "tooltip": {
1282 "mode": "multi",
1283 "sort": "none"
1284 }
1285 },
1286 "pluginVersion": "10.3.3",
1287 "targets": [
1288 {
1289 "datasource": {
1290 "type": "prometheus",
1291 "uid": "${DS_PROM}"
1292 },
1293 "expr": "sum(redis_connected_clients{instance=~\"$instance\"})",
1294 "format": "time_series",
1295 "intervalFactor": 1,
1296 "legendFormat": "connected",
1297 "refId": "A"
1298 },
1299 {
1300 "datasource": {
1301 "type": "prometheus",
1302 "uid": "${DS_PROM}"
1303 },
1304 "expr": "sum(redis_blocked_clients{instance=~\"$instance\"})",
1305 "format": "time_series",
1306 "intervalFactor": 1,
1307 "legendFormat": "blocked",
1308 "refId": "B"
1309 }
1310 ],
1311 "title": "Connected/Blocked Clients",
1312 "type": "timeseries"
1313 },
1314 {
1315 "datasource": {
1316 "type": "prometheus",
1317 "uid": "${DS_PROM}"
1318 },
1319 "fieldConfig": {
1320 "defaults": {
1321 "color": {
1322 "mode": "palette-classic"
1323 },
1324 "custom": {
1325 "axisBorderShow": false,
1326 "axisCenteredZero": false,
1327 "axisColorMode": "text",
1328 "axisLabel": "",
1329 "axisPlacement": "auto",
1330 "barAlignment": 0,
1331 "drawStyle": "line",
1332 "fillOpacity": 0,
1333 "gradientMode": "none",
1334 "hideFrom": {
1335 "legend": false,
1336 "tooltip": false,
1337 "viz": false
1338 },
1339 "insertNulls": false,
1340 "lineInterpolation": "linear",
1341 "lineWidth": 1,
1342 "pointSize": 5,
1343 "scaleDistribution": {
1344 "type": "linear"
1345 },
1346 "showPoints": "never",
1347 "spanNulls": true,
1348 "stacking": {
1349 "group": "A",
1350 "mode": "none"
1351 },
1352 "thresholdsStyle": {
1353 "mode": "off"
1354 }
1355 },
1356 "links": [],
1357 "mappings": [],
1358 "thresholds": {
1359 "mode": "absolute",
1360 "steps": [
1361 {
1362 "color": "green"
1363 },
1364 {
1365 "color": "red",
1366 "value": 80
1367 }
1368 ]
1369 },
1370 "unit": "s",
1371 "unitScale": true
1372 },
1373 "overrides": [
1374 {
1375 "matcher": {
1376 "id": "byValue",
1377 "options": {
1378 "op": "gte",
1379 "reducer": "allIsZero",
1380 "value": 0
1381 }
1382 },
1383 "properties": [
1384 {
1385 "id": "custom.hideFrom",
1386 "value": {
1387 "legend": true,
1388 "tooltip": true,
1389 "viz": false
1390 }
1391 }
1392 ]
1393 }
1394 ]
1395 },
1396 "gridPos": {
1397 "h": 7,
1398 "w": 12,
1399 "x": 0,
1400 "y": 28
1401 },
1402 "id": 20,
1403 "links": [],
1404 "options": {
1405 "legend": {
1406 "calcs": [],
1407 "displayMode": "list",
1408 "placement": "bottom",
1409 "showLegend": true
1410 },
1411 "tooltip": {
1412 "mode": "multi",
1413 "sort": "desc"
1414 }
1415 },
1416 "pluginVersion": "10.3.3",
1417 "targets": [
1418 {
1419 "datasource": {
1420 "type": "prometheus",
1421 "uid": "${DS_PROM}"
1422 },
1423 "expr": "sum(irate(redis_commands_duration_seconds_total{namespace=~\"$namespace\", instance =~ \"$instance\"}[1m])) by (cmd)\n /\nsum(irate(redis_commands_total{namespace=~\"$namespace\", instance =~ \"$instance\"}[1m])) by (cmd)\n",
1424 "format": "time_series",
1425 "interval": "",
1426 "intervalFactor": 2,
1427 "legendFormat": "{{ cmd }}",
1428 "metric": "redis_command_calls_total",
1429 "refId": "A",
1430 "step": 240
1431 }
1432 ],
1433 "title": "Average Time Spent by Command / sec",
1434 "type": "timeseries"
1435 },
1436 {
1437 "datasource": {
1438 "type": "prometheus",
1439 "uid": "${DS_PROM}"
1440 },
1441 "fieldConfig": {
1442 "defaults": {
1443 "color": {
1444 "mode": "palette-classic"
1445 },
1446 "custom": {
1447 "axisBorderShow": false,
1448 "axisCenteredZero": false,
1449 "axisColorMode": "text",
1450 "axisLabel": "",
1451 "axisPlacement": "auto",
1452 "barAlignment": 0,
1453 "drawStyle": "line",
1454 "fillOpacity": 80,
1455 "gradientMode": "none",
1456 "hideFrom": {
1457 "legend": false,
1458 "tooltip": false,
1459 "viz": false
1460 },
1461 "insertNulls": false,
1462 "lineInterpolation": "linear",
1463 "lineWidth": 1,
1464 "pointSize": 5,
1465 "scaleDistribution": {
1466 "type": "linear"
1467 },
1468 "showPoints": "never",
1469 "spanNulls": true,
1470 "stacking": {
1471 "group": "A",
1472 "mode": "normal"
1473 },
1474 "thresholdsStyle": {
1475 "mode": "off"
1476 }
1477 },
1478 "links": [],
1479 "mappings": [],
1480 "thresholds": {
1481 "mode": "absolute",
1482 "steps": [
1483 {
1484 "color": "green"
1485 },
1486 {
1487 "color": "red",
1488 "value": 80
1489 }
1490 ]
1491 },
1492 "unit": "s",
1493 "unitScale": true
1494 },
1495 "overrides": []
1496 },
1497 "gridPos": {
1498 "h": 7,
1499 "w": 12,
1500 "x": 12,
1501 "y": 28
1502 },
1503 "id": 14,
1504 "links": [],
1505 "options": {
1506 "legend": {
1507 "calcs": [],
1508 "displayMode": "list",
1509 "placement": "bottom",
1510 "showLegend": true
1511 },
1512 "tooltip": {
1513 "mode": "multi",
1514 "sort": "desc"
1515 }
1516 },
1517 "pluginVersion": "10.3.3",
1518 "targets": [
1519 {
1520 "datasource": {
1521 "type": "prometheus",
1522 "uid": "${DS_PROM}"
1523 },
1524 "expr": "sum(irate(redis_commands_duration_seconds_total{instance=~\"$instance\"}[1m])) by (cmd) != 0",
1525 "format": "time_series",
1526 "interval": "",
1527 "intervalFactor": 2,
1528 "legendFormat": "{{ cmd }}",
1529 "metric": "redis_command_calls_total",
1530 "refId": "A",
1531 "step": 240
1532 }
1533 ],
1534 "title": "Total Time Spent by Command / sec",
1535 "type": "timeseries"
1536 }
1537 ],
1538 "refresh": "",
1539 "schemaVersion": 39,
1540 "tags": [
1541 "prometheus",
1542 "redis"
1543 ],
1544 "templating": {
1545 "list": [
1546 {
1547 "current": {
1548 "selected": false,
1549 "text": "default",
1550 "value": "default"
1551 },
1552 "hide": 0,
1553 "includeAll": false,
1554 "label": "datasource",
1555 "multi": false,
1556 "name": "DS_PROM",
1557 "options": [],
1558 "query": "prometheus",
1559 "refresh": 1,
1560 "regex": "",
1561 "skipUrlSync": false,
1562 "type": "datasource"
1563 },
1564 {
1565 "current": {},
1566 "datasource": {
1567 "type": "prometheus",
1568 "uid": "${DS_PROM}"
1569 },
1570 "definition": "label_values(redis_up, namespace)",
1571 "hide": 0,
1572 "includeAll": false,
1573 "multi": false,
1574 "name": "namespace",
1575 "options": [],
1576 "query": "label_values(redis_up, namespace)",
1577 "refresh": 2,
1578 "regex": "",
1579 "skipUrlSync": false,
1580 "sort": 1,
1581 "tagValuesQuery": "",
1582 "tagsQuery": "",
1583 "type": "query",
1584 "useTags": false
1585 },
1586 {
1587 "current": {},
1588 "datasource": {
1589 "type": "prometheus",
1590 "uid": "${DS_PROM}"
1591 },
1592 "definition": "label_values(redis_up{namespace=~\"$namespace\"}, instance)",
1593 "hide": 0,
1594 "includeAll": false,
1595 "multi": true,
1596 "name": "instance",
1597 "options": [],
1598 "query": "label_values(redis_up{namespace=~\"$namespace\"}, instance)",
1599 "refresh": 2,
1600 "regex": "",
1601 "skipUrlSync": false,
1602 "sort": 1,
1603 "tagValuesQuery": "",
1604 "tagsQuery": "",
1605 "type": "query",
1606 "useTags": false
1607 }
1608 ]
1609 },
1610 "time": {
1611 "from": "now-24h",
1612 "to": "now"
1613 },
1614 "timepicker": {
1615 "refresh_intervals": [
1616 "5s",
1617 "10s",
1618 "30s",
1619 "1m",
1620 "5m",
1621 "15m",
1622 "30m",
1623 "1h",
1624 "2h",
1625 "1d"
1626 ],
1627 "time_options": [
1628 "5m",
1629 "15m",
1630 "1h",
1631 "6h",
1632 "12h",
1633 "24h",
1634 "2d",
1635 "7d",
1636 "30d"
1637 ]
1638 },
1639 "timezone": "browser",
1640 "title": "Redis Dashboard for Prometheus Redis Exporter 1.x",
1641 "uid": "e008bc3f-81a2-40f9-baf2-a33fd8dec7ec",
1642 "version": 3,
1643 "weekStart": ""
1644 }