Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

DockerCon EU 2015: Docker Monitoring


Published on

Presented by Brian Christner, Cloud Advocate, Swisscom AG

Do you know the performance of your containers or Docker Hosts? I will show you how to get up and running quickly with 2 different Open Source Docker Monitoring solutions. We will quickly cover Docker Stats as the basis and discover how Google cAdvisor gathers metrics for our 2 solutions. We will then build upon this basis to build a Docker Monitoring solution with cAdvisor+InfluxDB+Grafana and then cAdvisor+Prometheus and create dashboards based on the gathered monitoring metrics with Grafna and Prometheus.

Published in: Technology
  • Get Now to Read PDF eBook ===
    Are you sure you want to  Yes  No
    Your message goes here

DockerCon EU 2015: Docker Monitoring

  1. 1. Docker Monitoring Brian Christner Cloud Advocate, Swisscom AG
  2. 2. Agenda Section Three cAdvisor cAdvisor + InfluxDB + Grafana Prometheus Section Four Comparison Section One Introduction Section Two Best Practices Docker Stats
  3. 3. Introduction
  4. 4. 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
  5. 5. 5 Swisscom 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 PB managed storage 100% renewable energy Top security standards
  6. 6. Chocolate Most Nobel prize winners on population Source: New England Journal of Medicine, Nobel price, fotolia 8.9kg (19.6lbs) consumption per person/Year
  7. 7. Monte Rose, 4642m / 15,203 ft Swiss Innovation Global Innovation Index leader for the fifth year in a row Data privacy and security as solid as our alp massif Source: Global Innovation Index, (countries over 100k p) Top 3 in github commits per capita
  8. 8. Swisscom Application Cloud Cloud Foundry From Switzerland : As Tasty As Our Chocolate @Swisscom_Dev
  9. 9. 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
  10. 10. Challenges with Docker Persistent data management in containers Staying up to date on Docker releases Monitoring
  11. 11. Docker technology builds a scalable DBaaS VM VM VM
  12. 12. 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
  13. 13. 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
  14. 14. Monitoring Overview
  15. 15. Docker Monitoring Best Practices 16 Label your Containers (key value pair) --label environment="production" Set Resource Limits Don’t overlert yourself
  16. 16. Docker Stats 17 Usage: docker stats CONTAINER [CONTAINER...] STATS DATA: /sys/fs/cgroup/cpu * /memory * /blkio
  17. 17. 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
  18. 18. Docker Monitoring
  19. 19. 20 (Container Advisor)
  20. 20. 21 (Container Advisor) DEMO
  21. 21. 22 cAdvisor – Collects, aggregates, processes, and exports information about running containers InfluxDB – Time Series Database stores all the metrics Grafana – Metrics Dashboard
  22. 22. 23 DEMO
  23. 23. Compose File 24
  24. 24. 25 Components Prometheus Server Data Exporter Prometheus Dashboard Alerting
  25. 25. 26 DEMO
  26. 26. Compose File 27
  27. 27. Comparison
  28. 28. Docker Monitoring Round Up Ease of Use ✔ 1/2 1/2 Alerting ✔ Client Libraries ✔ ✔ ✔Scaling
  29. 29. Docker Monitoring Resources Great Docker Resource - docker#monitoring InfluxDB - Prometheues – My Docker Projects -
  30. 30. Thank you! Brian Christner @idomyowntricks