Download - Docker monitoring
![Page 1: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/1.jpg)
Brian ChristnerSwisscom Cloud Advocate
August 2015
![Page 2: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/2.jpg)
2
Swiss
com
, Fol
ienb
iblio
thek
About Me
>I'm the Swiss Army knife of cloud computing specializing in Linux, Docker, IaaS, PaaS, or anything with a .io domain name
>Brianchristner.io
>Twitter - @idomyowntricks
>Github - vegasbrianc
11.1
0.20
11
![Page 3: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/3.jpg)
03.0
5.20
23
3
Clou
d Pr
oduc
ts &
Tech
nolo
gy
Swisscom Cloud Enterprise – Service – Application
Enterprise Cloud Service Cloud Application Cloud
Cloud Foundry
Openstack (Elastic)VMware (Dynamic)
Hardware / Network Abstraction
Hardware / Network
https://developer.swisscom.com
![Page 4: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/4.jpg)
4
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
![Page 5: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/5.jpg)
Docker Monitoring Best Practices
>Label your Containers (key value pair)--label environment="production"
>Set Resource Limits
>Don’t overlert yourself
5
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
![Page 6: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/6.jpg)
6
Swiss
com
, Fol
ienb
iblio
thek
Docker Stats
STATS DATA:/sys/fs/cgroup/cpu
* /memory
* /blkio
Usage: docker stats CONTAINER [CONTAINER...] 127.
08.2
015
![Page 7: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/7.jpg)
Docker Stats Overview
>Great for Troubleshooting
>Docker Stats API – Build tools that feed container resource information into your existing monitoring solutions
>Docker Stats API is the basis all other tools use.
7
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
![Page 8: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/8.jpg)
8
Swiss
com
, Fol
ienb
iblio
thek
https://github.com/google/cadvisorhttps://hub.docker.com/r/google/cadvisor
(Container Advisor)
127.
08.2
015
![Page 9: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/9.jpg)
9
Swiss
com
, Fol
ienb
iblio
thek
>cAdvisor – Collects, aggregates, processes, and exports information about running containers
>InfluxDB – Time Series Data Bases stores all the metrics
>Grafana – Metrics Dashboard
127.
08.2
015
![Page 10: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/10.jpg)
cAdvisor Compose File
>https://github.com/vegasbrianc/docker-monitoring
10
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
![Page 11: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/11.jpg)
127.
08.2
015
11
Swiss
com
, Fol
ienb
iblio
thek
Components• Prometheus Server• Data Exporter• Prometheus Dashboard• Alerting
![Page 12: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/12.jpg)
Prometheus 12
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
https://github.com/vegasbrianc/prometheus
![Page 13: Docker monitoring](https://reader036.vdocuments.net/reader036/viewer/2022070602/587b449f1a28ab9c0e8b66c7/html5/thumbnails/13.jpg)
Docker Monitoring Resources
>Great Docker Resource - https://github.com/veggiemonk/awesome-docker#monitoring
>Prometheues – Prometheus.io
>My Docker Projects - https://github.com/vegasbrianc
13
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015