Skip to content

Commit 5d351f6

Browse files
committed
Add network
1 parent 7c550a1 commit 5d351f6

File tree

1 file changed

+127
-13
lines changed
  • monitoring/grafana/config/provisioning/dashboards

1 file changed

+127
-13
lines changed

monitoring/grafana/config/provisioning/dashboards/tuns.json

+127-13
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,124 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 0,
21-
"id": 16,
2221
"links": [],
2322
"liveNow": false,
2423
"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+
"unit": "bytes"
81+
},
82+
"overrides": []
83+
},
84+
"gridPos": {
85+
"h": 5,
86+
"w": 24,
87+
"x": 0,
88+
"y": 0
89+
},
90+
"id": 9,
91+
"options": {
92+
"legend": {
93+
"calcs": [
94+
"min",
95+
"max",
96+
"mean"
97+
],
98+
"displayMode": "table",
99+
"placement": "bottom",
100+
"showLegend": true,
101+
"sortBy": "Mean",
102+
"sortDesc": true
103+
},
104+
"tooltip": {
105+
"mode": "single",
106+
"sort": "none"
107+
}
108+
},
109+
"targets": [
110+
{
111+
"datasource": {
112+
"type": "prometheus",
113+
"uid": "PBFA97CFB590B2093"
114+
},
115+
"editorMode": "code",
116+
"expr": "rate(process_network_receive_bytes_total{job=\"tuns\"}[$__rate_interval])",
117+
"instant": false,
118+
"legendFormat": "RX",
119+
"range": true,
120+
"refId": "A"
121+
},
122+
{
123+
"datasource": {
124+
"type": "prometheus",
125+
"uid": "PBFA97CFB590B2093"
126+
},
127+
"editorMode": "code",
128+
"expr": "rate(process_network_transmit_bytes_total{job=\"tuns\"}[$__rate_interval])",
129+
"hide": false,
130+
"instant": false,
131+
"legendFormat": "TX",
132+
"range": true,
133+
"refId": "B"
134+
}
135+
],
136+
"title": "Network Usage",
137+
"type": "timeseries"
138+
},
25139
{
26140
"datasource": {
27141
"type": "prometheus",
@@ -86,7 +200,7 @@
86200
"h": 8,
87201
"w": 12,
88202
"x": 0,
89-
"y": 0
203+
"y": 5
90204
},
91205
"id": 7,
92206
"options": {
@@ -114,7 +228,7 @@
114228
"uid": "PBFA97CFB590B2093"
115229
},
116230
"editorMode": "code",
117-
"expr": "rate(process_cpu_seconds_total{job=\"tuns\"}[1m])",
231+
"expr": "rate(process_cpu_seconds_total{job=\"tuns\"}[$__rate_interval])",
118232
"instant": false,
119233
"legendFormat": "CPU Usage",
120234
"range": true,
@@ -188,7 +302,7 @@
188302
"h": 8,
189303
"w": 12,
190304
"x": 12,
191-
"y": 0
305+
"y": 5
192306
},
193307
"id": 6,
194308
"options": {
@@ -290,7 +404,7 @@
290404
"h": 8,
291405
"w": 12,
292406
"x": 0,
293-
"y": 8
407+
"y": 13
294408
},
295409
"id": 5,
296410
"options": {
@@ -392,7 +506,7 @@
392506
"h": 8,
393507
"w": 12,
394508
"x": 12,
395-
"y": 8
509+
"y": 13
396510
},
397511
"id": 4,
398512
"options": {
@@ -493,7 +607,7 @@
493607
"h": 8,
494608
"w": 12,
495609
"x": 0,
496-
"y": 16
610+
"y": 21
497611
},
498612
"id": 1,
499613
"options": {
@@ -595,7 +709,7 @@
595709
"h": 8,
596710
"w": 12,
597711
"x": 12,
598-
"y": 16
712+
"y": 21
599713
},
600714
"id": 3,
601715
"options": {
@@ -696,7 +810,7 @@
696810
"h": 8,
697811
"w": 12,
698812
"x": 0,
699-
"y": 24
813+
"y": 29
700814
},
701815
"id": 2,
702816
"options": {
@@ -812,7 +926,7 @@
812926
"h": 8,
813927
"w": 12,
814928
"x": 12,
815-
"y": 24
929+
"y": 29
816930
},
817931
"id": 8,
818932
"options": {
@@ -875,20 +989,20 @@
875989
"type": "table"
876990
}
877991
],
878-
"refresh": "",
992+
"refresh": "5s",
879993
"schemaVersion": 38,
880994
"tags": [],
881995
"templating": {
882996
"list": []
883997
},
884998
"time": {
885-
"from": "now-6h",
999+
"from": "now-15m",
8861000
"to": "now"
8871001
},
8881002
"timepicker": {},
8891003
"timezone": "",
8901004
"title": "Tuns",
8911005
"uid": "a7431274-1d2e-4568-a48c-efc45628c484",
892-
"version": 2,
1006+
"version": 3,
8931007
"weekStart": ""
8941008
}

0 commit comments

Comments
 (0)