dockercon eu 2015: docker monitoring
TRANSCRIPT
![Page 1: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/1.jpg)
Docker Monitoring
Brian ChristnerCloud Advocate, Swisscom AG
![Page 2: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/2.jpg)
Agenda
Section Three
cAdvisor
cAdvisor + InfluxDB +
Grafana
Prometheus
Section Four
Comparison
Section One
Introduction
Section Two
Best Practices
Docker Stats
![Page 3: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/3.jpg)
Introduction
![Page 4: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/4.jpg)
4
Swiss Army knife of cloud computing specializing in
Linux, Docker, IaaS, PaaS, or anything with a .io domain
name
Cloud & Docker Advocate @ Swisscom
Docker User for 1.5 Years
About Me
![Page 5: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/5.jpg)
5Swisscom
Cloud & Data Center solutions
Reliable. Flexible. Ecological.As much infrastructure as you need – in your data
processing center or ours.
Comprehensive, customised architectures for enhanced
agility and lower costs. And of course we provide your
company data with effective protection. At all times.
55
Most up-to-date
data processing
centres in CH
PUE* = 1.2
*Power usage effectiveness
Business becomes
innovation driver
11,500
customer
servers
13 PBmanaged storage
100%renewable energy
Top
security
standards
![Page 6: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/6.jpg)
Chocolate
Most Nobel prize
winners on population
Source: New England Journal of Medicine, Nobel price,
fotolia
8.9kg (19.6lbs) consumption
per person/Year
![Page 7: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/7.jpg)
Monte Rose, 4642m / 15,203 ft
Swiss
InnovationGlobal Innovation Index leader
for the fifth year in a row
Data privacy and security as
solid as our alp massif
Source: Global Innovation Index,
geeksta.net (countries over 100k p)
Top 3 in github commits per
capita
![Page 8: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/8.jpg)
Swisscom Application CloudCloud Foundry From Switzerland : As Tasty As Our Chocolate
developer.swisscom.com
@Swisscom_Dev
![Page 9: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/9.jpg)
Docker @ Swisscom
Partnered with ClusterHQ (Flocker) to build a persistent Database-as-
a-Service based on Docker and Cloud Foundry
Several Docker offerings
Docker is in use across Swisscom from Application Cloud to TV
Future projects include Docker-as-a-Service and several as-a-Service
projects based on Docker
![Page 10: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/10.jpg)
Challenges with Docker
Persistent data management in containers
Staying up to date on Docker releases
Monitoring
![Page 11: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/11.jpg)
Docker technology builds a scalable DBaaS
VM VM VM
![Page 12: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/12.jpg)
Benefits of Docker
Higher density of applications per server / Cost reduction
Decrease Time to Market for developers
Increasing compatability with current software
One size fits all
![Page 13: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/13.jpg)
Future Projects
Next version of our Application Cloud will have Docker integration Q1
2016
Integrating existing Apps & Platforms into Docker
Launching Docker as a Service
![Page 14: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/14.jpg)
Monitoring Overview
![Page 15: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/15.jpg)
![Page 16: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/16.jpg)
Docker Monitoring Best Practices
16
Label your Containers (key value pair)
--label environment="production"
Set Resource Limits
Don’t overlert yourself
![Page 17: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/17.jpg)
Docker Stats
17
Usage: docker stats CONTAINER [CONTAINER...]
STATS DATA:
/sys/fs/cgroup/cpu
* /memory
* /blkio
![Page 18: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/18.jpg)
Docker Stats Overview
18
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
![Page 19: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/19.jpg)
Docker Monitoring
![Page 20: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/20.jpg)
20
(Container Advisor)
https://github.com/google/cadvisor
https://hub.docker.com/r/google/cadvisor
![Page 22: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/22.jpg)
22
cAdvisor – Collects, aggregates, processes, and exports
information about running containers
InfluxDB – Time Series Database stores all the metrics
Grafana – Metrics Dashboard
![Page 24: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/24.jpg)
Compose File
24
https://github.com/vegasbrianc/docker-monitoring
![Page 25: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/25.jpg)
25
Components
Prometheus Server
Data Exporter
Prometheus Dashboard
Alerting
![Page 27: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/27.jpg)
Compose File
27
https://github.com/vegasbrianc/prometheus
![Page 28: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/28.jpg)
Comparison
![Page 29: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/29.jpg)
Docker Monitoring Round Up
Ease of Use✔ 1/2 1/2
Alerting ✔
Client Libraries ✔ ✔
✔Scaling
![Page 30: DockerCon EU 2015: Docker Monitoring](https://reader034.vdocument.in/reader034/viewer/2022052116/58a515191a28ab8e1c8b6747/html5/thumbnails/30.jpg)
Docker Monitoring Resources
Great Docker Resource - https://github.com/veggiemonk/awesome-
docker#monitoring
InfluxDB - InfluxDB.com
Prometheues – Prometheus.io
My Docker Projects - https://github.com/vegasbrianc