Debian Codegraph @

contrib/grafana-dashboard.json

raw symbols SCIP
1 {
2 "__inputs": [
3 {
4 "name": "DS_LOCAL",
5 "label": "Prometheus",
6 "description": "",
7 "type": "datasource",
8 "pluginId": "prometheus",
9 "pluginName": "Prometheus"
10 }
11 ],
12 "__elements": {},
13 "__requires": [
14 {
15 "type": "grafana",
16 "id": "grafana",
17 "name": "Grafana",
18 "version": "10.2.3"
19 },
20 {
21 "type": "panel",
22 "id": "piechart",
23 "name": "Pie chart",
24 "version": ""
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 "$$hashKey": "object:405",
49 "builtIn": 1,
50 "datasource": {
51 "type": "datasource",
52 "uid": "grafana"
53 },
54 "enable": true,
55 "hide": true,
56 "iconColor": "rgba(0, 211, 255, 1)",
57 "name": "Annotations & Alerts",
58 "target": {
59 "limit": 100,
60 "matchAny": false,
61 "tags": [],
62 "type": "dashboard"
63 },
64 "type": "dashboard"
65 }
66 ]
67 },
68 "editable": true,
69 "fiscalYearStartMonth": 0,
70 "graphTooltip": 2,
71 "id": null,
72 "links": [],
73 "liveNow": false,
74 "panels": [
75 {
76 "collapsed": false,
77 "gridPos": {
78 "h": 1,
79 "w": 24,
80 "x": 0,
81 "y": 0
82 },
83 "id": 5,
84 "panels": [],
85 "title": "Users and Files",
86 "type": "row"
87 },
88 {
89 "datasource": {
90 "type": "prometheus",
91 "uid": "${DS_LOCAL}"
92 },
93 "fieldConfig": {
94 "defaults": {
95 "color": {
96 "mode": "thresholds"
97 },
98 "mappings": [],
99 "min": 0,
100 "thresholds": {
101 "mode": "absolute",
102 "steps": [
103 {
104 "color": "green",
105 "value": null
106 }
107 ]
108 },
109 "unit": "short"
110 },
111 "overrides": []
112 },
113 "gridPos": {
114 "h": 7,
115 "w": 4,
116 "x": 0,
117 "y": 1
118 },
119 "id": 12,
120 "options": {
121 "colorMode": "value",
122 "graphMode": "area",
123 "justifyMode": "auto",
124 "orientation": "auto",
125 "reduceOptions": {
126 "calcs": [
127 "lastNotNull"
128 ],
129 "fields": "",
130 "values": false
131 },
132 "textMode": "auto",
133 "wideLayout": true
134 },
135 "pluginVersion": "10.2.3",
136 "targets": [
137 {
138 "datasource": {
139 "type": "prometheus",
140 "uid": "${DS_LOCAL}"
141 },
142 "editorMode": "code",
143 "expr": "sum by(instance) (nextcloud_active_users_daily_total{instance=\"$instance\"})",
144 "instant": false,
145 "legendFormat": "__auto",
146 "range": true,
147 "refId": "A"
148 }
149 ],
150 "title": "Daily Active Users",
151 "type": "stat"
152 },
153 {
154 "datasource": {
155 "type": "prometheus",
156 "uid": "${DS_LOCAL}"
157 },
158 "fieldConfig": {
159 "defaults": {
160 "color": {
161 "mode": "palette-classic"
162 },
163 "custom": {
164 "axisBorderShow": false,
165 "axisCenteredZero": false,
166 "axisColorMode": "text",
167 "axisLabel": "",
168 "axisPlacement": "auto",
169 "barAlignment": 0,
170 "drawStyle": "line",
171 "fillOpacity": 0,
172 "gradientMode": "none",
173 "hideFrom": {
174 "legend": false,
175 "tooltip": false,
176 "viz": false
177 },
178 "insertNulls": false,
179 "lineInterpolation": "linear",
180 "lineWidth": 1,
181 "pointSize": 5,
182 "scaleDistribution": {
183 "type": "linear"
184 },
185 "showPoints": "never",
186 "spanNulls": false,
187 "stacking": {
188 "group": "A",
189 "mode": "none"
190 },
191 "thresholdsStyle": {
192 "mode": "off"
193 }
194 },
195 "links": [],
196 "mappings": [],
197 "min": 0,
198 "thresholds": {
199 "mode": "absolute",
200 "steps": [
201 {
202 "color": "green",
203 "value": null
204 }
205 ]
206 },
207 "unit": "short"
208 },
209 "overrides": []
210 },
211 "gridPos": {
212 "h": 7,
213 "w": 8,
214 "x": 4,
215 "y": 1
216 },
217 "id": 1,
218 "links": [],
219 "options": {
220 "legend": {
221 "calcs": [],
222 "displayMode": "list",
223 "placement": "bottom",
224 "showLegend": false
225 },
226 "tooltip": {
227 "mode": "multi",
228 "sort": "desc"
229 }
230 },
231 "pluginVersion": "10.2.3",
232 "targets": [
233 {
234 "datasource": {
235 "type": "prometheus",
236 "uid": "${DS_LOCAL}"
237 },
238 "editorMode": "code",
239 "expr": "sum by(instance) (nextcloud_users_total{instance=\"$instance\"})",
240 "intervalFactor": 1,
241 "legendFormat": "total ({{instance}})",
242 "metric": "",
243 "range": true,
244 "refId": "A",
245 "step": 900
246 },
247 {
248 "datasource": {
249 "type": "prometheus",
250 "uid": "${DS_LOCAL}"
251 },
252 "editorMode": "code",
253 "expr": "sum by(instance) (nextcloud_active_users_total{instance=\"$instance\"})",
254 "hide": false,
255 "intervalFactor": 1,
256 "legendFormat": "active ({{instance}})",
257 "metric": "",
258 "range": true,
259 "refId": "B",
260 "step": 900
261 }
262 ],
263 "title": "Users",
264 "type": "timeseries"
265 },
266 {
267 "datasource": {
268 "type": "prometheus",
269 "uid": "${DS_LOCAL}"
270 },
271 "fieldConfig": {
272 "defaults": {
273 "color": {
274 "mode": "palette-classic"
275 },
276 "custom": {
277 "axisBorderShow": false,
278 "axisCenteredZero": false,
279 "axisColorMode": "text",
280 "axisLabel": "",
281 "axisPlacement": "auto",
282 "barAlignment": 0,
283 "drawStyle": "line",
284 "fillOpacity": 0,
285 "gradientMode": "none",
286 "hideFrom": {
287 "legend": false,
288 "tooltip": false,
289 "viz": false
290 },
291 "insertNulls": false,
292 "lineInterpolation": "linear",
293 "lineWidth": 1,
294 "pointSize": 5,
295 "scaleDistribution": {
296 "type": "linear"
297 },
298 "showPoints": "never",
299 "spanNulls": false,
300 "stacking": {
301 "group": "A",
302 "mode": "none"
303 },
304 "thresholdsStyle": {
305 "mode": "off"
306 }
307 },
308 "links": [],
309 "mappings": [],
310 "min": 0,
311 "thresholds": {
312 "mode": "absolute",
313 "steps": [
314 {
315 "color": "green",
316 "value": null
317 }
318 ]
319 },
320 "unit": "short"
321 },
322 "overrides": []
323 },
324 "gridPos": {
325 "h": 7,
326 "w": 12,
327 "x": 12,
328 "y": 1
329 },
330 "id": 11,
331 "links": [],
332 "options": {
333 "legend": {
334 "calcs": [],
335 "displayMode": "list",
336 "placement": "bottom",
337 "showLegend": false
338 },
339 "tooltip": {
340 "mode": "multi",
341 "sort": "desc"
342 }
343 },
344 "pluginVersion": "10.2.3",
345 "targets": [
346 {
347 "datasource": {
348 "type": "prometheus",
349 "uid": "${DS_LOCAL}"
350 },
351 "editorMode": "code",
352 "expr": "sum by(instance) (nextcloud_files_total{instance=\"$instance\"})",
353 "intervalFactor": 1,
354 "legendFormat": "__auto",
355 "metric": "",
356 "range": true,
357 "refId": "B",
358 "step": 900
359 }
360 ],
361 "title": "Files",
362 "type": "timeseries"
363 },
364 {
365 "collapsed": false,
366 "gridPos": {
367 "h": 1,
368 "w": 24,
369 "x": 0,
370 "y": 8
371 },
372 "id": 6,
373 "panels": [],
374 "title": "Shares",
375 "type": "row"
376 },
377 {
378 "datasource": {
379 "type": "prometheus",
380 "uid": "${DS_LOCAL}"
381 },
382 "fieldConfig": {
383 "defaults": {
384 "color": {
385 "mode": "palette-classic"
386 },
387 "custom": {
388 "axisBorderShow": false,
389 "axisCenteredZero": false,
390 "axisColorMode": "text",
391 "axisLabel": "",
392 "axisPlacement": "auto",
393 "barAlignment": 0,
394 "drawStyle": "line",
395 "fillOpacity": 10,
396 "gradientMode": "none",
397 "hideFrom": {
398 "legend": false,
399 "tooltip": false,
400 "viz": false
401 },
402 "insertNulls": false,
403 "lineInterpolation": "linear",
404 "lineWidth": 1,
405 "pointSize": 5,
406 "scaleDistribution": {
407 "type": "linear"
408 },
409 "showPoints": "never",
410 "spanNulls": false,
411 "stacking": {
412 "group": "A",
413 "mode": "none"
414 },
415 "thresholdsStyle": {
416 "mode": "off"
417 }
418 },
419 "links": [],
420 "mappings": [],
421 "min": 0,
422 "thresholds": {
423 "mode": "absolute",
424 "steps": [
425 {
426 "color": "green",
427 "value": null
428 }
429 ]
430 },
431 "unit": "short"
432 },
433 "overrides": []
434 },
435 "gridPos": {
436 "h": 7,
437 "w": 12,
438 "x": 0,
439 "y": 9
440 },
441 "id": 2,
442 "links": [],
443 "options": {
444 "legend": {
445 "calcs": [],
446 "displayMode": "list",
447 "placement": "bottom",
448 "showLegend": true
449 },
450 "tooltip": {
451 "mode": "multi",
452 "sort": "desc"
453 }
454 },
455 "pluginVersion": "10.2.3",
456 "targets": [
457 {
458 "datasource": {
459 "type": "prometheus",
460 "uid": "${DS_LOCAL}"
461 },
462 "editorMode": "code",
463 "expr": "sum by(type) (nextcloud_shares_total{instance=\"$instance\"})",
464 "intervalFactor": 1,
465 "legendFormat": "{{type}}",
466 "metric": "",
467 "range": true,
468 "refId": "A",
469 "step": 1800
470 }
471 ],
472 "title": "Shares by Type",
473 "type": "timeseries"
474 },
475 {
476 "datasource": {
477 "type": "prometheus",
478 "uid": "${DS_LOCAL}"
479 },
480 "fieldConfig": {
481 "defaults": {
482 "color": {
483 "mode": "palette-classic"
484 },
485 "custom": {
486 "axisBorderShow": false,
487 "axisCenteredZero": false,
488 "axisColorMode": "text",
489 "axisLabel": "",
490 "axisPlacement": "auto",
491 "barAlignment": 0,
492 "drawStyle": "line",
493 "fillOpacity": 10,
494 "gradientMode": "none",
495 "hideFrom": {
496 "legend": false,
497 "tooltip": false,
498 "viz": false
499 },
500 "insertNulls": false,
501 "lineInterpolation": "linear",
502 "lineWidth": 1,
503 "pointSize": 5,
504 "scaleDistribution": {
505 "type": "linear"
506 },
507 "showPoints": "never",
508 "spanNulls": false,
509 "stacking": {
510 "group": "A",
511 "mode": "none"
512 },
513 "thresholdsStyle": {
514 "mode": "off"
515 }
516 },
517 "links": [],
518 "mappings": [],
519 "min": 0,
520 "thresholds": {
521 "mode": "absolute",
522 "steps": [
523 {
524 "color": "green",
525 "value": null
526 }
527 ]
528 },
529 "unit": "short"
530 },
531 "overrides": []
532 },
533 "gridPos": {
534 "h": 7,
535 "w": 12,
536 "x": 12,
537 "y": 9
538 },
539 "id": 3,
540 "links": [],
541 "options": {
542 "legend": {
543 "calcs": [],
544 "displayMode": "list",
545 "placement": "bottom",
546 "showLegend": true
547 },
548 "tooltip": {
549 "mode": "multi",
550 "sort": "desc"
551 }
552 },
553 "pluginVersion": "10.2.3",
554 "targets": [
555 {
556 "datasource": {
557 "type": "prometheus",
558 "uid": "${DS_LOCAL}"
559 },
560 "editorMode": "code",
561 "expr": "sum by(direction) (nextcloud_shares_federated_total{instance=\"$instance\"})",
562 "intervalFactor": 1,
563 "legendFormat": "{{direction}}",
564 "metric": "",
565 "range": true,
566 "refId": "A",
567 "step": 1800
568 }
569 ],
570 "title": "Federated Shares",
571 "type": "timeseries"
572 },
573 {
574 "collapsed": false,
575 "gridPos": {
576 "h": 1,
577 "w": 24,
578 "x": 0,
579 "y": 16
580 },
581 "id": 7,
582 "panels": [],
583 "title": "Apps",
584 "type": "row"
585 },
586 {
587 "datasource": {
588 "type": "prometheus",
589 "uid": "${DS_LOCAL}"
590 },
591 "fieldConfig": {
592 "defaults": {
593 "color": {
594 "mode": "thresholds"
595 },
596 "mappings": [],
597 "min": 0,
598 "thresholds": {
599 "mode": "absolute",
600 "steps": [
601 {
602 "color": "green",
603 "value": null
604 }
605 ]
606 },
607 "unit": "short"
608 },
609 "overrides": []
610 },
611 "gridPos": {
612 "h": 7,
613 "w": 4,
614 "x": 0,
615 "y": 17
616 },
617 "id": 9,
618 "options": {
619 "colorMode": "value",
620 "graphMode": "area",
621 "justifyMode": "auto",
622 "orientation": "auto",
623 "reduceOptions": {
624 "calcs": [
625 "lastNotNull"
626 ],
627 "fields": "",
628 "values": false
629 },
630 "textMode": "auto",
631 "wideLayout": true
632 },
633 "pluginVersion": "10.2.3",
634 "targets": [
635 {
636 "datasource": {
637 "type": "prometheus",
638 "uid": "${DS_LOCAL}"
639 },
640 "editorMode": "code",
641 "expr": "sum by(instance) (nextcloud_apps_installed_total{instance=\"$instance\"})",
642 "instant": false,
643 "legendFormat": "__auto",
644 "range": true,
645 "refId": "A"
646 }
647 ],
648 "title": "Installed Apps",
649 "type": "stat"
650 },
651 {
652 "datasource": {
653 "type": "prometheus",
654 "uid": "${DS_LOCAL}"
655 },
656 "fieldConfig": {
657 "defaults": {
658 "color": {
659 "mode": "thresholds"
660 },
661 "mappings": [],
662 "min": 0,
663 "thresholds": {
664 "mode": "absolute",
665 "steps": [
666 {
667 "color": "green",
668 "value": null
669 },
670 {
671 "color": "#EAB839",
672 "value": 1
673 }
674 ]
675 },
676 "unit": "short"
677 },
678 "overrides": []
679 },
680 "gridPos": {
681 "h": 7,
682 "w": 4,
683 "x": 4,
684 "y": 17
685 },
686 "id": 10,
687 "options": {
688 "colorMode": "value",
689 "graphMode": "area",
690 "justifyMode": "auto",
691 "orientation": "auto",
692 "reduceOptions": {
693 "calcs": [
694 "lastNotNull"
695 ],
696 "fields": "",
697 "values": false
698 },
699 "textMode": "auto",
700 "wideLayout": true
701 },
702 "pluginVersion": "10.2.3",
703 "targets": [
704 {
705 "datasource": {
706 "type": "prometheus",
707 "uid": "${DS_LOCAL}"
708 },
709 "editorMode": "code",
710 "expr": "sum by(instance) (nextcloud_apps_updates_available_total{instance=\"$instance\"})",
711 "instant": false,
712 "legendFormat": "__auto",
713 "range": true,
714 "refId": "A"
715 }
716 ],
717 "title": "Available Updates",
718 "type": "stat"
719 },
720 {
721 "collapsed": false,
722 "gridPos": {
723 "h": 1,
724 "w": 24,
725 "x": 0,
726 "y": 24
727 },
728 "id": 8,
729 "panels": [],
730 "title": "System Information",
731 "type": "row"
732 },
733 {
734 "datasource": {
735 "type": "prometheus",
736 "uid": "${DS_LOCAL}"
737 },
738 "fieldConfig": {
739 "defaults": {
740 "color": {
741 "mode": "palette-classic"
742 },
743 "custom": {
744 "axisBorderShow": false,
745 "axisCenteredZero": false,
746 "axisColorMode": "text",
747 "axisLabel": "",
748 "axisPlacement": "auto",
749 "barAlignment": 0,
750 "drawStyle": "line",
751 "fillOpacity": 10,
752 "gradientMode": "none",
753 "hideFrom": {
754 "legend": false,
755 "tooltip": false,
756 "viz": false
757 },
758 "insertNulls": false,
759 "lineInterpolation": "linear",
760 "lineWidth": 1,
761 "pointSize": 5,
762 "scaleDistribution": {
763 "type": "linear"
764 },
765 "showPoints": "never",
766 "spanNulls": false,
767 "stacking": {
768 "group": "A",
769 "mode": "none"
770 },
771 "thresholdsStyle": {
772 "mode": "off"
773 }
774 },
775 "links": [],
776 "mappings": [],
777 "min": 0,
778 "thresholds": {
779 "mode": "absolute",
780 "steps": [
781 {
782 "color": "green"
783 }
784 ]
785 },
786 "unit": "decbytes"
787 },
788 "overrides": []
789 },
790 "gridPos": {
791 "h": 7,
792 "w": 12,
793 "x": 0,
794 "y": 25
795 },
796 "id": 4,
797 "links": [],
798 "options": {
799 "legend": {
800 "calcs": [],
801 "displayMode": "list",
802 "placement": "bottom",
803 "showLegend": false
804 },
805 "tooltip": {
806 "mode": "multi",
807 "sort": "desc"
808 }
809 },
810 "pluginVersion": "10.2.3",
811 "targets": [
812 {
813 "datasource": {
814 "type": "prometheus",
815 "uid": "${DS_LOCAL}"
816 },
817 "editorMode": "code",
818 "expr": "sum by(instance) (nextcloud_free_space_bytes{instance=\"$instance\"})",
819 "interval": "",
820 "intervalFactor": 1,
821 "legendFormat": "",
822 "metric": "",
823 "range": true,
824 "refId": "A",
825 "step": 900
826 }
827 ],
828 "title": "Disk Space Left",
829 "type": "timeseries"
830 },
831 {
832 "datasource": {
833 "type": "prometheus",
834 "uid": "${DS_LOCAL}"
835 },
836 "fieldConfig": {
837 "defaults": {
838 "color": {
839 "mode": "palette-classic"
840 },
841 "custom": {
842 "hideFrom": {
843 "legend": false,
844 "tooltip": false,
845 "viz": false
846 }
847 },
848 "mappings": []
849 },
850 "overrides": []
851 },
852 "gridPos": {
853 "h": 7,
854 "w": 4,
855 "x": 12,
856 "y": 25
857 },
858 "id": 13,
859 "options": {
860 "legend": {
861 "displayMode": "table",
862 "placement": "right",
863 "showLegend": true,
864 "values": [
865 "percent"
866 ]
867 },
868 "pieType": "pie",
869 "reduceOptions": {
870 "calcs": [
871 "lastNotNull"
872 ],
873 "fields": "",
874 "values": false
875 },
876 "tooltip": {
877 "mode": "single",
878 "sort": "desc"
879 }
880 },
881 "targets": [
882 {
883 "datasource": {
884 "type": "prometheus",
885 "uid": "${DS_LOCAL}"
886 },
887 "editorMode": "code",
888 "exemplar": false,
889 "expr": "sum by(version) (nextcloud_system_info)",
890 "instant": true,
891 "legendFormat": "__auto",
892 "range": false,
893 "refId": "A"
894 }
895 ],
896 "title": "Nextcloud Versions (all instances)",
897 "type": "piechart"
898 },
899 {
900 "datasource": {
901 "type": "prometheus",
902 "uid": "${DS_LOCAL}"
903 },
904 "fieldConfig": {
905 "defaults": {
906 "color": {
907 "mode": "palette-classic"
908 },
909 "custom": {
910 "hideFrom": {
911 "legend": false,
912 "tooltip": false,
913 "viz": false
914 }
915 },
916 "mappings": []
917 },
918 "overrides": []
919 },
920 "gridPos": {
921 "h": 7,
922 "w": 4,
923 "x": 16,
924 "y": 25
925 },
926 "id": 17,
927 "options": {
928 "legend": {
929 "displayMode": "table",
930 "placement": "right",
931 "showLegend": true,
932 "values": [
933 "percent"
934 ]
935 },
936 "pieType": "pie",
937 "reduceOptions": {
938 "calcs": [
939 "lastNotNull"
940 ],
941 "fields": "",
942 "values": false
943 },
944 "tooltip": {
945 "mode": "single",
946 "sort": "desc"
947 }
948 },
949 "targets": [
950 {
951 "datasource": {
952 "type": "prometheus",
953 "uid": "${DS_LOCAL}"
954 },
955 "editorMode": "code",
956 "exemplar": false,
957 "expr": "sum by(version) (nextcloud_exporter_info)",
958 "instant": true,
959 "legendFormat": "__auto",
960 "range": false,
961 "refId": "A"
962 }
963 ],
964 "title": "Exporter Versions (all instances)",
965 "type": "piechart"
966 },
967 {
968 "collapsed": false,
969 "gridPos": {
970 "h": 1,
971 "w": 24,
972 "x": 0,
973 "y": 32
974 },
975 "id": 16,
976 "panels": [],
977 "title": "Environment Information",
978 "type": "row"
979 },
980 {
981 "datasource": {
982 "type": "prometheus",
983 "uid": "${DS_LOCAL}"
984 },
985 "fieldConfig": {
986 "defaults": {
987 "color": {
988 "mode": "palette-classic"
989 },
990 "custom": {
991 "hideFrom": {
992 "legend": false,
993 "tooltip": false,
994 "viz": false
995 }
996 },
997 "mappings": []
998 },
999 "overrides": []
1000 },
1001 "gridPos": {
1002 "h": 7,
1003 "w": 4,
1004 "x": 0,
1005 "y": 33
1006 },
1007 "id": 14,
1008 "options": {
1009 "legend": {
1010 "displayMode": "table",
1011 "placement": "right",
1012 "showLegend": true,
1013 "values": [
1014 "percent"
1015 ]
1016 },
1017 "pieType": "pie",
1018 "reduceOptions": {
1019 "calcs": [
1020 "lastNotNull"
1021 ],
1022 "fields": "",
1023 "values": false
1024 },
1025 "tooltip": {
1026 "mode": "single",
1027 "sort": "desc"
1028 }
1029 },
1030 "targets": [
1031 {
1032 "datasource": {
1033 "type": "prometheus",
1034 "uid": "${DS_LOCAL}"
1035 },
1036 "editorMode": "code",
1037 "exemplar": false,
1038 "expr": "sum by(version) (nextcloud_php_info)",
1039 "instant": true,
1040 "legendFormat": "__auto",
1041 "range": false,
1042 "refId": "A"
1043 }
1044 ],
1045 "title": "PHP Versions (all instances)",
1046 "type": "piechart"
1047 },
1048 {
1049 "datasource": {
1050 "type": "prometheus",
1051 "uid": "${DS_LOCAL}"
1052 },
1053 "fieldConfig": {
1054 "defaults": {
1055 "color": {
1056 "mode": "palette-classic"
1057 },
1058 "custom": {
1059 "hideFrom": {
1060 "legend": false,
1061 "tooltip": false,
1062 "viz": false
1063 }
1064 },
1065 "mappings": []
1066 },
1067 "overrides": []
1068 },
1069 "gridPos": {
1070 "h": 7,
1071 "w": 4,
1072 "x": 4,
1073 "y": 33
1074 },
1075 "id": 15,
1076 "options": {
1077 "legend": {
1078 "displayMode": "table",
1079 "placement": "right",
1080 "showLegend": true,
1081 "values": [
1082 "percent"
1083 ]
1084 },
1085 "pieType": "pie",
1086 "reduceOptions": {
1087 "calcs": [
1088 "lastNotNull"
1089 ],
1090 "fields": "",
1091 "values": false
1092 },
1093 "tooltip": {
1094 "mode": "single",
1095 "sort": "desc"
1096 }
1097 },
1098 "targets": [
1099 {
1100 "datasource": {
1101 "type": "prometheus",
1102 "uid": "${DS_LOCAL}"
1103 },
1104 "editorMode": "code",
1105 "exemplar": false,
1106 "expr": "sum by(type, version) (nextcloud_database_info)",
1107 "instant": true,
1108 "legendFormat": "{{type}} {{version}}",
1109 "range": false,
1110 "refId": "A"
1111 }
1112 ],
1113 "title": "Databases (all instances)",
1114 "type": "piechart"
1115 }
1116 ],
1117 "refresh": "5m",
1118 "schemaVersion": 39,
1119 "tags": [
1120 "prometheus",
1121 "nextcloud"
1122 ],
1123 "templating": {
1124 "list": [
1125 {
1126 "current": {},
1127 "datasource": {
1128 "type": "prometheus",
1129 "uid": "${DS_LOCAL}"
1130 },
1131 "definition": "",
1132 "hide": 0,
1133 "includeAll": false,
1134 "label": "Instance",
1135 "multi": false,
1136 "name": "instance",
1137 "options": [],
1138 "query": "label_values(nextcloud_up, instance)",
1139 "refresh": 2,
1140 "regex": "",
1141 "skipUrlSync": false,
1142 "sort": 0,
1143 "tagValuesQuery": "",
1144 "tagsQuery": "",
1145 "type": "query",
1146 "useTags": false
1147 }
1148 ]
1149 },
1150 "time": {
1151 "from": "now-30d",
1152 "to": "now"
1153 },
1154 "timepicker": {
1155 "refresh_intervals": [
1156 "30s",
1157 "1m",
1158 "5m",
1159 "15m",
1160 "1h",
1161 "2h",
1162 "1d"
1163 ],
1164 "time_options": [
1165 "5m",
1166 "15m",
1167 "1h",
1168 "6h",
1169 "12h",
1170 "24h",
1171 "2d",
1172 "7d",
1173 "30d"
1174 ]
1175 },
1176 "timezone": "browser",
1177 "title": "Nextcloud",
1178 "uid": "cdae9143-9a17-4d37-87da-d34fb9cfd92f",
1179 "version": 4,
1180 "weekStart": ""
1181 }