SlideShare a Scribd company logo
Logging & Metrics 
Tammo van Lessen Christian Grobmeier 
@taval @grobmeier
log.errorſ"Houston?"ƀ;
NrɬwLɩsGnT FUCkQJɫYcJ jUQwjIaagt uVimjWTocH 
xɪUNWɰXZɨB dtNpSSkɬfw ADjɬɭfqlnt IOHlɫHACmU 
mɫJɨiɪgɫɬp wmɬommkSvh ttjWddKɰɩL VZdCOlɮSjg 
epqMlTntGL toɯBo00WMi NɪTzEjFɩZɪ rsɰwɪeɨZLɩ 
ɬXɭumEbaiu ɭCLɯHBEKɩX PihltWebCI VtuɮxhTBdf 
ɯHɪmhqY0ug ɰɨWvNUYCtɯ rMpEVUiwUA lɯSaAnGNto 
nPcoiO0rhq TYtɫpMrnrt HOUSTON!!! ɭVKJqPAnbO 
VɰqofvZZfq zɩlɰɮjCNqQ M0IFOjnNyg ɫMBɩbɪqcIH 
KXkɬypeVTɭ ZIHciɩrLyi DdLiDNuYhɬ CIhpkɯɰxEa 
pKSNIɫzNtB rQɬCAZSUwc MLYɨERwCɯX yZQTzyOpZb 
TOOrfLATEv RfLwPsLfpQ ɨcmPmjCXwɭ ɭRXɪrqEqUa 
UzzEmCafve BNlRGzhDhɯ ɪtNdDfhQLn TSɬKPpmIOR 
sntɯemAsgZ WxKMɩɭsPbt NkAhɯOFRHK rzɫjPlRɪQg 
OhoWɰUiOzB RBZcɫNbjCA fgjchgɮKHL pXɰGɪTɫTti
Logging & Metrics
Logging & Metrics
Logging & Metrics
MDC to the rescue? 
ThreadContext.putſ"loginId", loginƀ; 
logger.errorſ"Something bad happened!"ƀ; 
ThreadContext.clearſƀ; 
+ Layout: 
%-ɬp: %m%n %X{loginId} 
Could log: 
ERROR: Something bad happened! @grobmeier
Enough?
Dealing with the Stream Of 
Logs 
Flume, Kafka, Logstash, Graylog2, Fluentd
Searching logs 
Graylog2, ElasticSearch
Having an overview
Logging & Metrics
A Logstash Cluster 
From the Logstash docs
May I help you? 
FluentD (AL 2.0) 
Graylog 2 (GPL) 
Loggly (commerical)
If you want to know... 
...you need to log.
How much is healthy?
Trace is almost for free. 
Log4j 2 Filters help too.
Default Levels 
Files? Warn only. 
Logstash & Co? Info. 
Magic bugs + advanced setup? Debug, or even trace.
Start with verbs 
DEBUG adding user @grobmeier on node "baldur" 
DEBUG removing user @taval on node "mjölnir" 
DEBUG created entry for @taval on node "baldur" 
Idea taken from TJ Holowaychuk
Logging is cool. 
Can I use it to get a health status of my 
systems?
You can! 
But you shouldn't!
Metrics 
Business Metrics 
Application Metrics 
System Metrics
Gauges 
An instrument that measures a value.
Counters 
A counter is a simple incrementing and decrementing integer.
Histograms 
A Histogram measures the distribution of values.
Meters 
A meter measures the rate at which a set of events occur.
Timers
Logging & Metrics
Logging & Metrics
Logging & Metrics
Logging & Metrics
Logging & Metrics
Logging & Metrics
Logging & Metrics
Logging & Metrics
Logging & Metrics
Dashboards
Graphite
Cubism.js 
Mirror Offset 1 − + 
Credits: Michael Bostock
Logging & Metrics
Comparisons 
var cube = context.cubeſ"http://..."ƀ, 
primary = cube.metricſ"sumſrequestƀ"ƀ, 
secondary = 
primary.shiftſ-ɮ * ɩɫ * ɭ0 * ɭ0 * ɨ000ƀ;
Graphene 
...
Dashing 
...
Best practices 
Measure everything! 
Counters ./. Meters 
Metrics are cheap, but not for free. 
Retention Policies
Prevent the apocalypse! 
Logging shows events. 
Metrics shows state.
Thank you! 
We use Twitter! 
@taval, @innoq & @grobmeier
Credits 
Holzstapel 
CPU by mbostock 
Mess by Rev Stan 
Debt by "Images Money" (Flickr) 
Pay Here by Marc Falardeau 
Cockpit by Ronnie Rams 
Stream by Phil Whitehouse 
Magnifier by John Lodder (Flickr) 
Flying Saucer, Cup, and Teapot! by Mr Thinktank 
Ice berg by Derek Keats 
Gas Meters by mxmstryo (Flickr) 
Gauge Stock by Andrew Taylor (Flickr) 
Counter by Marcin Wichary (Flickr) 
Histogram of legos by color frequency by Jeff Boulter (Flickr) 
pomodoro timers by Paul Downey (Flickr) 
Zombie Apocalypse by pasukaru76

