Antonio Mika
·
27 Aug 24
tuns.json
1{
2 "annotations": {
3 "list": [
4 {
5 "builtIn": 1,
6 "datasource": {
7 "type": "grafana",
8 "uid": "-- Grafana --"
9 },
10 "enable": true,
11 "hide": true,
12 "iconColor": "rgba(0, 211, 255, 1)",
13 "name": "Annotations & Alerts",
14 "type": "dashboard"
15 }
16 ]
17 },
18 "editable": true,
19 "fiscalYearStartMonth": 0,
20 "graphTooltip": 0,
21 "links": [],
22 "liveNow": false,
23 "panels": [
24 {
25 "datasource": {
26 "type": "prometheus",
27 "uid": "PBFA97CFB590B2093"
28 },
29 "fieldConfig": {
30 "defaults": {
31 "color": {
32 "mode": "palette-classic"
33 },
34 "custom": {
35 "axisBorderShow": false,
36 "axisCenteredZero": false,
37 "axisColorMode": "text",
38 "axisLabel": "",
39 "axisPlacement": "auto",
40 "barAlignment": 0,
41 "drawStyle": "line",
42 "fillOpacity": 0,
43 "gradientMode": "none",
44 "hideFrom": {
45 "legend": false,
46 "tooltip": false,
47 "viz": false
48 },
49 "insertNulls": false,
50 "lineInterpolation": "linear",
51 "lineWidth": 1,
52 "pointSize": 5,
53 "scaleDistribution": {
54 "type": "linear"
55 },
56 "showPoints": "auto",
57 "spanNulls": false,
58 "stacking": {
59 "group": "A",
60 "mode": "none"
61 },
62 "thresholdsStyle": {
63 "mode": "off"
64 }
65 },
66 "mappings": [],
67 "thresholds": {
68 "mode": "absolute",
69 "steps": [
70 {
71 "color": "green",
72 "value": null
73 },
74 {
75 "color": "red",
76 "value": 80
77 }
78 ]
79 }
80 },
81 "overrides": []
82 },
83 "gridPos": {
84 "h": 10,
85 "w": 12,
86 "x": 0,
87 "y": 0
88 },
89 "id": 1,
90 "options": {
91 "legend": {
92 "calcs": [
93 "min",
94 "max",
95 "mean"
96 ],
97 "displayMode": "table",
98 "placement": "bottom",
99 "showLegend": true,
100 "sortBy": "Mean",
101 "sortDesc": true
102 },
103 "tooltip": {
104 "mode": "single",
105 "sort": "none"
106 }
107 },
108 "targets": [
109 {
110 "datasource": {
111 "type": "prometheus",
112 "uid": "PBFA97CFB590B2093"
113 },
114 "editorMode": "code",
115 "expr": "sish_connections_total",
116 "instant": false,
117 "legendFormat": "Total Connections",
118 "range": true,
119 "refId": "A"
120 }
121 ],
122 "title": "Total Connections",
123 "type": "timeseries"
124 },
125 {
126 "datasource": {
127 "type": "prometheus",
128 "uid": "PBFA97CFB590B2093"
129 },
130 "fieldConfig": {
131 "defaults": {
132 "color": {
133 "mode": "palette-classic"
134 },
135 "custom": {
136 "axisBorderShow": false,
137 "axisCenteredZero": false,
138 "axisColorMode": "text",
139 "axisLabel": "",
140 "axisPlacement": "auto",
141 "barAlignment": 0,
142 "drawStyle": "line",
143 "fillOpacity": 0,
144 "gradientMode": "none",
145 "hideFrom": {
146 "legend": false,
147 "tooltip": false,
148 "viz": false
149 },
150 "insertNulls": false,
151 "lineInterpolation": "linear",
152 "lineWidth": 1,
153 "pointSize": 5,
154 "scaleDistribution": {
155 "type": "linear"
156 },
157 "showPoints": "auto",
158 "spanNulls": false,
159 "stacking": {
160 "group": "A",
161 "mode": "none"
162 },
163 "thresholdsStyle": {
164 "mode": "off"
165 }
166 },
167 "mappings": [],
168 "thresholds": {
169 "mode": "absolute",
170 "steps": [
171 {
172 "color": "green",
173 "value": null
174 },
175 {
176 "color": "red",
177 "value": 80
178 }
179 ]
180 }
181 },
182 "overrides": []
183 },
184 "gridPos": {
185 "h": 10,
186 "w": 12,
187 "x": 12,
188 "y": 0
189 },
190 "id": 2,
191 "options": {
192 "legend": {
193 "calcs": [
194 "min",
195 "max",
196 "mean"
197 ],
198 "displayMode": "table",
199 "placement": "bottom",
200 "showLegend": true,
201 "sortBy": "Mean",
202 "sortDesc": true
203 },
204 "tooltip": {
205 "mode": "single",
206 "sort": "none"
207 }
208 },
209 "targets": [
210 {
211 "datasource": {
212 "type": "prometheus",
213 "uid": "PBFA97CFB590B2093"
214 },
215 "editorMode": "code",
216 "expr": "sum(sish_tunnels_active{type=\"alias\"}) or vector(0)",
217 "instant": false,
218 "legendFormat": "Alias",
219 "range": true,
220 "refId": "A"
221 },
222 {
223 "datasource": {
224 "type": "prometheus",
225 "uid": "PBFA97CFB590B2093"
226 },
227 "editorMode": "code",
228 "expr": "sum(sish_tunnels_active{type=\"tcp\"}) or vector(0)",
229 "hide": false,
230 "instant": false,
231 "legendFormat": "TCP",
232 "range": true,
233 "refId": "B"
234 },
235 {
236 "datasource": {
237 "type": "prometheus",
238 "uid": "PBFA97CFB590B2093"
239 },
240 "editorMode": "code",
241 "expr": "sum(sish_tunnels_active{type=\"http\"}) or vector(0)",
242 "hide": false,
243 "instant": false,
244 "legendFormat": "HTTP",
245 "range": true,
246 "refId": "C"
247 },
248 {
249 "datasource": {
250 "type": "prometheus",
251 "uid": "PBFA97CFB590B2093"
252 },
253 "editorMode": "code",
254 "expr": "sum(sish_tunnels_active{type=\"process\"}) or vector(0)",
255 "hide": false,
256 "instant": false,
257 "legendFormat": "Process",
258 "range": true,
259 "refId": "D"
260 }
261 ],
262 "title": "Tunnels Count",
263 "type": "timeseries"
264 },
265 {
266 "datasource": {
267 "type": "prometheus",
268 "uid": "PBFA97CFB590B2093"
269 },
270 "fieldConfig": {
271 "defaults": {
272 "color": {
273 "mode": "palette-classic"
274 },
275 "custom": {
276 "axisBorderShow": false,
277 "axisCenteredZero": false,
278 "axisColorMode": "text",
279 "axisLabel": "",
280 "axisPlacement": "auto",
281 "barAlignment": 0,
282 "drawStyle": "line",
283 "fillOpacity": 0,
284 "gradientMode": "none",
285 "hideFrom": {
286 "legend": false,
287 "tooltip": false,
288 "viz": false
289 },
290 "insertNulls": false,
291 "lineInterpolation": "linear",
292 "lineWidth": 1,
293 "pointSize": 5,
294 "scaleDistribution": {
295 "type": "linear"
296 },
297 "showPoints": "auto",
298 "spanNulls": false,
299 "stacking": {
300 "group": "A",
301 "mode": "none"
302 },
303 "thresholdsStyle": {
304 "mode": "off"
305 }
306 },
307 "mappings": [],
308 "thresholds": {
309 "mode": "absolute",
310 "steps": [
311 {
312 "color": "green",
313 "value": null
314 },
315 {
316 "color": "red",
317 "value": 80
318 }
319 ]
320 },
321 "unit": "s"
322 },
323 "overrides": []
324 },
325 "gridPos": {
326 "h": 11,
327 "w": 12,
328 "x": 0,
329 "y": 10
330 },
331 "id": 3,
332 "options": {
333 "legend": {
334 "calcs": [
335 "min",
336 "max",
337 "mean"
338 ],
339 "displayMode": "table",
340 "placement": "bottom",
341 "showLegend": true,
342 "sortBy": "Mean",
343 "sortDesc": true
344 },
345 "tooltip": {
346 "mode": "single",
347 "sort": "none"
348 }
349 },
350 "targets": [
351 {
352 "datasource": {
353 "type": "prometheus",
354 "uid": "PBFA97CFB590B2093"
355 },
356 "editorMode": "code",
357 "expr": "time() - sish_connections_time",
358 "instant": false,
359 "legendFormat": "{{user}} - {{connection}}",
360 "range": true,
361 "refId": "A"
362 }
363 ],
364 "title": "Session Duration",
365 "type": "timeseries"
366 },
367 {
368 "datasource": {
369 "type": "prometheus",
370 "uid": "PBFA97CFB590B2093"
371 },
372 "fieldConfig": {
373 "defaults": {
374 "color": {
375 "mode": "thresholds"
376 },
377 "custom": {
378 "align": "auto",
379 "cellOptions": {
380 "type": "auto"
381 },
382 "filterable": false,
383 "inspect": false
384 },
385 "mappings": [],
386 "thresholds": {
387 "mode": "absolute",
388 "steps": [
389 {
390 "color": "green",
391 "value": null
392 },
393 {
394 "color": "red",
395 "value": 80
396 }
397 ]
398 }
399 },
400 "overrides": []
401 },
402 "gridPos": {
403 "h": 11,
404 "w": 12,
405 "x": 12,
406 "y": 10
407 },
408 "id": 8,
409 "options": {
410 "cellHeight": "sm",
411 "footer": {
412 "countRows": false,
413 "fields": "",
414 "reducer": [
415 "sum"
416 ],
417 "show": false
418 },
419 "showHeader": true
420 },
421 "pluginVersion": "10.2.2",
422 "targets": [
423 {
424 "datasource": {
425 "type": "prometheus",
426 "uid": "PBFA97CFB590B2093"
427 },
428 "editorMode": "code",
429 "exemplar": false,
430 "expr": "label_join(sish_tunnels_active, \"full_tunnel\", \"-\", \"user\", \"tunnel\")",
431 "format": "table",
432 "instant": true,
433 "legendFormat": "__auto",
434 "range": false,
435 "refId": "A"
436 }
437 ],
438 "title": "Tunnels",
439 "transformations": [
440 {
441 "id": "organize",
442 "options": {
443 "excludeByName": {
444 "Time": true,
445 "Value": true,
446 "__name__": true,
447 "instance": true,
448 "job": true
449 },
450 "indexByName": {
451 "Time": 0,
452 "Value": 9,
453 "__name__": 1,
454 "connection": 3,
455 "instance": 5,
456 "job": 6,
457 "tunnel": 7,
458 "type": 4,
459 "unix": 8,
460 "user": 2
461 },
462 "renameByName": {}
463 }
464 }
465 ],
466 "type": "table"
467 },
468 {
469 "datasource": {
470 "type": "prometheus",
471 "uid": "PBFA97CFB590B2093"
472 },
473 "fieldConfig": {
474 "defaults": {
475 "color": {
476 "mode": "palette-classic"
477 },
478 "custom": {
479 "axisBorderShow": false,
480 "axisCenteredZero": false,
481 "axisColorMode": "text",
482 "axisLabel": "",
483 "axisPlacement": "auto",
484 "barAlignment": 0,
485 "drawStyle": "line",
486 "fillOpacity": 0,
487 "gradientMode": "none",
488 "hideFrom": {
489 "legend": false,
490 "tooltip": false,
491 "viz": false
492 },
493 "insertNulls": false,
494 "lineInterpolation": "linear",
495 "lineWidth": 1,
496 "pointSize": 5,
497 "scaleDistribution": {
498 "type": "linear"
499 },
500 "showPoints": "auto",
501 "spanNulls": false,
502 "stacking": {
503 "group": "A",
504 "mode": "none"
505 },
506 "thresholdsStyle": {
507 "mode": "off"
508 }
509 },
510 "mappings": [],
511 "thresholds": {
512 "mode": "absolute",
513 "steps": [
514 {
515 "color": "green",
516 "value": null
517 },
518 {
519 "color": "red",
520 "value": 80
521 }
522 ]
523 },
524 "unit": "percentunit"
525 },
526 "overrides": []
527 },
528 "gridPos": {
529 "h": 11,
530 "w": 12,
531 "x": 0,
532 "y": 21
533 },
534 "id": 7,
535 "options": {
536 "legend": {
537 "calcs": [
538 "min",
539 "max",
540 "mean"
541 ],
542 "displayMode": "table",
543 "placement": "bottom",
544 "showLegend": true,
545 "sortBy": "Mean",
546 "sortDesc": true
547 },
548 "tooltip": {
549 "mode": "single",
550 "sort": "none"
551 }
552 },
553 "targets": [
554 {
555 "datasource": {
556 "type": "prometheus",
557 "uid": "PBFA97CFB590B2093"
558 },
559 "editorMode": "code",
560 "expr": "rate(process_cpu_seconds_total{job=\"tuns\"}[$__rate_interval])",
561 "instant": false,
562 "legendFormat": "CPU Usage",
563 "range": true,
564 "refId": "A"
565 }
566 ],
567 "title": "CPU Usage",
568 "type": "timeseries"
569 },
570 {
571 "datasource": {
572 "type": "prometheus",
573 "uid": "PBFA97CFB590B2093"
574 },
575 "fieldConfig": {
576 "defaults": {
577 "color": {
578 "mode": "palette-classic"
579 },
580 "custom": {
581 "axisBorderShow": false,
582 "axisCenteredZero": false,
583 "axisColorMode": "text",
584 "axisLabel": "",
585 "axisPlacement": "auto",
586 "barAlignment": 0,
587 "drawStyle": "line",
588 "fillOpacity": 0,
589 "gradientMode": "none",
590 "hideFrom": {
591 "legend": false,
592 "tooltip": false,
593 "viz": false
594 },
595 "insertNulls": false,
596 "lineInterpolation": "linear",
597 "lineWidth": 1,
598 "pointSize": 5,
599 "scaleDistribution": {
600 "type": "linear"
601 },
602 "showPoints": "auto",
603 "spanNulls": false,
604 "stacking": {
605 "group": "A",
606 "mode": "none"
607 },
608 "thresholdsStyle": {
609 "mode": "off"
610 }
611 },
612 "mappings": [],
613 "thresholds": {
614 "mode": "absolute",
615 "steps": [
616 {
617 "color": "green",
618 "value": null
619 },
620 {
621 "color": "red",
622 "value": 80
623 }
624 ]
625 },
626 "unit": "bytes"
627 },
628 "overrides": []
629 },
630 "gridPos": {
631 "h": 11,
632 "w": 12,
633 "x": 12,
634 "y": 21
635 },
636 "id": 6,
637 "options": {
638 "legend": {
639 "calcs": [
640 "min",
641 "max",
642 "mean"
643 ],
644 "displayMode": "table",
645 "placement": "bottom",
646 "showLegend": true,
647 "sortBy": "Mean",
648 "sortDesc": true
649 },
650 "tooltip": {
651 "mode": "single",
652 "sort": "none"
653 }
654 },
655 "targets": [
656 {
657 "datasource": {
658 "type": "prometheus",
659 "uid": "PBFA97CFB590B2093"
660 },
661 "editorMode": "code",
662 "expr": "process_resident_memory_bytes{job=\"tuns\"}",
663 "instant": false,
664 "legendFormat": "Memory",
665 "range": true,
666 "refId": "A"
667 }
668 ],
669 "title": "Memory Usage",
670 "type": "timeseries"
671 },
672 {
673 "datasource": {
674 "type": "prometheus",
675 "uid": "PBFA97CFB590B2093"
676 },
677 "fieldConfig": {
678 "defaults": {
679 "color": {
680 "mode": "palette-classic"
681 },
682 "custom": {
683 "axisBorderShow": false,
684 "axisCenteredZero": false,
685 "axisColorMode": "text",
686 "axisLabel": "",
687 "axisPlacement": "auto",
688 "barAlignment": 0,
689 "drawStyle": "line",
690 "fillOpacity": 0,
691 "gradientMode": "none",
692 "hideFrom": {
693 "legend": false,
694 "tooltip": false,
695 "viz": false
696 },
697 "insertNulls": false,
698 "lineInterpolation": "linear",
699 "lineWidth": 1,
700 "pointSize": 5,
701 "scaleDistribution": {
702 "type": "linear"
703 },
704 "showPoints": "auto",
705 "spanNulls": false,
706 "stacking": {
707 "group": "A",
708 "mode": "none"
709 },
710 "thresholdsStyle": {
711 "mode": "off"
712 }
713 },
714 "mappings": [],
715 "thresholds": {
716 "mode": "absolute",
717 "steps": [
718 {
719 "color": "green",
720 "value": null
721 },
722 {
723 "color": "red",
724 "value": 80
725 }
726 ]
727 },
728 "unit": "none"
729 },
730 "overrides": []
731 },
732 "gridPos": {
733 "h": 11,
734 "w": 12,
735 "x": 0,
736 "y": 32
737 },
738 "id": 5,
739 "options": {
740 "legend": {
741 "calcs": [
742 "min",
743 "max",
744 "mean"
745 ],
746 "displayMode": "table",
747 "placement": "bottom",
748 "showLegend": true,
749 "sortBy": "Mean",
750 "sortDesc": true
751 },
752 "tooltip": {
753 "mode": "single",
754 "sort": "none"
755 }
756 },
757 "targets": [
758 {
759 "datasource": {
760 "type": "prometheus",
761 "uid": "PBFA97CFB590B2093"
762 },
763 "editorMode": "code",
764 "expr": "process_open_fds{job=\"tuns\"}",
765 "hide": false,
766 "instant": false,
767 "legendFormat": "Fds",
768 "range": true,
769 "refId": "B"
770 }
771 ],
772 "title": "Open Fds",
773 "type": "timeseries"
774 },
775 {
776 "datasource": {
777 "type": "prometheus",
778 "uid": "PBFA97CFB590B2093"
779 },
780 "fieldConfig": {
781 "defaults": {
782 "color": {
783 "mode": "palette-classic"
784 },
785 "custom": {
786 "axisBorderShow": false,
787 "axisCenteredZero": false,
788 "axisColorMode": "text",
789 "axisLabel": "",
790 "axisPlacement": "auto",
791 "barAlignment": 0,
792 "drawStyle": "line",
793 "fillOpacity": 0,
794 "gradientMode": "none",
795 "hideFrom": {
796 "legend": false,
797 "tooltip": false,
798 "viz": false
799 },
800 "insertNulls": false,
801 "lineInterpolation": "linear",
802 "lineWidth": 1,
803 "pointSize": 5,
804 "scaleDistribution": {
805 "type": "linear"
806 },
807 "showPoints": "auto",
808 "spanNulls": false,
809 "stacking": {
810 "group": "A",
811 "mode": "none"
812 },
813 "thresholdsStyle": {
814 "mode": "off"
815 }
816 },
817 "mappings": [],
818 "thresholds": {
819 "mode": "absolute",
820 "steps": [
821 {
822 "color": "green",
823 "value": null
824 },
825 {
826 "color": "red",
827 "value": 80
828 }
829 ]
830 }
831 },
832 "overrides": []
833 },
834 "gridPos": {
835 "h": 11,
836 "w": 12,
837 "x": 12,
838 "y": 32
839 },
840 "id": 4,
841 "options": {
842 "legend": {
843 "calcs": [
844 "min",
845 "max",
846 "mean"
847 ],
848 "displayMode": "table",
849 "placement": "bottom",
850 "showLegend": true,
851 "sortBy": "Mean",
852 "sortDesc": true
853 },
854 "tooltip": {
855 "mode": "single",
856 "sort": "none"
857 }
858 },
859 "targets": [
860 {
861 "datasource": {
862 "type": "prometheus",
863 "uid": "PBFA97CFB590B2093"
864 },
865 "editorMode": "code",
866 "expr": "go_goroutines{job=\"tuns\"}",
867 "instant": false,
868 "legendFormat": "Goroutines",
869 "range": true,
870 "refId": "A"
871 }
872 ],
873 "title": "Goroutines",
874 "type": "timeseries"
875 },
876 {
877 "datasource": {
878 "type": "prometheus",
879 "uid": "PBFA97CFB590B2093"
880 },
881 "fieldConfig": {
882 "defaults": {
883 "color": {
884 "mode": "palette-classic"
885 },
886 "custom": {
887 "axisBorderShow": false,
888 "axisCenteredZero": false,
889 "axisColorMode": "text",
890 "axisLabel": "",
891 "axisPlacement": "auto",
892 "barAlignment": 0,
893 "drawStyle": "line",
894 "fillOpacity": 0,
895 "gradientMode": "none",
896 "hideFrom": {
897 "legend": false,
898 "tooltip": false,
899 "viz": false
900 },
901 "insertNulls": false,
902 "lineInterpolation": "linear",
903 "lineWidth": 1,
904 "pointSize": 5,
905 "scaleDistribution": {
906 "type": "linear"
907 },
908 "showPoints": "auto",
909 "spanNulls": false,
910 "stacking": {
911 "group": "A",
912 "mode": "none"
913 },
914 "thresholdsStyle": {
915 "mode": "off"
916 }
917 },
918 "mappings": [],
919 "thresholds": {
920 "mode": "absolute",
921 "steps": [
922 {
923 "color": "green",
924 "value": null
925 },
926 {
927 "color": "red",
928 "value": 80
929 }
930 ]
931 },
932 "unit": "bytes"
933 },
934 "overrides": []
935 },
936 "gridPos": {
937 "h": 10,
938 "w": 24,
939 "x": 0,
940 "y": 43
941 },
942 "id": 9,
943 "options": {
944 "legend": {
945 "calcs": [
946 "min",
947 "max",
948 "mean"
949 ],
950 "displayMode": "table",
951 "placement": "bottom",
952 "showLegend": true,
953 "sortBy": "Mean",
954 "sortDesc": true
955 },
956 "tooltip": {
957 "mode": "single",
958 "sort": "none"
959 }
960 },
961 "targets": [
962 {
963 "datasource": {
964 "type": "prometheus",
965 "uid": "PBFA97CFB590B2093"
966 },
967 "editorMode": "code",
968 "expr": "rate(process_network_receive_bytes_total{job=\"tuns\"}[$__rate_interval])",
969 "instant": false,
970 "legendFormat": "RX",
971 "range": true,
972 "refId": "A"
973 },
974 {
975 "datasource": {
976 "type": "prometheus",
977 "uid": "PBFA97CFB590B2093"
978 },
979 "editorMode": "code",
980 "expr": "rate(process_network_transmit_bytes_total{job=\"tuns\"}[$__rate_interval])",
981 "hide": false,
982 "instant": false,
983 "legendFormat": "TX",
984 "range": true,
985 "refId": "B"
986 }
987 ],
988 "title": "Network Usage",
989 "type": "timeseries"
990 }
991 ],
992 "refresh": "5s",
993 "schemaVersion": 38,
994 "tags": [],
995 "templating": {
996 "list": []
997 },
998 "time": {
999 "from": "now-24h",
1000 "to": "now"
1001 },
1002 "timepicker": {},
1003 "timezone": "",
1004 "title": "Tuns",
1005 "uid": "a7431274-1d2e-4568-a48c-efc45628c484",
1006 "version": 5,
1007 "weekStart": ""
1008}