Metrics

1,173 views
965 views

Published on

Talk on Metrics at Central Iowa Java User Group.

Published in: Technology
1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total views
1,173
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
15
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

Metrics

  1. 1. MetricsCentral Iowa Java User Group7 May 2013Zach Cox = http://pongr.com/user/z
  2. 2. http://metrics.codahale.comhttps://github.com/codahale/metrics
  3. 3. http://codahale.com/codeconf-2011-04-09-metrics-metrics-everywhere.pdf
  4. 4. Why Metrics● Business value = $$$● Runtime (not design/code/compile/test time)● Measure runtime behavior● Make better decisions● Increase business value
  5. 5. Questions● How many req/sec are we getting now?● Which SQL is slowest on this page?● How many sessions are live now?
  6. 6. How to Metrics● Measure stuff○ Record runtime behavior○ Manually○ Instrumentations○ Metrics API● Report measurements○ Visibility into that runtime behavior○ Humans○ Machines○ 3rd-party tools
  7. 7. Measure● Gauge● Counter● Meter● Histogram● Timer● Health check
  8. 8. Instrument (pre-built Metrics)● Ehcache● Apache HttpClient● JDBI● Jersey● Jetty● Log4j● Logback● JVM● Servlet filter
  9. 9. Report● Console / slf4j / csv● Graphite● Ganglia● HTTP● JMX● Write your own...○ CloudWatch○ Hadoop/Storm○ Boundary?
  10. 10. Metrics at Pongr● Scala - much more concise API● Tons of Timers (poor mans profiling)● Many Meters● Couple Counters (Meters & Timers count)● Graphite (suuucks)● JMX (wtf?!)● Multiple servers reporting same metrics● CloudWatch reporter (someday...)
  11. 11. Metrics in Rexster● https://github.com/tinkerpop/rexster/wiki/Monitoring
  12. 12. Thank You!● Pongr is hiring = zcox@pongr.com

×