More Related Content

PPTX
Presenting statistics in social media 2012
PPTX
Presenting statistics in social media
PDF
Quality Assurance and Testing of Automated Business Processes
PDF
Cloud Foundry Logging and Metrics
PPT
What Every Organization Should Log And Monitor
PDF
Monitoring Kubernetes with Prometheus
PDF
Metrics & more
PDF
Detection of Process Antipatterns: An BPEL Perspective
Presenting statistics in social media 2012
Presenting statistics in social media
Quality Assurance and Testing of Automated Business Processes
Cloud Foundry Logging and Metrics
What Every Organization Should Log And Monitor
Monitoring Kubernetes with Prometheus
Metrics & more
Detection of Process Antipatterns: An BPEL Perspective

Viewers also liked (20)

PPT
Business Process Execution Language (BPEL)
PPTX
Introduction to business process execution language
PPT
Learn Dashing Widget in 90 minutes
PDF
Web Services Orchestration with BPEL 2.0
PDF
Formalizing Message Exchange Patterns using BPEL light
PDF
Prometheus: A Next Generation Monitoring System (FOSDEM 2016)
PDF
Systems Monitoring with Prometheus (Devops Ireland April 2015)
PDF
Business Process Management with BPMN & BPEL
PDF
Data Platform at Twitter: Enabling Real-time & Batch Analytics at Scale
PDF
OpenESB et BPEL
PDF
Elasticsearch for Logs & Metrics - a deep dive
PPT
Oracle Service Bus vs. Oracle Enterprise Service Bus vs. BPEL
PDF
Prometheus Overview
PDF
Introduction and Advanced Concepts of BPEL
PDF
Fall in Love with Graphs and Metrics using Grafana
PDF
Fluentd and Kafka
PPTX
Volta: Logging, Metrics, and Monitoring as a Service
PDF
BPMN, BPEL, ESB or maybe Java? What should I use to implement my project?
PPTX
Grafana and MySQL - Benefits and Challenges
PDF
Demystifying Data Engineering
Business Process Execution Language (BPEL)
Introduction to business process execution language
Learn Dashing Widget in 90 minutes
Web Services Orchestration with BPEL 2.0
Formalizing Message Exchange Patterns using BPEL light
Prometheus: A Next Generation Monitoring System (FOSDEM 2016)
Systems Monitoring with Prometheus (Devops Ireland April 2015)
Business Process Management with BPMN & BPEL
Data Platform at Twitter: Enabling Real-time & Batch Analytics at Scale
OpenESB et BPEL
Elasticsearch for Logs & Metrics - a deep dive
Oracle Service Bus vs. Oracle Enterprise Service Bus vs. BPEL
Prometheus Overview
Introduction and Advanced Concepts of BPEL
Fall in Love with Graphs and Metrics using Grafana
Fluentd and Kafka
Volta: Logging, Metrics, and Monitoring as a Service
BPMN, BPEL, ESB or maybe Java? What should I use to implement my project?
Grafana and MySQL - Benefits and Challenges
Demystifying Data Engineering
Ad

More from Tammo van Lessen (9)

PDF
Behavior-driven Business Process Development with BPMN
PDF
Vorsicht Schuldenfalle - Was die IT aus der Finanzwelt lernen kann
PPT
Web Service Composition mit WS-BPEL und dem Open-Source-Orchester
PDF
BPM meets Semantic Web
PDF
Virtualizing Services and Resources with ProBus: The WS-Policy-Aware Service...
PPT
SOA-based Business Integration with Eclipse BPEL and Apache ODE
PDF
Facilitating Rich Data Manipulation in BPEL using E4X
PDF
BPM meets Semantic Web
PDF
An Execution Engine For Semantic Business Processes
Behavior-driven Business Process Development with BPMN
Vorsicht Schuldenfalle - Was die IT aus der Finanzwelt lernen kann
Web Service Composition mit WS-BPEL und dem Open-Source-Orchester
BPM meets Semantic Web
Virtualizing Services and Resources with ProBus: The WS-Policy-Aware Service...
SOA-based Business Integration with Eclipse BPEL and Apache ODE
Facilitating Rich Data Manipulation in BPEL using E4X
BPM meets Semantic Web
An Execution Engine For Semantic Business Processes
Ad

Recently uploaded (20)

PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
project resource management chapter-09.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Approach and Philosophy of On baking technology
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
1. Introduction to Computer Programming.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Getting Started with Data Integration: FME Form 101
A comparative study of natural language inference in Swahili using monolingua...
Enhancing emotion recognition model for a student engagement use case through...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
cloud_computing_Infrastucture_as_cloud_p
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Univ-Connecticut-ChatGPT-Presentaion.pdf
Chapter 5: Probability Theory and Statistics
NewMind AI Weekly Chronicles - August'25-Week II
MIND Revenue Release Quarter 2 2025 Press Release
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
project resource management chapter-09.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Approach and Philosophy of On baking technology
A novel scalable deep ensemble learning framework for big data classification...
1. Introduction to Computer Programming.pptx
Heart disease approach using modified random forest and particle swarm optimi...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Getting Started with Data Integration: FME Form 101

