DockerCon EU 2015: Docker Monitoring

Post on 22-Jan-2018

4,220 views 0 download

transcript

Docker Monitoring

Brian ChristnerCloud Advocate, Swisscom AG

Agenda

Section Three

cAdvisor

cAdvisor + InfluxDB +

Grafana

Prometheus

Section Four

Comparison

Section One

Introduction

Section Two

Best Practices

Docker 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

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

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 CloudCloud 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

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

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

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 – Build tools that feed container resource

information into your existing monitoring solutions

Docker Stats API is the basis all other tools use

Docker Monitoring

20

(Container Advisor)

https://github.com/google/cadvisor

https://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

Compose File

24

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

25

Components

Prometheus Server

Data Exporter

Prometheus Dashboard

Alerting

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 Resources

Great 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 Christner@idomyowntricks

Brian.Christner@swisscom.com