Upload
brian-christner
View
2.762
Download
1
Embed Size (px)
Citation preview
Docker Monitoring
Brian ChristnerCloud Advocate, Swisscom AG
Agenda
Section ThreecAdvisorcAdvisor + InfluxDB + GrafanaPrometheus
Section FourComparison
Section OneIntroduction
Section TwoBest PracticesDocker Stats
Introduction
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
5SwisscomCloud & Data Center solutionsReliable. 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 CHPUE* = 1.2
*Power usage effectiveness
Business becomesinnovation driver
11,500customer
servers
13 PBmanaged storage
100%renewable energy
Topsecurity
standards
Chocolate
Most Nobel prize winners on population
Source: New England Journal of Medicine, Nobel price, fotolia
8.9kg (19.6lbs) consumption
per person/Year
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
Swisscom Application Cloud
Cloud Foundry From Switzerland : As Tasty As Our Chocolate
developer.swisscom.com @Swisscom_Dev
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
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
Challenges with Docker
Persistent data management in containers
Staying up to date on Docker releases
Monitoring
Docker technology builds a scalable DBaaS
VM VM VM
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
Monitoring Overview
Docker Monitoring Best Practices
16
Label your Containers (key value pair)--label environment="production"
Set Resource Limits
Don’t overlert yourself
Docker Stats
17
Usage: docker stats CONTAINER [CONTAINER...]
STATS DATA:/sys/fs/cgroup/cpu
* /memory
* /blkio
Docker Stats Overview
18
Great for Troubleshooting
Docker Stats API is the basis all other tools use
Docker Stats API – Build tools that feed container resource information into your existing monitoring solutions
Docker Monitoring
20
(Container Advisor)
https://github.com/google/cadvisorhttps://
hub.docker.com/r/google/cadvisor
21
(Container Advisor)
DEMO
22
cAdvisor – Collects, aggregates, processes, and exports information about running containers
InfluxDB – Time Series Database stores all the metrics
Grafana – Metrics Dashboard
23
DEMO
Compose File
24
https://github.com/vegasbrianc/docker-monitoring
25
ComponentsPrometheus ServerData ExporterPrometheus DashboardAlerting
26
DEMO
Compose File
27
https://github.com/vegasbrianc/prometheus
Comparison
Docker Monitoring Round Up
Ease of Use ✔ 1/2 1/2
Alerting ✔Client Libraries ✔ ✔
✔Scaling
Docker Monitoring ResourcesGreat Docker Resource - https://
github.com/veggiemonk/awesome-docker#monitoring
InfluxDB - InfluxDB.com
Prometheues – Prometheus.io
My Docker Projects - https://github.com/vegasbrianc
Thank you!Brian [email protected]@swisscom.com