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

'The History of Metrics According to me' by Stephen Day

Apr 16, 2017

Download

Technology

Docker, Inc.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 'The History of Metrics According to me' by Stephen Day

The History of Metrics According to Me

Stephen DayDocker, Inc.Docker Meetup, SFDecember 2016

v1

Page 2: 'The History of Metrics According to me' by Stephen Day

Stephen DayDocker, [email protected]/stevvooe@stevvooe

Page 3: 'The History of Metrics According to me' by Stephen Day

MetricsWhy?

Page 4: 'The History of Metrics According to me' by Stephen Day

The Early Years

Page 5: 'The History of Metrics According to me' by Stephen Day

5

Titration

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

Page 6: 'The History of Metrics According to me' by Stephen Day

Music

Page 7: 'The History of Metrics According to me' by Stephen Day

Electrical Engineering

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

Page 8: 'The History of Metrics According to me' by Stephen Day

Microcontrollers

Page 9: 'The History of Metrics According to me' by Stephen Day

Human Powered Submarine

Page 10: 'The History of Metrics According to me' by Stephen Day

Graphs

Page 11: 'The History of Metrics According to me' by Stephen Day

Software Engineering

Page 12: 'The History of Metrics According to me' by Stephen Day

Software Engineering is way behind!Sort of.

See http://www.itl.nist.gov/div898/handbook/ for an example

Page 13: 'The History of Metrics According to me' by Stephen Day

13

Observability and ControllabilityThe Problem

Low Observability High Observability

Guessing Informed

Page 14: 'The History of Metrics According to me' by Stephen Day

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

Page 15: 'The History of Metrics According to me' by Stephen Day

ModelsSample-based

t

Page 16: 'The History of Metrics According to me' by Stephen Day

Why aren’t metrics built into everything?

Page 17: 'The History of Metrics According to me' by Stephen Day

Excuses!

Page 18: 'The History of Metrics According to me' by Stephen Day

Why aren’t metrics a part of Docker?

Page 19: 'The History of Metrics According to me' by Stephen Day

The Goal

Page 20: 'The History of Metrics According to me' by Stephen Day

Prometheus

https://prometheus.io/

Page 21: 'The History of Metrics According to me' by Stephen Day

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/

Page 22: 'The History of Metrics According to me' by Stephen Day

Format

Page 23: 'The History of Metrics According to me' by Stephen Day

Configuration

Page 24: 'The History of Metrics According to me' by Stephen Day

Architecture

Page 25: 'The History of Metrics According to me' by Stephen Day

Demo

Page 26: 'The History of Metrics According to me' by Stephen Day

What’s next?

So much.

Page 27: 'The History of Metrics According to me' by Stephen Day

Road Maphttps://github.com/docker/docker/issues/27307

Page 28: 'The History of Metrics According to me' by Stephen Day

- 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

Page 29: 'The History of Metrics According to me' by Stephen Day

Externally Observable Metrics

- CPU, memory usage, etc.- Replaces docker stats

Page 30: 'The History of Metrics According to me' by Stephen Day

Integrated Target Discovery

- Prometheus automatically discover engine and container metric targets

Page 31: 'The History of Metrics According to me' by Stephen Day

Application Metrics

- Directly proxy your metrics out of the Docker daemon

- Leverage built in integrated target discovery

Page 32: 'The History of Metrics According to me' by Stephen Day

THANK YOU