Debian Codegraph @

contrib/redis-mixin/dashboards/redis-overview.json

raw symbols SCIP
1 {
2 "annotations": {
3 "list": [
4 {
5 "builtIn": 1,
6 "datasource": "-- Grafana --",
7 "enable": true,
8 "hide": true,
9 "iconColor": "rgba(0, 211, 255, 1)",
10 "name": "Annotations & Alerts",
11 "type": "dashboard"
12 }
13 ]
14 },
15 "description": "Redis Dashboard for Prometheus Redis Exporter 1.x",
16 "editable": true,
17 "gnetId": 763,
18 "graphTooltip": 1,
19 "id": 24,
20 "iteration": 1602758020790,
21 "links": [],
22 "panels": [
23 {
24 "collapsed": false,
25 "datasource": null,
26 "gridPos": {
27 "h": 1,
28 "w": 24,
29 "x": 0,
30 "y": 0
31 },
32 "id": 24,
33 "panels": [],
34 "title": "Performance",
35 "type": "row"
36 },
37 {
38 "aliasColors": {},
39 "bars": false,
40 "dashLength": 10,
41 "dashes": false,
42 "datasource": "$datasource",
43 "description": "Average taken across instances",
44 "editable": true,
45 "error": false,
46 "fieldConfig": {
47 "defaults": {
48 "custom": {}
49 },
50 "overrides": []
51 },
52 "fill": 1,
53 "fillGradient": 0,
54 "grid": {},
55 "gridPos": {
56 "h": 7,
57 "w": 8,
58 "x": 0,
59 "y": 1
60 },
61 "hiddenSeries": false,
62 "id": 18,
63 "isNew": true,
64 "legend": {
65 "avg": false,
66 "current": false,
67 "hideEmpty": false,
68 "hideZero": false,
69 "max": false,
70 "min": false,
71 "show": true,
72 "total": false,
73 "values": false
74 },
75 "lines": true,
76 "linewidth": 1,
77 "links": [],
78 "nullPointMode": "connected",
79 "options": {
80 "dataLinks": []
81 },
82 "percentage": false,
83 "pointradius": 5,
84 "points": false,
85 "renderer": "flot",
86 "seriesOverrides": [],
87 "spaceLength": 10,
88 "stack": true,
89 "steppedLine": false,
90 "targets": [
91 {
92 "expr": "avg(irate(redis_commands_total{instance=~\"$instance\"} [$__rate_interval])) by (cmd)",
93 "format": "time_series",
94 "interval": "",
95 "intervalFactor": 2,
96 "legendFormat": "{{cmd}}",
97 "metric": "redis_command_calls_total",
98 "refId": "A",
99 "step": 240
100 }
101 ],
102 "thresholds": [],
103 "timeFrom": null,
104 "timeRegions": [],
105 "timeShift": null,
106 "title": "Commands per second",
107 "tooltip": {
108 "msResolution": true,
109 "shared": true,
110 "sort": 2,
111 "value_type": "individual"
112 },
113 "type": "graph",
114 "xaxis": {
115 "buckets": null,
116 "mode": "time",
117 "name": null,
118 "show": true,
119 "values": []
120 },
121 "yaxes": [
122 {
123 "format": "short",
124 "label": null,
125 "logBase": 1,
126 "max": null,
127 "min": null,
128 "show": true
129 },
130 {
131 "format": "short",
132 "label": null,
133 "logBase": 1,
134 "max": null,
135 "min": null,
136 "show": true
137 }
138 ],
139 "yaxis": {
140 "align": false,
141 "alignLevel": null
142 }
143 },
144 {
145 "aliasColors": {},
146 "bars": false,
147 "dashLength": 10,
148 "dashes": false,
149 "datasource": "$datasource",
150 "description": "Average taken across instances",
151 "editable": true,
152 "error": false,
153 "fieldConfig": {
154 "defaults": {
155 "custom": {}
156 },
157 "overrides": []
158 },
159 "fill": 1,
160 "fillGradient": 0,
161 "grid": {},
162 "gridPos": {
163 "h": 7,
164 "w": 8,
165 "x": 8,
166 "y": 1
167 },
168 "hiddenSeries": false,
169 "id": 20,
170 "isNew": true,
171 "legend": {
172 "avg": false,
173 "current": false,
174 "hideEmpty": false,
175 "hideZero": true,
176 "max": false,
177 "min": false,
178 "show": true,
179 "total": false,
180 "values": false
181 },
182 "lines": true,
183 "linewidth": 1,
184 "links": [],
185 "nullPointMode": "connected",
186 "options": {
187 "dataLinks": []
188 },
189 "percentage": false,
190 "pointradius": 5,
191 "points": false,
192 "renderer": "flot",
193 "seriesOverrides": [],
194 "spaceLength": 10,
195 "stack": false,
196 "steppedLine": false,
197 "targets": [
198 {
199 "expr": "avg(irate(redis_commands_duration_seconds_total{instance=~\"$instance\"}[$__rate_interval])) by (cmd)\n /\navg(irate(redis_commands_total{instance=~\"$instance\"}[$__rate_interval])) by (cmd)\n",
200 "format": "time_series",
201 "interval": "",
202 "intervalFactor": 2,
203 "legendFormat": "{{ cmd }}",
204 "metric": "redis_command_calls_total",
205 "refId": "A",
206 "step": 240
207 }
208 ],
209 "thresholds": [],
210 "timeFrom": null,
211 "timeRegions": [],
212 "timeShift": null,
213 "title": "Command latency per second",
214 "tooltip": {
215 "msResolution": true,
216 "shared": true,
217 "sort": 2,
218 "value_type": "individual"
219 },
220 "type": "graph",
221 "xaxis": {
222 "buckets": null,
223 "mode": "time",
224 "name": null,
225 "show": true,
226 "values": []
227 },
228 "yaxes": [
229 {
230 "format": "s",
231 "label": null,
232 "logBase": 1,
233 "max": null,
234 "min": null,
235 "show": true
236 },
237 {
238 "format": "short",
239 "label": null,
240 "logBase": 1,
241 "max": null,
242 "min": null,
243 "show": true
244 }
245 ],
246 "yaxis": {
247 "align": false,
248 "alignLevel": null
249 }
250 },
251 {
252 "aliasColors": {
253 "Hit ratio": "blue"
254 },
255 "bars": false,
256 "dashLength": 10,
257 "dashes": false,
258 "datasource": "$datasource",
259 "decimals": 2,
260 "description": "Hit rate shows the percentage of key space lookups that hit a key.",
261 "editable": true,
262 "error": false,
263 "fieldConfig": {
264 "defaults": {
265 "custom": {}
266 },
267 "overrides": []
268 },
269 "fill": 1,
270 "fillGradient": 0,
271 "grid": {},
272 "gridPos": {
273 "h": 7,
274 "w": 8,
275 "x": 16,
276 "y": 1
277 },
278 "hiddenSeries": false,
279 "id": 1,
280 "isNew": true,
281 "legend": {
282 "avg": false,
283 "current": false,
284 "max": false,
285 "min": false,
286 "show": true,
287 "total": false,
288 "values": false
289 },
290 "lines": true,
291 "linewidth": 1,
292 "links": [],
293 "nullPointMode": "connected",
294 "options": {
295 "dataLinks": []
296 },
297 "percentage": true,
298 "pointradius": 5,
299 "points": false,
300 "renderer": "flot",
301 "seriesOverrides": [
302 {
303 "alias": "/Target/",
304 "color": "#56A64B",
305 "dashes": true,
306 "fill": 0,
307 "hideTooltip": true,
308 "linewidth": 1
309 }
310 ],
311 "spaceLength": 10,
312 "stack": false,
313 "steppedLine": false,
314 "targets": [
315 {
316 "expr": "avg(irate(redis_keyspace_hits_total{instance=~\"$instance\"}[$__rate_interval]) / (irate(redis_keyspace_misses_total{instance=~\"$instance\"}[$__rate_interval]) + irate(redis_keyspace_hits_total{instance=~\"$instance\"}[$__rate_interval]))) by (instance)",
317 "format": "time_series",
318 "hide": false,
319 "interval": "",
320 "intervalFactor": 2,
321 "legendFormat": "{{instance}}",
322 "metric": "",
323 "refId": "A",
324 "step": 240,
325 "target": ""
326 },
327 {
328 "expr": "1",
329 "interval": "",
330 "legendFormat": "Target hit ratio for cache",
331 "refId": "B"
332 }
333 ],
334 "thresholds": [],
335 "timeFrom": null,
336 "timeRegions": [],
337 "timeShift": null,
338 "title": "Hit ratio per instance",
339 "tooltip": {
340 "msResolution": false,
341 "shared": true,
342 "sort": 0,
343 "value_type": "individual"
344 },
345 "type": "graph",
346 "xaxis": {
347 "buckets": null,
348 "mode": "time",
349 "name": null,
350 "show": true,
351 "values": []
352 },
353 "yaxes": [
354 {
355 "format": "percentunit",
356 "label": "",
357 "logBase": 1,
358 "max": null,
359 "min": 0,
360 "show": true
361 },
362 {
363 "format": "short",
364 "label": null,
365 "logBase": 1,
366 "max": null,
367 "min": null,
368 "show": true
369 }
370 ],
371 "yaxis": {
372 "align": false,
373 "alignLevel": null
374 }
375 },
376 {
377 "collapsed": false,
378 "datasource": null,
379 "gridPos": {
380 "h": 1,
381 "w": 24,
382 "x": 0,
383 "y": 8
384 },
385 "id": 22,
386 "panels": [],
387 "title": "Memory",
388 "type": "row"
389 },
390 {
391 "aliasColors": {
392 "max": "#BF1B00"
393 },
394 "bars": false,
395 "dashLength": 10,
396 "dashes": false,
397 "datasource": "$datasource",
398 "description": "Total taken across instances",
399 "editable": true,
400 "error": false,
401 "fieldConfig": {
402 "defaults": {
403 "custom": {}
404 },
405 "overrides": []
406 },
407 "fill": 1,
408 "fillGradient": 0,
409 "grid": {},
410 "gridPos": {
411 "h": 7,
412 "w": 8,
413 "x": 0,
414 "y": 9
415 },
416 "hiddenSeries": false,
417 "id": 7,
418 "isNew": true,
419 "legend": {
420 "avg": false,
421 "current": false,
422 "hideEmpty": false,
423 "hideZero": false,
424 "max": false,
425 "min": false,
426 "show": true,
427 "total": false,
428 "values": false
429 },
430 "lines": true,
431 "linewidth": 1,
432 "links": [],
433 "nullPointMode": "null as zero",
434 "options": {
435 "dataLinks": []
436 },
437 "percentage": false,
438 "pointradius": 5,
439 "points": false,
440 "renderer": "flot",
441 "seriesOverrides": [
442 {
443 "alias": "/max/",
444 "color": "#E02F44",
445 "dashes": true,
446 "fill": 0,
447 "linewidth": 1
448 }
449 ],
450 "spaceLength": 10,
451 "stack": false,
452 "steppedLine": false,
453 "targets": [
454 {
455 "expr": "sum(redis_memory_used_bytes{instance=~\"$instance\"})",
456 "format": "time_series",
457 "interval": "",
458 "intervalFactor": 2,
459 "legendFormat": "Used Memory",
460 "metric": "",
461 "refId": "A",
462 "step": 240,
463 "target": ""
464 },
465 {
466 "expr": "sum(redis_memory_max_bytes{instance=~\"$instance\"})",
467 "format": "time_series",
468 "hide": false,
469 "interval": "",
470 "intervalFactor": 2,
471 "legendFormat": "Configured max memory",
472 "refId": "B",
473 "step": 240
474 },
475 {
476 "expr": "sum(redis_memory_used_rss_bytes{instance=~\"$instance\"})",
477 "interval": "",
478 "legendFormat": "Used RSS memory",
479 "refId": "C"
480 }
481 ],
482 "thresholds": [],
483 "timeFrom": null,
484 "timeRegions": [],
485 "timeShift": null,
486 "title": "Total Memory Usage",
487 "tooltip": {
488 "msResolution": false,
489 "shared": true,
490 "sort": 0,
491 "value_type": "cumulative"
492 },
493 "type": "graph",
494 "xaxis": {
495 "buckets": null,
496 "mode": "time",
497 "name": null,
498 "show": true,
499 "values": []
500 },
501 "yaxes": [
502 {
503 "format": "bytes",
504 "label": null,
505 "logBase": 1,
506 "max": null,
507 "min": 0,
508 "show": true
509 },
510 {
511 "format": "short",
512 "label": null,
513 "logBase": 1,
514 "max": null,
515 "min": null,
516 "show": true
517 }
518 ],
519 "yaxis": {
520 "align": false,
521 "alignLevel": null
522 }
523 },
524 {
525 "aliasColors": {
526 "Recommend restart redis": "red"
527 },
528 "bars": false,
529 "dashLength": 10,
530 "dashes": false,
531 "datasource": "$datasource",
532 "editable": true,
533 "error": false,
534 "fieldConfig": {
535 "defaults": {
536 "custom": {}
537 },
538 "overrides": []
539 },
540 "fill": 1,
541 "fillGradient": 0,
542 "grid": {},
543 "gridPos": {
544 "h": 7,
545 "w": 8,
546 "x": 8,
547 "y": 9
548 },
549 "hiddenSeries": false,
550 "id": 10,
551 "isNew": true,
552 "legend": {
553 "avg": false,
554 "current": false,
555 "max": false,
556 "min": false,
557 "show": true,
558 "total": false,
559 "values": false
560 },
561 "lines": true,
562 "linewidth": 1,
563 "links": [],
564 "nullPointMode": "connected",
565 "options": {
566 "dataLinks": []
567 },
568 "percentage": false,
569 "pointradius": 5,
570 "points": false,
571 "renderer": "flot",
572 "seriesOverrides": [
573 {
574 "alias": "/restart/",
575 "color": "#E02F44",
576 "dashes": true,
577 "fill": 0,
578 "linewidth": 1
579 }
580 ],
581 "spaceLength": 10,
582 "stack": false,
583 "steppedLine": false,
584 "targets": [
585 {
586 "expr": "redis_memory_fragmentation_ratio{instance=~\"$instance\"}",
587 "hide": false,
588 "interval": "",
589 "legendFormat": "{{instance}}",
590 "refId": "C"
591 }
592 ],
593 "thresholds": [],
594 "timeFrom": null,
595 "timeRegions": [],
596 "timeShift": null,
597 "title": "Memory fragmentation ratio per instance",
598 "tooltip": {
599 "msResolution": true,
600 "shared": true,
601 "sort": 0,
602 "value_type": "cumulative"
603 },
604 "type": "graph",
605 "xaxis": {
606 "buckets": null,
607 "mode": "time",
608 "name": null,
609 "show": true,
610 "values": []
611 },
612 "yaxes": [
613 {
614 "format": "short",
615 "label": null,
616 "logBase": 1,
617 "max": null,
618 "min": null,
619 "show": true
620 },
621 {
622 "format": "short",
623 "label": null,
624 "logBase": 1,
625 "max": null,
626 "min": null,
627 "show": true
628 }
629 ],
630 "yaxis": {
631 "align": false,
632 "alignLevel": null
633 }
634 },
635 {
636 "aliasColors": {
637 "Evictions": "red",
638 "evicts": "#890F02",
639 "memcached_items_evicted_total{instance=\"172.17.0.1:9150\",job=\"prometheus\"}": "#890F02",
640 "reclaims": "#3F6833",
641 "{container=\"redis-exporter\", instance=\"redis-86cb5d76d7-fcdln:redis-exporter:redis-metrics\", job=\"default/redis\", namespace=\"default\", pod=\"redis-86cb5d76d7-fcdln\"}": "red",
642 "{instance=\"redis-86cb5d76d7-fcdln:redis-exporter:redis-metrics\"}": "red"
643 },
644 "bars": false,
645 "dashLength": 10,
646 "dashes": false,
647 "datasource": "$datasource",
648 "editable": true,
649 "error": false,
650 "fieldConfig": {
651 "defaults": {
652 "custom": {}
653 },
654 "overrides": []
655 },
656 "fill": 1,
657 "fillGradient": 0,
658 "grid": {},
659 "gridPos": {
660 "h": 7,
661 "w": 8,
662 "x": 16,
663 "y": 9
664 },
665 "hiddenSeries": false,
666 "id": 8,
667 "isNew": true,
668 "legend": {
669 "avg": false,
670 "current": false,
671 "max": false,
672 "min": false,
673 "show": true,
674 "total": false,
675 "values": false
676 },
677 "lines": true,
678 "linewidth": 1,
679 "links": [],
680 "nullPointMode": "connected",
681 "options": {
682 "dataLinks": []
683 },
684 "percentage": false,
685 "pointradius": 5,
686 "points": false,
687 "renderer": "flot",
688 "seriesOverrides": [
689 {
690 "alias": "reclaims",
691 "yaxis": 2
692 }
693 ],
694 "spaceLength": 10,
695 "stack": false,
696 "steppedLine": false,
697 "targets": [
698 {
699 "expr": "irate(redis_evicted_keys_total{instance=~\"$instance\"}[$__rate_interval])",
700 "format": "time_series",
701 "interval": "",
702 "intervalFactor": 2,
703 "legendFormat": "{{instance}}",
704 "refId": "B",
705 "step": 240
706 }
707 ],
708 "thresholds": [],
709 "timeFrom": null,
710 "timeRegions": [],
711 "timeShift": null,
712 "title": "Key evictions per second per instance",
713 "tooltip": {
714 "msResolution": false,
715 "shared": true,
716 "sort": 0,
717 "value_type": "cumulative"
718 },
719 "type": "graph",
720 "xaxis": {
721 "buckets": null,
722 "mode": "time",
723 "name": null,
724 "show": true,
725 "values": []
726 },
727 "yaxes": [
728 {
729 "format": "short",
730 "label": null,
731 "logBase": 1,
732 "max": null,
733 "min": null,
734 "show": true
735 },
736 {
737 "format": "short",
738 "label": null,
739 "logBase": 1,
740 "max": null,
741 "min": null,
742 "show": true
743 }
744 ],
745 "yaxis": {
746 "align": false,
747 "alignLevel": null
748 }
749 },
750 {
751 "collapsed": false,
752 "datasource": null,
753 "gridPos": {
754 "h": 1,
755 "w": 24,
756 "x": 0,
757 "y": 16
758 },
759 "id": 26,
760 "panels": [],
761 "title": "Basic activity",
762 "type": "row"
763 },
764 {
765 "aliasColors": {},
766 "bars": false,
767 "dashLength": 10,
768 "dashes": false,
769 "datasource": "$datasource",
770 "description": "Sum taken across instances",
771 "fieldConfig": {
772 "defaults": {
773 "custom": {}
774 },
775 "overrides": []
776 },
777 "fill": 1,
778 "fillGradient": 0,
779 "gridPos": {
780 "h": 7,
781 "w": 8,
782 "x": 0,
783 "y": 17
784 },
785 "hiddenSeries": false,
786 "id": 16,
787 "legend": {
788 "avg": false,
789 "current": false,
790 "max": false,
791 "min": false,
792 "show": true,
793 "total": false,
794 "values": false
795 },
796 "lines": true,
797 "linewidth": 1,
798 "links": [],
799 "nullPointMode": "null",
800 "options": {
801 "dataLinks": []
802 },
803 "percentage": false,
804 "pointradius": 2,
805 "points": false,
806 "renderer": "flot",
807 "seriesOverrides": [],
808 "spaceLength": 10,
809 "stack": false,
810 "steppedLine": false,
811 "targets": [
812 {
813 "expr": "sum(redis_connected_clients{instance=~\"$instance\"})",
814 "format": "time_series",
815 "interval": "",
816 "intervalFactor": 1,
817 "legendFormat": "Connected",
818 "refId": "A"
819 },
820 {
821 "expr": "sum(redis_blocked_clients{instance=~\"$instance\"})",
822 "format": "time_series",
823 "interval": "",
824 "intervalFactor": 1,
825 "legendFormat": "Blocked",
826 "refId": "B"
827 }
828 ],
829 "thresholds": [],
830 "timeFrom": null,
831 "timeRegions": [],
832 "timeShift": null,
833 "title": "Connected/Blocked Clients",
834 "tooltip": {
835 "shared": true,
836 "sort": 0,
837 "value_type": "individual"
838 },
839 "type": "graph",
840 "xaxis": {
841 "buckets": null,
842 "mode": "time",
843 "name": null,
844 "show": true,
845 "values": []
846 },
847 "yaxes": [
848 {
849 "format": "short",
850 "label": null,
851 "logBase": 1,
852 "max": null,
853 "min": null,
854 "show": true
855 },
856 {
857 "format": "short",
858 "label": null,
859 "logBase": 1,
860 "max": null,
861 "min": null,
862 "show": true
863 }
864 ],
865 "yaxis": {
866 "align": false,
867 "alignLevel": null
868 }
869 },
870 {
871 "aliasColors": {
872 "db1": "yellow"
873 },
874 "bars": false,
875 "dashLength": 10,
876 "dashes": false,
877 "datasource": "$datasource",
878 "description": "Sum taken across instances",
879 "editable": true,
880 "error": false,
881 "fieldConfig": {
882 "defaults": {
883 "custom": {}
884 },
885 "overrides": []
886 },
887 "fill": 1,
888 "fillGradient": 0,
889 "grid": {},
890 "gridPos": {
891 "h": 7,
892 "w": 8,
893 "x": 8,
894 "y": 17
895 },
896 "hiddenSeries": false,
897 "id": 5,
898 "isNew": true,
899 "legend": {
900 "alignAsTable": false,
901 "avg": false,
902 "current": false,
903 "hideEmpty": false,
904 "hideZero": true,
905 "max": false,
906 "min": false,
907 "rightSide": false,
908 "show": true,
909 "total": false,
910 "values": false
911 },
912 "lines": true,
913 "linewidth": 1,
914 "links": [],
915 "nullPointMode": "null",
916 "options": {
917 "dataLinks": []
918 },
919 "percentage": false,
920 "pointradius": 5,
921 "points": false,
922 "renderer": "flot",
923 "seriesOverrides": [],
924 "spaceLength": 10,
925 "stack": true,
926 "steppedLine": false,
927 "targets": [
928 {
929 "expr": "sum (redis_db_keys{instance=~\"$instance\"}) by (db)",
930 "format": "time_series",
931 "interval": "",
932 "intervalFactor": 1,
933 "legendFormat": "{{ db }}",
934 "refId": "A",
935 "step": 240,
936 "target": ""
937 }
938 ],
939 "thresholds": [],
940 "timeFrom": null,
941 "timeRegions": [],
942 "timeShift": null,
943 "title": "Total Items per DB",
944 "tooltip": {
945 "msResolution": false,
946 "shared": true,
947 "sort": 1,
948 "value_type": "individual"
949 },
950 "type": "graph",
951 "xaxis": {
952 "buckets": null,
953 "mode": "time",
954 "name": null,
955 "show": true,
956 "values": []
957 },
958 "yaxes": [
959 {
960 "format": "none",
961 "label": null,
962 "logBase": 1,
963 "max": null,
964 "min": null,
965 "show": true
966 },
967 {
968 "format": "short",
969 "label": null,
970 "logBase": 1,
971 "max": null,
972 "min": null,
973 "show": true
974 }
975 ],
976 "yaxis": {
977 "align": false,
978 "alignLevel": null
979 }
980 },
981 {
982 "aliasColors": {},
983 "bars": false,
984 "dashLength": 10,
985 "dashes": false,
986 "datasource": "$datasource",
987 "description": "Sum taken across instances",
988 "editable": true,
989 "error": false,
990 "fieldConfig": {
991 "defaults": {
992 "custom": {}
993 },
994 "overrides": []
995 },
996 "fill": 1,
997 "fillGradient": 0,
998 "grid": {},
999 "gridPos": {
1000 "h": 7,
1001 "w": 8,
1002 "x": 16,
1003 "y": 17
1004 },
1005 "hiddenSeries": false,
1006 "id": 13,
1007 "isNew": true,
1008 "legend": {
1009 "avg": false,
1010 "current": false,
1011 "max": false,
1012 "min": false,
1013 "show": true,
1014 "total": false,
1015 "values": false
1016 },
1017 "lines": true,
1018 "linewidth": 1,
1019 "links": [],
1020 "nullPointMode": "connected",
1021 "options": {
1022 "dataLinks": []
1023 },
1024 "percentage": false,
1025 "pointradius": 5,
1026 "points": false,
1027 "renderer": "flot",
1028 "seriesOverrides": [],
1029 "spaceLength": 10,
1030 "stack": true,
1031 "steppedLine": false,
1032 "targets": [
1033 {
1034 "expr": "sum (redis_db_keys{instance=~\"$instance\"}) - sum (redis_db_keys_expiring{instance=~\"$instance\"})",
1035 "format": "time_series",
1036 "hide": false,
1037 "interval": "",
1038 "intervalFactor": 2,
1039 "legendFormat": "Not expiring",
1040 "refId": "A",
1041 "step": 240,
1042 "target": ""
1043 },
1044 {
1045 "expr": "sum(redis_db_keys_expiring{instance=~\"$instance\"})",
1046 "format": "time_series",
1047 "interval": "",
1048 "intervalFactor": 2,
1049 "legendFormat": "Expiring",
1050 "metric": "",
1051 "refId": "B",
1052 "step": 240
1053 }
1054 ],
1055 "thresholds": [],
1056 "timeFrom": null,
1057 "timeRegions": [],
1058 "timeShift": null,
1059 "title": "Expiring vs Not-Expiring Keys",
1060 "tooltip": {
1061 "msResolution": false,
1062 "shared": true,
1063 "sort": 0,
1064 "value_type": "individual"
1065 },
1066 "type": "graph",
1067 "xaxis": {
1068 "buckets": null,
1069 "mode": "time",
1070 "name": null,
1071 "show": true,
1072 "values": []
1073 },
1074 "yaxes": [
1075 {
1076 "format": "short",
1077 "label": null,
1078 "logBase": 1,
1079 "max": null,
1080 "min": null,
1081 "show": true
1082 },
1083 {
1084 "format": "short",
1085 "label": null,
1086 "logBase": 1,
1087 "max": null,
1088 "min": null,
1089 "show": true
1090 }
1091 ],
1092 "yaxis": {
1093 "align": false,
1094 "alignLevel": null
1095 }
1096 },
1097 {
1098 "aliasColors": {},
1099 "bars": false,
1100 "dashLength": 10,
1101 "dashes": false,
1102 "datasource": "$datasource",
1103 "description": "This metric will only be non-zero if the instance is a master",
1104 "fieldConfig": {
1105 "defaults": {
1106 "custom": {}
1107 },
1108 "overrides": []
1109 },
1110 "fill": 1,
1111 "fillGradient": 0,
1112 "gridPos": {
1113 "h": 7,
1114 "w": 8,
1115 "x": 0,
1116 "y": 24
1117 },
1118 "hiddenSeries": false,
1119 "id": 28,
1120 "legend": {
1121 "avg": false,
1122 "current": false,
1123 "max": false,
1124 "min": false,
1125 "show": true,
1126 "total": false,
1127 "values": false
1128 },
1129 "lines": true,
1130 "linewidth": 1,
1131 "nullPointMode": "null",
1132 "options": {
1133 "dataLinks": []
1134 },
1135 "percentage": false,
1136 "pointradius": 2,
1137 "points": false,
1138 "renderer": "flot",
1139 "seriesOverrides": [],
1140 "spaceLength": 10,
1141 "stack": false,
1142 "steppedLine": false,
1143 "targets": [
1144 {
1145 "expr": "sum(redis_connected_slaves{instance=~\"$instance\"}) by (instance)",
1146 "interval": "",
1147 "legendFormat": "{{instance}}",
1148 "refId": "A"
1149 }
1150 ],
1151 "thresholds": [],
1152 "timeFrom": null,
1153 "timeRegions": [],
1154 "timeShift": null,
1155 "title": "Connected slaves by instance",
1156 "tooltip": {
1157 "shared": true,
1158 "sort": 0,
1159 "value_type": "individual"
1160 },
1161 "type": "graph",
1162 "xaxis": {
1163 "buckets": null,
1164 "mode": "time",
1165 "name": null,
1166 "show": true,
1167 "values": []
1168 },
1169 "yaxes": [
1170 {
1171 "format": "short",
1172 "label": null,
1173 "logBase": 1,
1174 "max": null,
1175 "min": null,
1176 "show": true
1177 },
1178 {
1179 "format": "short",
1180 "label": null,
1181 "logBase": 1,
1182 "max": null,
1183 "min": null,
1184 "show": true
1185 }
1186 ],
1187 "yaxis": {
1188 "align": false,
1189 "alignLevel": null
1190 }
1191 },
1192 {
1193 "aliasColors": {},
1194 "bars": false,
1195 "dashLength": 10,
1196 "dashes": false,
1197 "datasource": "$datasource",
1198 "description": "This metric is only exported if the instance is a slave.",
1199 "fieldConfig": {
1200 "defaults": {
1201 "custom": {}
1202 },
1203 "overrides": []
1204 },
1205 "fill": 1,
1206 "fillGradient": 0,
1207 "gridPos": {
1208 "h": 7,
1209 "w": 8,
1210 "x": 8,
1211 "y": 24
1212 },
1213 "hiddenSeries": false,
1214 "id": 30,
1215 "legend": {
1216 "avg": false,
1217 "current": false,
1218 "max": false,
1219 "min": false,
1220 "show": true,
1221 "total": false,
1222 "values": false
1223 },
1224 "lines": true,
1225 "linewidth": 1,
1226 "nullPointMode": "null",
1227 "options": {
1228 "dataLinks": []
1229 },
1230 "percentage": false,
1231 "pointradius": 2,
1232 "points": false,
1233 "renderer": "flot",
1234 "seriesOverrides": [],
1235 "spaceLength": 10,
1236 "stack": false,
1237 "steppedLine": false,
1238 "targets": [
1239 {
1240 "expr": "redis_master_last_io_seconds_ago{instance=~\"$instance\"}",
1241 "interval": "",
1242 "legendFormat": "{{instance}}",
1243 "refId": "A"
1244 }
1245 ],
1246 "thresholds": [],
1247 "timeFrom": null,
1248 "timeRegions": [],
1249 "timeShift": null,
1250 "title": "Time since last master connection",
1251 "tooltip": {
1252 "shared": true,
1253 "sort": 0,
1254 "value_type": "individual"
1255 },
1256 "type": "graph",
1257 "xaxis": {
1258 "buckets": null,
1259 "mode": "time",
1260 "name": null,
1261 "show": true,
1262 "values": []
1263 },
1264 "yaxes": [
1265 {
1266 "format": "s",
1267 "label": null,
1268 "logBase": 1,
1269 "max": null,
1270 "min": null,
1271 "show": true
1272 },
1273 {
1274 "format": "short",
1275 "label": null,
1276 "logBase": 1,
1277 "max": null,
1278 "min": null,
1279 "show": true
1280 }
1281 ],
1282 "yaxis": {
1283 "align": false,
1284 "alignLevel": null
1285 }
1286 }
1287 ],
1288 "refresh": false,
1289 "schemaVersion": 25,
1290 "style": "dark",
1291 "tags": [
1292 "prometheus",
1293 "redis"
1294 ],
1295 "templating": {
1296 "list": [
1297 {
1298 "allValue": null,
1299 "current": {
1300 "selected": true,
1301 "tags": [],
1302 "text": "redisdb-7d6b98cd98-kjt5x + redisdb-7d6b98cd98-pbkg6",
1303 "value": [
1304 "redisdb-7d6b98cd98-kjt5x",
1305 "redisdb-7d6b98cd98-pbkg6"
1306 ]
1307 },
1308 "datasource": "${datasource}",
1309 "definition": "label_values(redis_up, instance)",
1310 "hide": 0,
1311 "includeAll": false,
1312 "label": null,
1313 "multi": true,
1314 "name": "instance",
1315 "options": [],
1316 "query": "label_values(redis_up, instance)",
1317 "refresh": 2,
1318 "regex": "",
1319 "skipUrlSync": false,
1320 "sort": 1,
1321 "tagValuesQuery": "",
1322 "tags": [],
1323 "tagsQuery": "",
1324 "type": "query",
1325 "useTags": false
1326 },
1327 {
1328 "current": {
1329 "selected": false,
1330 "text": "prometheus",
1331 "value": "prometheus"
1332 },
1333 "hide": 0,
1334 "includeAll": false,
1335 "label": "Data Source",
1336 "multi": false,
1337 "name": "datasource",
1338 "options": [],
1339 "query": "prometheus",
1340 "queryValue": "",
1341 "refresh": 1,
1342 "regex": "",
1343 "skipUrlSync": false,
1344 "type": "datasource"
1345 }
1346 ]
1347 },
1348 "time": {
1349 "from": "now-12h",
1350 "to": "now"
1351 },
1352 "timepicker": {
1353 "refresh_intervals": [
1354 "10s",
1355 "30s",
1356 "1m",
1357 "5m",
1358 "15m",
1359 "30m",
1360 "1h",
1361 "2h",
1362 "1d"
1363 ],
1364 "time_options": [
1365 "5m",
1366 "15m",
1367 "1h",
1368 "6h",
1369 "12h",
1370 "24h",
1371 "2d",
1372 "7d",
1373 "30d"
1374 ]
1375 },
1376 "timezone": "browser",
1377 "title": "Redis Dashboard for Prometheus Redis Exporter 1.x",
1378 "uid": "bRd48yKMdd",
1379 "version": 5
1380 }