blob: e2757f3e6ff35d848ba1ca2bbf532451495409ce [file] [log] [blame]
Matteo Scandoloa2c22f72020-03-24 10:14:01 -07001{
2 "__inputs": [
3 {
4 "name": "DS_PROMETHEUS",
5 "label": "prometheus",
Matteo Scandolo0828d632020-03-24 11:43:50 -07006 "description": "",
Matteo Scandoloa2c22f72020-03-24 10:14:01 -07007 "type": "datasource",
8 "pluginId": "prometheus",
9 "pluginName": "Prometheus"
10 }
11 ],
12 "__requires": [
13 {
Matteo Scandolo0828d632020-03-24 11:43:50 -070014 "type": "grafana",
15 "id": "grafana",
16 "name": "Grafana",
17 "version": "4.1.1"
Matteo Scandoloa2c22f72020-03-24 10:14:01 -070018 },
19 {
20 "type": "panel",
21 "id": "graph",
22 "name": "Graph",
23 "version": ""
24 },
25 {
Matteo Scandoloa2c22f72020-03-24 10:14:01 -070026 "type": "datasource",
27 "id": "prometheus",
28 "name": "Prometheus",
29 "version": "1.0.0"
30 }
31 ],
Matteo Scandolo0828d632020-03-24 11:43:50 -070032 "annotations": {
33 "list": []
34 },
Matteo Scandoloa2c22f72020-03-24 10:14:01 -070035 "description": "Docker monitoring with Prometheus and cAdvisor",
Matteo Scandolo0828d632020-03-24 11:43:50 -070036 "editable": true,
37 "gnetId": 193,
38 "graphTooltip": 1,
39 "links": [],
40 "panels": [
41 {
42 "cacheTimeout": null,
43 "colorBackground": false,
44 "colorValue": false,
45 "colors": [
46 "rgba(245, 54, 54, 0.9)",
47 "rgba(237, 129, 40, 0.89)",
48 "rgba(50, 172, 45, 0.97)"
49 ],
50 "datasource": "Prometheus",
51 "editable": true,
52 "error": false,
53 "format": "none",
54 "gauge": {
55 "maxValue": 100,
56 "minValue": 0,
57 "show": false,
58 "thresholdLabels": false,
59 "thresholdMarkers": true
60 },
61 "gridPos": {
62 "h": 3,
63 "w": 8,
64 "x": 0,
65 "y": 0
66 },
67 "height": "20",
68 "id": 7,
69 "interval": null,
70 "isNew": true,
71 "links": [],
72 "mappingType": 1,
73 "mappingTypes": [
74 {
75 "name": "value to text",
76 "value": 1
77 },
78 {
79 "name": "range to text",
80 "value": 2
81 }
82 ],
83 "maxDataPoints": 100,
84 "nullPointMode": "connected",
85 "nullText": null,
86 "options": {},
87 "postfix": "",
88 "postfixFontSize": "50%",
89 "prefix": "",
90 "prefixFontSize": "50%",
91 "rangeMaps": [
92 {
93 "from": "null",
94 "text": "N/A",
95 "to": "null"
96 }
97 ],
98 "sparkline": {
99 "fillColor": "rgba(31, 118, 189, 0.18)",
100 "full": false,
101 "lineColor": "rgb(31, 120, 193)",
102 "show": false
103 },
104 "tableColumn": "",
105 "targets": [
106 {
107 "expr": "count(container_last_seen{image!=\"\"})",
108 "intervalFactor": 2,
109 "legendFormat": "",
110 "metric": "container_last_seen",
111 "refId": "A",
112 "step": 240
113 }
114 ],
115 "thresholds": "",
116 "title": "Running containers",
117 "transparent": true,
118 "type": "singlestat",
119 "valueFontSize": "80%",
120 "valueMaps": [
121 {
122 "op": "=",
123 "text": "N/A",
124 "value": "null"
125 }
126 ],
127 "valueName": "avg"
128 },
129 {
130 "cacheTimeout": null,
131 "colorBackground": false,
132 "colorValue": false,
133 "colors": [
134 "rgba(245, 54, 54, 0.9)",
135 "rgba(237, 129, 40, 0.89)",
136 "rgba(50, 172, 45, 0.97)"
137 ],
138 "datasource": "Prometheus",
139 "editable": true,
140 "error": false,
141 "format": "mbytes",
142 "gauge": {
143 "maxValue": 100,
144 "minValue": 0,
145 "show": false,
146 "thresholdLabels": false,
147 "thresholdMarkers": true
148 },
149 "gridPos": {
150 "h": 3,
151 "w": 8,
152 "x": 8,
153 "y": 0
154 },
155 "height": "20",
156 "id": 5,
157 "interval": null,
158 "isNew": true,
159 "links": [],
160 "mappingType": 1,
161 "mappingTypes": [
162 {
163 "name": "value to text",
164 "value": 1
165 },
166 {
167 "name": "range to text",
168 "value": 2
169 }
170 ],
171 "maxDataPoints": 100,
172 "nullPointMode": "connected",
173 "nullText": null,
174 "options": {},
175 "postfix": "",
176 "postfixFontSize": "50%",
177 "prefix": "",
178 "prefixFontSize": "50%",
179 "rangeMaps": [
180 {
181 "from": "null",
182 "text": "N/A",
183 "to": "null"
184 }
185 ],
186 "sparkline": {
187 "fillColor": "rgba(31, 118, 189, 0.18)",
188 "full": false,
189 "lineColor": "rgb(31, 120, 193)",
190 "show": false
191 },
192 "tableColumn": "",
193 "targets": [
194 {
195 "expr": "sum(container_memory_usage_bytes{image!=\"\"})/1024/1024",
196 "intervalFactor": 2,
197 "legendFormat": "",
198 "metric": "container_memory_usage_bytes",
199 "refId": "A",
200 "step": 240
201 }
202 ],
203 "thresholds": "",
204 "title": "Total Memory Usage",
205 "transparent": true,
206 "type": "singlestat",
207 "valueFontSize": "80%",
208 "valueMaps": [
209 {
210 "op": "=",
211 "text": "N/A",
212 "value": "null"
213 }
214 ],
215 "valueName": "current"
216 },
217 {
218 "cacheTimeout": null,
219 "colorBackground": false,
220 "colorValue": false,
221 "colors": [
222 "rgba(245, 54, 54, 0.9)",
223 "rgba(237, 129, 40, 0.89)",
224 "rgba(50, 172, 45, 0.97)"
225 ],
226 "datasource": "Prometheus",
227 "editable": true,
228 "error": false,
229 "format": "percent",
230 "gauge": {
231 "maxValue": 100,
232 "minValue": 0,
233 "show": false,
234 "thresholdLabels": false,
235 "thresholdMarkers": true
236 },
237 "gridPos": {
238 "h": 3,
239 "w": 8,
240 "x": 16,
241 "y": 0
242 },
243 "height": "20",
244 "id": 6,
245 "interval": null,
246 "isNew": true,
247 "links": [],
248 "mappingType": 1,
249 "mappingTypes": [
250 {
251 "name": "value to text",
252 "value": 1
253 },
254 {
255 "name": "range to text",
256 "value": 2
257 }
258 ],
259 "maxDataPoints": 100,
260 "nullPointMode": "connected",
261 "nullText": null,
262 "options": {},
263 "postfix": "",
264 "postfixFontSize": "50%",
265 "prefix": "",
266 "prefixFontSize": "50%",
267 "rangeMaps": [
268 {
269 "from": "null",
270 "text": "N/A",
271 "to": "null"
272 }
273 ],
274 "sparkline": {
275 "fillColor": "rgba(31, 118, 189, 0.18)",
276 "full": false,
277 "lineColor": "rgb(31, 120, 193)",
278 "show": false
279 },
280 "tableColumn": "",
281 "targets": [
282 {
283 "expr": "sum(rate(container_cpu_user_seconds_total{image!=\"\"}[5m]) * 100)",
284 "intervalFactor": 2,
285 "legendFormat": "",
286 "metric": "container_memory_usage_bytes",
287 "refId": "A",
288 "step": 240
289 }
290 ],
291 "thresholds": "",
292 "title": "Total CPU Usage",
293 "transparent": true,
294 "type": "singlestat",
295 "valueFontSize": "80%",
296 "valueMaps": [
297 {
298 "op": "=",
299 "text": "N/A",
300 "value": "null"
301 }
302 ],
303 "valueName": "current"
304 },
305 {
306 "aliasColors": {},
307 "bars": false,
308 "dashLength": 10,
309 "dashes": false,
310 "datasource": "Prometheus",
311 "decimals": 2,
312 "editable": true,
313 "error": false,
314 "fill": 1,
315 "fillGradient": 0,
316 "grid": {},
317 "gridPos": {
318 "h": 7,
319 "w": 24,
320 "x": 0,
321 "y": 3
322 },
323 "id": 2,
324 "isNew": true,
325 "legend": {
326 "alignAsTable": true,
327 "avg": true,
328 "current": true,
329 "max": false,
330 "min": false,
331 "rightSide": true,
332 "show": true,
333 "total": false,
334 "values": true
335 },
336 "lines": true,
337 "linewidth": 2,
338 "links": [],
339 "nullPointMode": "connected",
340 "options": {
341 "dataLinks": []
342 },
343 "percentage": false,
344 "pointradius": 5,
345 "points": false,
346 "renderer": "flot",
347 "seriesOverrides": [],
348 "spaceLength": 10,
349 "stack": false,
350 "steppedLine": false,
351 "targets": [
352 {
353 "expr": "rate(container_cpu_user_seconds_total{image!=\"\"}[5m]) * 100",
354 "intervalFactor": 2,
355 "legendFormat": "{{pod_name}}",
356 "metric": "cpu",
357 "refId": "A",
358 "step": 10
359 }
360 ],
361 "thresholds": [],
362 "timeFrom": null,
363 "timeRegions": [],
364 "timeShift": null,
365 "title": "CPU Usage",
366 "tooltip": {
367 "msResolution": false,
368 "shared": true,
369 "sort": 0,
370 "value_type": "cumulative"
371 },
372 "type": "graph",
373 "xaxis": {
374 "buckets": null,
375 "mode": "time",
376 "name": null,
377 "show": true,
378 "values": []
379 },
380 "yaxes": [
381 {
382 "format": "percent",
383 "label": null,
384 "logBase": 1,
385 "max": null,
386 "min": null,
387 "show": true
388 },
389 {
390 "format": "short",
391 "label": null,
392 "logBase": 1,
393 "max": null,
394 "min": null,
395 "show": true
396 }
397 ],
398 "yaxis": {
399 "align": false,
400 "alignLevel": null
401 }
402 },
403 {
404 "aliasColors": {},
405 "bars": false,
406 "dashLength": 10,
407 "dashes": false,
408 "datasource": "Prometheus",
409 "decimals": 2,
410 "editable": true,
411 "error": false,
412 "fill": 1,
413 "fillGradient": 0,
414 "grid": {},
415 "gridPos": {
416 "h": 7,
417 "w": 24,
418 "x": 0,
419 "y": 10
420 },
421 "id": 1,
422 "isNew": true,
423 "legend": {
424 "alignAsTable": true,
425 "avg": true,
426 "current": true,
427 "max": false,
428 "min": false,
429 "rightSide": true,
430 "show": true,
431 "total": false,
432 "values": true
433 },
434 "lines": true,
435 "linewidth": 2,
436 "links": [],
437 "nullPointMode": "connected",
438 "options": {
439 "dataLinks": []
440 },
441 "percentage": false,
442 "pointradius": 5,
443 "points": false,
444 "renderer": "flot",
445 "seriesOverrides": [],
446 "spaceLength": 10,
447 "stack": false,
448 "steppedLine": false,
449 "targets": [
450 {
451 "expr": "container_memory_usage_bytes{image!=\"\"}",
452 "hide": false,
453 "intervalFactor": 2,
454 "legendFormat": "{{pod_name}}",
455 "metric": "container_memory_usage_bytes",
456 "refId": "A",
457 "step": 10
458 }
459 ],
460 "thresholds": [],
461 "timeFrom": null,
462 "timeRegions": [],
463 "timeShift": null,
464 "title": "Memory Usage",
465 "tooltip": {
466 "msResolution": false,
467 "shared": true,
468 "sort": 0,
469 "value_type": "cumulative"
470 },
471 "type": "graph",
472 "xaxis": {
473 "buckets": null,
474 "mode": "time",
475 "name": null,
476 "show": true,
477 "values": []
478 },
479 "yaxes": [
480 {
481 "format": "bytes",
482 "label": "",
483 "logBase": 1,
484 "max": null,
485 "min": null,
486 "show": true
487 },
488 {
489 "format": "short",
490 "label": null,
491 "logBase": 1,
492 "max": null,
493 "min": null,
494 "show": false
495 }
496 ],
497 "yaxis": {
498 "align": false,
499 "alignLevel": null
500 }
501 },
502 {
503 "aliasColors": {},
504 "bars": false,
505 "dashLength": 10,
506 "dashes": false,
507 "datasource": "Prometheus",
508 "editable": true,
509 "error": false,
510 "fill": 1,
511 "fillGradient": 0,
512 "grid": {},
513 "gridPos": {
514 "h": 7,
515 "w": 12,
516 "x": 0,
517 "y": 17
518 },
519 "id": 3,
520 "isNew": true,
521 "legend": {
522 "avg": false,
523 "current": false,
524 "max": false,
525 "min": false,
526 "show": true,
527 "total": false,
528 "values": false
529 },
530 "lines": true,
531 "linewidth": 2,
532 "links": [],
533 "nullPointMode": "connected",
534 "options": {
535 "dataLinks": []
536 },
537 "percentage": false,
538 "pointradius": 5,
539 "points": false,
540 "renderer": "flot",
541 "seriesOverrides": [],
542 "spaceLength": 10,
543 "stack": false,
544 "steppedLine": false,
545 "targets": [
546 {
547 "expr": "irate(container_network_receive_bytes_total{image!=\"\"}[5m])",
548 "intervalFactor": 2,
549 "legendFormat": "{{pod_name}}",
550 "metric": "container_network_receive_bytes_total",
551 "refId": "A",
552 "step": 20
553 }
554 ],
555 "thresholds": [],
556 "timeFrom": null,
557 "timeRegions": [],
558 "timeShift": null,
559 "title": "Network Rx",
560 "tooltip": {
561 "msResolution": false,
562 "shared": true,
563 "sort": 0,
564 "value_type": "cumulative"
565 },
566 "type": "graph",
567 "xaxis": {
568 "buckets": null,
569 "mode": "time",
570 "name": null,
571 "show": true,
572 "values": []
573 },
574 "yaxes": [
575 {
576 "format": "Bps",
577 "label": null,
578 "logBase": 1,
579 "max": null,
580 "min": null,
581 "show": true
582 },
583 {
584 "format": "short",
585 "label": null,
586 "logBase": 1,
587 "max": null,
588 "min": null,
589 "show": true
590 }
591 ],
592 "yaxis": {
593 "align": false,
594 "alignLevel": null
595 }
596 },
597 {
598 "aliasColors": {},
599 "bars": false,
600 "dashLength": 10,
601 "dashes": false,
602 "datasource": "Prometheus",
603 "editable": true,
604 "error": false,
605 "fill": 1,
606 "fillGradient": 0,
607 "grid": {},
608 "gridPos": {
609 "h": 7,
610 "w": 12,
611 "x": 12,
612 "y": 17
613 },
614 "id": 4,
615 "isNew": true,
616 "legend": {
617 "avg": false,
618 "current": false,
619 "max": false,
620 "min": false,
621 "show": true,
622 "total": false,
623 "values": false
624 },
625 "lines": true,
626 "linewidth": 2,
627 "links": [],
628 "nullPointMode": "connected",
629 "options": {
630 "dataLinks": []
631 },
632 "percentage": false,
633 "pointradius": 5,
634 "points": false,
635 "renderer": "flot",
636 "seriesOverrides": [],
637 "spaceLength": 10,
638 "stack": false,
639 "steppedLine": false,
640 "targets": [
641 {
642 "expr": "irate(container_network_transmit_bytes_total{image!=\"\"}[5m])",
643 "intervalFactor": 2,
644 "legendFormat": "{{pod_name}}",
645 "refId": "A",
646 "step": 20
647 }
648 ],
649 "thresholds": [],
650 "timeFrom": null,
651 "timeRegions": [],
652 "timeShift": null,
653 "title": "Network Tx",
654 "tooltip": {
655 "msResolution": false,
656 "shared": true,
657 "sort": 0,
658 "value_type": "cumulative"
659 },
660 "type": "graph",
661 "xaxis": {
662 "buckets": null,
663 "mode": "time",
664 "name": null,
665 "show": true,
666 "values": []
667 },
668 "yaxes": [
669 {
670 "format": "Bps",
671 "label": null,
672 "logBase": 1,
673 "max": null,
674 "min": null,
675 "show": true
676 },
677 {
678 "format": "short",
679 "label": null,
680 "logBase": 1,
681 "max": null,
682 "min": null,
683 "show": true
684 }
685 ],
686 "yaxis": {
687 "align": false,
688 "alignLevel": null
689 }
690 }
691 ],
692 "refresh": "10s",
693 "schemaVersion": 20,
694 "style": "dark",
Matteo Scandoloa2c22f72020-03-24 10:14:01 -0700695 "tags": [
696 "docker"
697 ],
Matteo Scandolo0828d632020-03-24 11:43:50 -0700698 "templating": {
699 "list": []
700 },
Matteo Scandoloa2c22f72020-03-24 10:14:01 -0700701 "time": {
Matteo Scandolo0828d632020-03-24 11:43:50 -0700702 "from": "now-15m",
Matteo Scandoloa2c22f72020-03-24 10:14:01 -0700703 "to": "now"
704 },
705 "timepicker": {
706 "refresh_intervals": [
707 "5s",
708 "10s",
709 "30s",
710 "1m",
711 "5m",
712 "15m",
713 "30m",
714 "1h",
715 "2h",
716 "1d"
717 ],
718 "time_options": [
719 "5m",
720 "15m",
721 "1h",
722 "6h",
723 "12h",
724 "24h",
725 "2d",
726 "7d",
727 "30d"
728 ]
729 },
Matteo Scandolo0828d632020-03-24 11:43:50 -0700730 "timezone": "browser",
731 "title": "Docker monitoring",
732 "uid": "_ZGILD9Wz",
733 "version": 1
734}