Logging & Metrics

  • 1. Logging & Metrics Tammo van Lessen Christian Grobmeier @taval @grobmeier
  • 3. NrɬwLɩsGnT FUCkQJɫYcJ jUQwjIaagt uVimjWTocH xɪUNWɰXZɨB dtNpSSkɬfw ADjɬɭfqlnt IOHlɫHACmU mɫJɨiɪgɫɬp wmɬommkSvh ttjWddKɰɩL VZdCOlɮSjg epqMlTntGL toɯBo00WMi NɪTzEjFɩZɪ rsɰwɪeɨZLɩ ɬXɭumEbaiu ɭCLɯHBEKɩX PihltWebCI VtuɮxhTBdf ɯHɪmhqY0ug ɰɨWvNUYCtɯ rMpEVUiwUA lɯSaAnGNto nPcoiO0rhq TYtɫpMrnrt HOUSTON!!! ɭVKJqPAnbO VɰqofvZZfq zɩlɰɮjCNqQ M0IFOjnNyg ɫMBɩbɪqcIH KXkɬypeVTɭ ZIHciɩrLyi DdLiDNuYhɬ CIhpkɯɰxEa pKSNIɫzNtB rQɬCAZSUwc MLYɨERwCɯX yZQTzyOpZb TOOrfLATEv RfLwPsLfpQ ɨcmPmjCXwɭ ɭRXɪrqEqUa UzzEmCafve BNlRGzhDhɯ ɪtNdDfhQLn TSɬKPpmIOR sntɯemAsgZ WxKMɩɭsPbt NkAhɯOFRHK rzɫjPlRɪQg OhoWɰUiOzB RBZcɫNbjCA fgjchgɮKHL pXɰGɪTɫTti
  • 7. MDC to the rescue? ThreadContext.putſ"loginId", loginƀ; logger.errorſ"Something bad happened!"ƀ; ThreadContext.clearſƀ; + Layout: %-ɬp: %m%n %X{loginId} Could log: ERROR: Something bad happened! @grobmeier
  • 9. Dealing with the Stream Of Logs Flume, Kafka, Logstash, Graylog2, Fluentd
  • 10. Searching logs Graylog2, ElasticSearch
  • 13. A Logstash Cluster From the Logstash docs
  • 14. May I help you? FluentD (AL 2.0) Graylog 2 (GPL) Loggly (commerical)
  • 15. If you want to know... ...you need to log.
  • 16. How much is healthy?
  • 17. Trace is almost for free. Log4j 2 Filters help too.
  • 18. Default Levels Files? Warn only. Logstash & Co? Info. Magic bugs + advanced setup? Debug, or even trace.
  • 19. Start with verbs DEBUG adding user @grobmeier on node "baldur" DEBUG removing user @taval on node "mjölnir" DEBUG created entry for @taval on node "baldur" Idea taken from TJ Holowaychuk
  • 20. Logging is cool. Can I use it to get a health status of my systems?
  • 21. You can! But you shouldn't!
  • 22. Metrics Business Metrics Application Metrics System Metrics
  • 23. Gauges An instrument that measures a value.
  • 24. Counters A counter is a simple incrementing and decrementing integer.
  • 25. Histograms A Histogram measures the distribution of values.
  • 26. Meters A meter measures the rate at which a set of events occur.
  • 39. Cubism.js Mirror Offset 1 − + Credits: Michael Bostock
  • 41. Comparisons var cube = context.cubeſ"http://..."ƀ, primary = cube.metricſ"sumſrequestƀ"ƀ, secondary = primary.shiftſ-ɮ * ɩɫ * ɭ0 * ɭ0 * ɨ000ƀ;
  • 44. Best practices Measure everything! Counters ./. Meters Metrics are cheap, but not for free. Retention Policies
  • 45. Prevent the apocalypse! Logging shows events. Metrics shows state.
  • 46. Thank you! We use Twitter! @taval, @innoq & @grobmeier
  • 47. Credits Holzstapel CPU by mbostock Mess by Rev Stan Debt by "Images Money" (Flickr) Pay Here by Marc Falardeau Cockpit by Ronnie Rams Stream by Phil Whitehouse Magnifier by John Lodder (Flickr) Flying Saucer, Cup, and Teapot! by Mr Thinktank Ice berg by Derek Keats Gas Meters by mxmstryo (Flickr) Gauge Stock by Andrew Taylor (Flickr) Counter by Marcin Wichary (Flickr) Histogram of legos by color frequency by Jeff Boulter (Flickr) pomodoro timers by Paul Downey (Flickr) Zombie Apocalypse by pasukaru76