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