blob: 64b6bb53cfb44f0845c6513651f08449e34e08a4 [file] [log] [blame]
Hyunsun Moonda48dbe2020-02-02 13:26:18 -08001{
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": "Support Node Exporter v0.16 and above.",
16 "editable": true,
17 "gnetId": 11074,
18 "graphTooltip": 0,
19 "id": 9,
20 "iteration": 1580631219620,
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": 179,
33 "panels": [],
34 "repeat": "site",
35 "title": "$site",
36 "type": "row"
37 },
38 {
39 "datasource": "Prometheus",
40 "gridPos": {
41 "h": 10,
42 "w": 8,
43 "x": 0,
44 "y": 1
45 },
46 "id": 177,
47 "options": {
48 "displayMode": "lcd",
49 "fieldOptions": {
50 "calcs": [
51 "last"
52 ],
53 "defaults": {
54 "mappings": [],
55 "max": 100,
56 "min": 0,
57 "thresholds": [
58 {
59 "color": "green",
60 "value": null
61 },
62 {
63 "color": "#EAB839",
64 "value": 60
65 },
66 {
67 "color": "red",
68 "value": 80
69 }
70 ],
71 "title": "",
72 "unit": "percent"
73 },
74 "override": {},
75 "values": false
76 },
77 "orientation": "horizontal"
78 },
79 "pluginVersion": "6.4.2",
80 "repeat": null,
81 "repeatDirection": "v",
82 "targets": [
83 {
84 "expr": "100 - (avg(irate(node_cpu_seconds_total{datacenter=\"$site\",mode=\"idle\"}[30m])) * 100)",
85 "instant": true,
86 "legendFormat": "CPU Busy",
87 "refId": "A"
88 },
89 {
90 "expr": "avg(irate(node_cpu_seconds_total{datacenter=\"$site\",mode=\"iowait\"}[30m])) * 100",
91 "hide": true,
92 "instant": true,
93 "legendFormat": "Busy Iowait",
94 "refId": "C"
95 },
96 {
97 "expr": "(1 - (node_memory_MemAvailable_bytes{datacenter=\"$site\"} / (node_memory_MemTotal_bytes{datacenter=\"$site\"})))* 100",
98 "instant": true,
99 "legendFormat": "Memory Usage ({{kubernetes_node}})",
100 "refId": "B"
101 },
102 {
103 "expr": "100 - ((node_filesystem_avail_bytes{datacenter=\"$site\",mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"} * 100) / node_filesystem_size_bytes{datacenter=\"$site\",mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"})",
104 "hide": false,
105 "instant": true,
106 "legendFormat": "Disk Usage ({{kubernetes_node}})",
107 "refId": "D"
108 }
109 ],
110 "timeFrom": null,
111 "timeShift": null,
112 "title": "",
113 "type": "bargauge"
114 },
115 {
116 "aliasColors": {
117 "15分钟": "#6ED0E0",
118 "1分钟": "#BF1B00",
119 "5分钟": "#CCA300"
120 },
121 "bars": false,
122 "dashLength": 10,
123 "dashes": false,
124 "datasource": "Prometheus",
125 "editable": true,
126 "error": false,
127 "fill": 1,
128 "fillGradient": 1,
129 "grid": {},
130 "gridPos": {
131 "h": 10,
132 "w": 8,
133 "x": 8,
134 "y": 1
135 },
136 "height": "300",
137 "id": 13,
138 "legend": {
139 "alignAsTable": true,
140 "avg": true,
141 "current": true,
142 "max": true,
143 "min": false,
144 "rightSide": false,
145 "show": true,
146 "total": false,
147 "values": true
148 },
149 "lines": true,
150 "linewidth": 1,
151 "links": [],
152 "maxPerRow": 6,
153 "nullPointMode": "null as zero",
154 "options": {
155 "dataLinks": []
156 },
157 "percentage": false,
158 "pointradius": 5,
159 "points": false,
160 "renderer": "flot",
161 "repeat": null,
162 "seriesOverrides": [],
163 "spaceLength": 10,
164 "stack": false,
165 "steppedLine": false,
166 "targets": [
167 {
168 "expr": "node_load1{datacenter=\"$site\"}",
169 "format": "time_series",
170 "hide": true,
171 "instant": false,
172 "interval": "",
173 "intervalFactor": 1,
174 "legendFormat": "{{kubernetes_node}}_1m",
175 "metric": "",
176 "refId": "A",
177 "step": 20,
178 "target": ""
179 },
180 {
181 "expr": "node_load5{datacenter=\"$site\"}",
182 "format": "time_series",
183 "instant": false,
184 "interval": "",
185 "intervalFactor": 1,
186 "legendFormat": "{{kubernetes_node}}",
187 "refId": "B",
188 "step": 20
189 },
190 {
191 "expr": "node_load15{datacenter=\"$site\"}",
192 "format": "time_series",
193 "hide": true,
194 "instant": false,
195 "interval": "",
196 "intervalFactor": 1,
197 "legendFormat": "{{kubernetes_node}}_15m",
198 "refId": "C",
199 "step": 20
200 }
201 ],
202 "thresholds": [],
203 "timeFrom": null,
204 "timeRegions": [],
205 "timeShift": null,
206 "title": "System Load (5m average)",
207 "tooltip": {
208 "msResolution": false,
209 "shared": true,
210 "sort": 2,
211 "value_type": "cumulative"
212 },
213 "type": "graph",
214 "xaxis": {
215 "buckets": null,
216 "mode": "time",
217 "name": null,
218 "show": true,
219 "values": []
220 },
221 "yaxes": [
222 {
223 "format": "short",
224 "logBase": 1,
225 "max": null,
226 "min": null,
227 "show": true
228 },
229 {
230 "format": "short",
231 "logBase": 1,
232 "max": null,
233 "min": null,
234 "show": true
235 }
236 ],
237 "yaxis": {
238 "align": false,
239 "alignLevel": null
240 }
241 },
242 {
243 "aliasColors": {
244 "192.168.10.227:9100_em1_in下载": "super-light-green",
245 "192.168.10.227:9100_em1_out上传": "dark-blue"
246 },
247 "bars": false,
248 "dashLength": 10,
249 "dashes": false,
250 "datasource": "Prometheus",
251 "fill": 1,
252 "fillGradient": 3,
253 "gridPos": {
254 "h": 10,
255 "w": 8,
256 "x": 16,
257 "y": 1
258 },
259 "height": "300",
260 "id": 157,
261 "legend": {
262 "alignAsTable": true,
263 "avg": false,
264 "current": true,
265 "hideEmpty": true,
266 "hideZero": true,
267 "max": true,
268 "min": false,
269 "rightSide": false,
270 "show": true,
271 "sort": "current",
272 "sortDesc": true,
273 "total": false,
274 "values": true
275 },
276 "lines": true,
277 "linewidth": 1,
278 "links": [],
279 "nullPointMode": "null",
280 "options": {
281 "dataLinks": []
282 },
283 "percentage": false,
284 "pointradius": 0.5,
285 "points": false,
286 "renderer": "flot",
287 "seriesOverrides": [
288 {
289 "alias": "/.*_transmit$/",
290 "transform": "negative-Y"
291 }
292 ],
293 "spaceLength": 10,
294 "stack": false,
295 "steppedLine": false,
296 "targets": [
297 {
298 "expr": "irate(node_network_receive_bytes_total{datacenter=\"$site\",device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*|tunl0|cali.*'}[30m])*8",
299 "format": "time_series",
300 "intervalFactor": 1,
301 "legendFormat": "{{kubernetes_node}}_{{device}}_receive",
302 "refId": "A",
303 "step": 4
304 },
305 {
306 "expr": "irate(node_network_transmit_bytes_total{datacenter=\"$site\",device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*|tunl0|cali.*'}[30m])*8",
307 "format": "time_series",
308 "intervalFactor": 1,
309 "legendFormat": "{{kubernetes_node}}_{{device}}_transmit",
310 "refId": "B",
311 "step": 4
312 }
313 ],
314 "thresholds": [],
315 "timeFrom": null,
316 "timeRegions": [],
317 "timeShift": null,
318 "title": "Network Traffic",
319 "tooltip": {
320 "shared": true,
321 "sort": 2,
322 "value_type": "individual"
323 },
324 "type": "graph",
325 "xaxis": {
326 "buckets": null,
327 "mode": "time",
328 "name": null,
329 "show": true,
330 "values": []
331 },
332 "yaxes": [
333 {
334 "format": "bps",
335 "label": "transmit(-)/receive(+)",
336 "logBase": 1,
337 "max": null,
338 "min": null,
339 "show": true
340 },
341 {
342 "format": "short",
343 "label": null,
344 "logBase": 1,
345 "max": null,
346 "min": null,
347 "show": false
348 }
349 ],
350 "yaxis": {
351 "align": false,
352 "alignLevel": null
353 }
354 }
355 ],
356 "refresh": false,
357 "schemaVersion": 20,
358 "style": "dark",
359 "tags": [
360 "aether"
361 ],
362 "templating": {
363 "list": [
364 {
365 "allValue": null,
366 "current": {
367 "tags": [],
368 "text": "All",
369 "value": [
370 "$__all"
371 ]
372 },
373 "datasource": "Prometheus",
374 "definition": "label_values(node_uname_info, datacenter)",
375 "hide": 0,
376 "includeAll": true,
377 "label": "Site",
378 "multi": true,
379 "name": "site",
380 "query": "label_values(node_uname_info, datacenter)",
381 "refresh": 2,
382 "regex": "",
383 "skipUrlSync": false,
384 "sort": 0,
385 "tagValuesQuery": "",
386 "tags": [],
387 "tagsQuery": "",
388 "type": "query",
389 "useTags": false
390 },
391 {
392 "allValue": null,
393 "current": {
394 "text": "/",
395 "value": "/"
396 },
397 "datasource": "Prometheus",
398 "definition": "query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{fstype=~\"ext4|xfs\"}) by (mountpoint))))",
399 "hide": 2,
400 "includeAll": false,
401 "label": "",
402 "multi": false,
403 "name": "maxmount",
404 "options": [],
405 "query": "query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{fstype=~\"ext4|xfs\"}) by (mountpoint))))",
406 "refresh": 2,
407 "regex": "/.*\\\"(.*)\\\".*/",
408 "skipUrlSync": false,
409 "sort": 0,
410 "tagValuesQuery": "",
411 "tags": [],
412 "tagsQuery": "",
413 "type": "query",
414 "useTags": false
415 },
416 {
417 "allFormat": "glob",
418 "allValue": null,
419 "current": {
420 "isNone": true,
421 "text": "None",
422 "value": ""
423 },
424 "datasource": "Prometheus",
425 "definition": "",
426 "hide": 2,
427 "includeAll": false,
428 "label": "环境",
429 "multi": false,
430 "multiFormat": "regex values",
431 "name": "env",
432 "options": [],
433 "query": "label_values(node_exporter_build_info,env)",
434 "refresh": 2,
435 "regex": "",
436 "skipUrlSync": false,
437 "sort": 1,
438 "tagValuesQuery": "",
439 "tags": [],
440 "tagsQuery": "",
441 "type": "query",
442 "useTags": false
443 },
444 {
445 "allFormat": "glob",
446 "allValue": "",
447 "current": {
448 "isNone": true,
449 "text": "None",
450 "value": ""
451 },
452 "datasource": "Prometheus",
453 "definition": "label_values(node_exporter_build_info{env=~'$env'},name)",
454 "hide": 2,
455 "includeAll": false,
456 "label": "名称",
457 "multi": true,
458 "multiFormat": "regex values",
459 "name": "name",
460 "options": [],
461 "query": "label_values(node_exporter_build_info{env=~'$env'},name)",
462 "refresh": 2,
463 "regex": "",
464 "skipUrlSync": false,
465 "sort": 1,
466 "tagValuesQuery": "/.*/",
467 "tags": [],
468 "tagsQuery": "",
469 "type": "query",
470 "useTags": false
471 }
472 ]
473 },
474 "time": {
475 "from": "now-24h",
476 "to": "now"
477 },
478 "timepicker": {
479 "now": true,
480 "refresh_intervals": [
481 "5s",
482 "10s",
483 "30s",
484 "1m",
485 "5m",
486 "15m",
487 "30m",
488 "1h",
489 "2h",
490 "1d"
491 ],
492 "time_options": [
493 "5m",
494 "15m",
495 "1h",
496 "6h",
497 "12h",
498 "24h",
499 "2d",
500 "7d",
501 "30d"
502 ]
503 },
504 "timezone": "browser",
505 "title": "Multi-Site System Monitoring Summary",
506 "uid": "hb7fSE0Za",
507 "version": 7
508}