SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 30 day free trial to unlock unlimited reading.
5.
Globalcode – Open4education
5
Why?
Service
Users
6.
Globalcode – Open4education
6
Why?
Service
Users
Dependencies
7.
Globalcode – Open4education
7
Why?
Service
Users
Dependencies
Your service is slow!
8.
Globalcode – Open4education
8
Why?
Service
Users
Dependencies
Your service is slow!
Is the problem here?
9.
Globalcode – Open4education
9
Why?
Service
Users
Dependencies
Your service is slow!
Or here?
10.
Globalcode – Open4education
10
Why?
Service
Users
Dependencies
Your service is slow!
Maybe here?
11.
Globalcode – Open4education
11
Why?
Service
Users
Dependencies
Your service is slow!
It has to be here! Or not…
12.
Globalcode – Open4education
Ability to monitor or
measure the level
of a product's
performance, to
diagnose errors
and to write trace
information.
12
Instrumentation
13.
Globalcode – Open4education
How & what?
USE
Brendan Gregg
Utilization
Saturation
Error rate
RED
Tom Wilkie
Request rate
Error rate
Duration
13
15.
Globalcode – Open4education
Prometheus
Monitoring and Alerting system (https://
prometheus.io/)
Created by SoundCloud
Written in Go
Open Source
Member of the Cloud Native Computing
Foundation
15
16.
Globalcode – Open4education
Prometheus
Pull based (HTTP)
Easier to maintain and scale
Flexible query language
Service discovery
Kubernetes, AWS, Azure, Consul, …
Several exporters already available
Node, JMX, Mysqld, …
Easy to build your own!
16
21.
Globalcode – Open4education
connections_current_open{instance="192.168.50.10:9080",job="router"} 165
Value
Prometheus Metrics
21
22.
Globalcode – Open4education
Go, Prometheus!
Official client
https://github.com/prometheus/client_golang
Out of the box runtime metrics
Goroutines, GC latency, OS threads
Supported metrics
Counter, Gauge, Histogram and Summary
prometheus.Collector interface
22