Slide 1

Slide 1 text

The History of Metrics According to Me Stephen Day Docker, Inc. Docker Meetup, SF December 2016 v1

Slide 2

Slide 2 text

Stephen Day Docker, Inc. [email protected] github.com/stevvooe @stevvooe

Slide 3

Slide 3 text

Metrics Why?

Slide 4

Slide 4 text

The Early Years

Slide 5

Slide 5 text

5 Titration By UCL - Flickr, CC BY 2.0, https://commons.wikimedia.org/w/index.php?curid=45263025

Slide 6

Slide 6 text

Music

Slide 7

Slide 7 text

Electrical Engineering CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=392484

Slide 8

Slide 8 text

Microcontrollers

Slide 9

Slide 9 text

Human Powered Submarine

Slide 10

Slide 10 text

Graphs

Slide 11

Slide 11 text

Software Engineering

Slide 12

Slide 12 text

Software Engineering is way behind! Sort of. See http://www.itl.nist.gov/div898/handbook/ for an example

Slide 13

Slide 13 text

13 Observability and Controllability The Problem Low Observability High Observability Guessing Informed

Slide 14

Slide 14 text

Models INFO[0012] response completed go.version=go1.6.3 http.request.host=localhost:5001 http.request.id=4db26096-a417-48e8-a759-ddd8ea66c3a0 http.request.method=GET http.request.remoteaddr=172.17.0.1:57406 http.request.uri=/v2/ http.request.useragent=curl/7.49.1 http.response.contenttype=application/json; charset=utf-8 http.response.duration=5.4388ms http.response.status=200 http.response.written=2 instance.id=7926875b-d3fb-41e4-bd75-2370a3e8a03c version=v2.5.1 Record-based

Slide 15

Slide 15 text

Models Sample-based t

Slide 16

Slide 16 text

Why aren’t metrics built into everything?

Slide 17

Slide 17 text

Excuses!

Slide 18

Slide 18 text

Why aren’t metrics a part of Docker?

Slide 19

Slide 19 text

The Goal

Slide 20

Slide 20 text

Prometheus https://prometheus.io/

Slide 21

Slide 21 text

Types of Metrics - Counters: cumulative number that only increases - Gauges: value that can go up or down - Summary/Histogram: Sample of observations https://prometheus.io/docs/concepts/metric_types/

Slide 22

Slide 22 text

Format

Slide 23

Slide 23 text

Configuration

Slide 24

Slide 24 text

Architecture

Slide 25

Slide 25 text

Demo

Slide 26

Slide 26 text

What’s next? So much.

Slide 27

Slide 27 text

Road Map https://github.com/docker/docker/issues/27307

Slide 28

Slide 28 text

- For Contributors and Maintainers to better understand performance - For Users to better understand behavior of the daemon in their infrastructure - Implemented in 1.13 Docker Engine Metrics

Slide 29

Slide 29 text

Externally Observable Metrics - CPU, memory usage, etc. - Replaces docker stats

Slide 30

Slide 30 text

Integrated Target Discovery - Prometheus automatically discover engine and container metric targets

Slide 31

Slide 31 text

Application Metrics - Directly proxy your metrics out of the Docker daemon - Leverage built in integrated target discovery

Slide 32

Slide 32 text

THANK YOU