31
Docker Monitoring Brian Christner Cloud Advocate, Swisscom AG

DockerCon EU 2015: Docker Monitoring

Embed Size (px)

Citation preview

Page 1: DockerCon EU 2015: Docker Monitoring

Docker Monitoring

Brian ChristnerCloud Advocate, Swisscom AG

Page 2: DockerCon EU 2015: Docker Monitoring

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

Introduction

Page 4: DockerCon EU 2015: Docker Monitoring

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

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

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

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

Swisscom Application CloudCloud Foundry From Switzerland : As Tasty As Our Chocolate

developer.swisscom.com

@Swisscom_Dev

Page 9: DockerCon EU 2015: Docker Monitoring

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

Challenges with Docker

Persistent data management in containers

Staying up to date on Docker releases

Monitoring

Page 11: DockerCon EU 2015: Docker Monitoring

Docker technology builds a scalable DBaaS

VM VM VM

Page 12: DockerCon EU 2015: Docker Monitoring

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

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

Monitoring Overview

Page 15: DockerCon EU 2015: Docker Monitoring
Page 16: DockerCon EU 2015: Docker Monitoring

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

Docker Stats

17

Usage: docker stats CONTAINER [CONTAINER...]

STATS DATA:

/sys/fs/cgroup/cpu

* /memory

* /blkio

Page 18: DockerCon EU 2015: Docker Monitoring

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

Docker Monitoring

Page 20: DockerCon EU 2015: Docker Monitoring

20

(Container Advisor)

https://github.com/google/cadvisor

https://hub.docker.com/r/google/cadvisor

Page 21: DockerCon EU 2015: Docker Monitoring

21

(Container Advisor)

DEMO

Page 22: DockerCon EU 2015: Docker Monitoring

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

Compose File

24

https://github.com/vegasbrianc/docker-monitoring

Page 25: DockerCon EU 2015: Docker Monitoring

25

Components

Prometheus Server

Data Exporter

Prometheus Dashboard

Alerting

Page 27: DockerCon EU 2015: Docker Monitoring

Compose File

27

https://github.com/vegasbrianc/prometheus

Page 28: DockerCon EU 2015: Docker Monitoring

Comparison

Page 29: DockerCon EU 2015: Docker Monitoring

Docker Monitoring Round Up

Ease of Use✔ 1/2 1/2

Alerting ✔

Client Libraries ✔ ✔

✔Scaling

Page 30: DockerCon EU 2015: Docker Monitoring

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

Page 31: DockerCon EU 2015: Docker Monitoring

Thank you!Brian Christner@idomyowntricks

[email protected]