docker monitoring
TRANSCRIPT
Brian ChristnerSwisscom Cloud Advocate
August 2015
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
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
4
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
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
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
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
8
Swiss
com
, Fol
ienb
iblio
thek
https://github.com/google/cadvisorhttps://hub.docker.com/r/google/cadvisor
(Container Advisor)
127.
08.2
015
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
cAdvisor Compose File
>https://github.com/vegasbrianc/docker-monitoring
10
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
127.
08.2
015
11
Swiss
com
, Fol
ienb
iblio
thek
Components• Prometheus Server• Data Exporter• Prometheus Dashboard• Alerting
Prometheus 12
Swiss
com
, Fol
ienb
iblio
thek
127.
08.2
015
https://github.com/vegasbrianc/prometheus
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