metrics                                   performance monitoring                                        or business value ...
MeTerça-feira, 29 de Janeiro de 13
•          CTO at Cult of Bits              •          10+ years of professional Java developmentMeTerça-feira, 29 de Jane...
Why?Terça-feira, 29 de Janeiro de 13
Ultimately it’s about                                     Business ValueWhy?Terça-feira, 29 de Janeiro de 13
To make informed Business                    decisions we need to know                     the reality of our softwareWhy?...
How many errors are our                                users seeing?Why?Terça-feira, 29 de Janeiro de 13
Is our App fast enough?Why?Terça-feira, 29 de Janeiro de 13
Were our assumptions about               performance/usage patterns                     proven correct?Why?Terça-feira, 29...
The Metrics                                     libraryTerça-feira, 29 de Janeiro de 13
Metrics is a Java library which gives you unparalleled                insight into what your code does in production.     ...
Types of MetricsTerça-feira, 29 de Janeiro de 13
•          Gauges              •          Counters              •          Histograms              •          Meters      ...
Structure of                                     metricsTerça-feira, 29 de Janeiro de 13
Group   Top level grouping (“package name”)                              Type    Second level grouping (“class name”)     ...
OutputsTerça-feira, 29 de Janeiro de 13
•          JMX              •          Console              •          CSV files              •          JSON servlet     ...
DEMO TIMETerça-feira, 29 de Janeiro de 13
What to measure?Terça-feira, 29 de Janeiro de 13
“If it could affect business value, measure it”                                        Coda Hale - metrics’ author        ...
REST requests                                      TimerWhat to Measure?Terça-feira, 29 de Janeiro de 13
MySQL/couchdb/Solr queries                                             TimerWhat to Measure?Terça-feira, 29 de Janeiro de 13
Calls to external services/processes                                                 TimerWhat to Measure?Terça-feira, 29 ...
Dimensions of requests/responses                                              Histogram              Examples:            ...
ERRORS!                                   Counter / MeterWhat to Measure?Terça-feira, 29 de Janeiro de 13
The CoB                                   experienceTerça-feira, 29 de Janeiro de 13
Our use-caseTerça-feira, 29 de Janeiro de 13
•          Lots of applications in different                         sites              •          1-3 servers            ...
lessons learnedTerça-feira, 29 de Janeiro de 13
Naming metrics can be hardlessons learnedTerça-feira, 29 de Janeiro de 13
Creating metrics is just the                               startlessons learnedTerça-feira, 29 de Janeiro de 13
Having hard data to help                             decision is pricellesslessons learnedTerça-feira, 29 de Janeiro de 13
ReferencesTerça-feira, 29 de Janeiro de 13
The Metrics Homepage              http://metrics.codahale.com/              Metrics, Metrics, Everywhere - Coda Hale      ...
Thank you!                              @jnelas                              joao.nelas@gmail.comTerça-feira, 29 de Janeir...
Upcoming SlideShare
Loading in …5
×

metrics - performance monitoring or business value optimization?

7,488 views

Published on

Presentation done at the Portuguese JUG http://jug.pt/, about the metrics library from Yammer http://metrics.codahale.com/.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
7,488
On SlideShare
0
From Embeds
0
Number of Embeds
1,674
Actions
Shares
0
Downloads
47
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

metrics - performance monitoring or business value optimization?

  1. metrics performance monitoring or business value optimization?Terça-feira, 29 de Janeiro de 13
  2. MeTerça-feira, 29 de Janeiro de 13
  3. • CTO at Cult of Bits • 10+ years of professional Java developmentMeTerça-feira, 29 de Janeiro de 13
  4. Why?Terça-feira, 29 de Janeiro de 13
  5. Ultimately it’s about Business ValueWhy?Terça-feira, 29 de Janeiro de 13
  6. To make informed Business decisions we need to know the reality of our softwareWhy?Terça-feira, 29 de Janeiro de 13
  7. How many errors are our users seeing?Why?Terça-feira, 29 de Janeiro de 13
  8. Is our App fast enough?Why?Terça-feira, 29 de Janeiro de 13
  9. Were our assumptions about performance/usage patterns proven correct?Why?Terça-feira, 29 de Janeiro de 13
  10. The Metrics libraryTerça-feira, 29 de Janeiro de 13
  11. Metrics is a Java library which gives you unparalleled insight into what your code does in production. Developed by Yammer to instrument their JVM-based backend services, Metrics provides a powerful toolkit of ways to measure the behavior of critical components in your production environment. source: http://metrics.codahale.com/The metrics libraryTerça-feira, 29 de Janeiro de 13
  12. Types of MetricsTerça-feira, 29 de Janeiro de 13
  13. • Gauges • Counters • Histograms • Meters • TimersTypes of MetricsTerça-feira, 29 de Janeiro de 13
  14. Structure of metricsTerça-feira, 29 de Janeiro de 13
  15. Group Top level grouping (“package name”) Type Second level grouping (“class name”) Name the metric name (e.g.,“error-count”) Scope optionalStructure of metricsTerça-feira, 29 de Janeiro de 13
  16. OutputsTerça-feira, 29 de Janeiro de 13
  17. • JMX • Console • CSV files • JSON servlet • Graphite • GangliaOutputsTerça-feira, 29 de Janeiro de 13
  18. DEMO TIMETerça-feira, 29 de Janeiro de 13
  19. What to measure?Terça-feira, 29 de Janeiro de 13
  20. “If it could affect business value, measure it” Coda Hale - metrics’ author At yammer they can have up to 40/50 metrics per serviceWhat to Measure?Terça-feira, 29 de Janeiro de 13
  21. REST requests TimerWhat to Measure?Terça-feira, 29 de Janeiro de 13
  22. MySQL/couchdb/Solr queries TimerWhat to Measure?Terça-feira, 29 de Janeiro de 13
  23. Calls to external services/processes TimerWhat to Measure?Terça-feira, 29 de Janeiro de 13
  24. Dimensions of requests/responses Histogram Examples: •Search “page” size •Depth of search requests •Number of search terms usedWhat to Measure?Terça-feira, 29 de Janeiro de 13
  25. ERRORS! Counter / MeterWhat to Measure?Terça-feira, 29 de Janeiro de 13
  26. The CoB experienceTerça-feira, 29 de Janeiro de 13
  27. Our use-caseTerça-feira, 29 de Janeiro de 13
  28. • Lots of applications in different sites • 1-3 servers • No full-time network accessOur use-caseTerça-feira, 29 de Janeiro de 13
  29. lessons learnedTerça-feira, 29 de Janeiro de 13
  30. Naming metrics can be hardlessons learnedTerça-feira, 29 de Janeiro de 13
  31. Creating metrics is just the startlessons learnedTerça-feira, 29 de Janeiro de 13
  32. Having hard data to help decision is pricellesslessons learnedTerça-feira, 29 de Janeiro de 13
  33. ReferencesTerça-feira, 29 de Janeiro de 13
  34. The Metrics Homepage http://metrics.codahale.com/ Metrics, Metrics, Everywhere - Coda Hale http://www.youtube.com/watch?v=czes-oa0yik Graphite http://graphite.wikidot.com/ReferencesTerça-feira, 29 de Janeiro de 13
  35. Thank you! @jnelas joao.nelas@gmail.comTerça-feira, 29 de Janeiro de 13

×