I am using the Snapshot Metrics Reporter and a samza.metrics.timer to
instrument code blocks. The metrics are sent to a kafka topic via the metrics
reporter.
I can see the value of the timer in the topic ({"timerName":12.3}). I would
like to get the entire snapshot (timer.getSnapshot()) so I can see min, max and
avg values for the timer. How do I get the snapshot sent to the metrics topic?
Currently I am:
1 - getting the start time of the block,
2 - executing the block
3 - getting the end time of the block
4 - using duration to get the milliseconds
5 - passing the milliseconds into timer.update()
Jeremiah Adams
Software Engineer
www.helixeducation.com<http://www.helixeducation.com/>
Blog<http://www.helixeducation.com/blog/> |
Twitter<https://twitter.com/HelixEducation> |
Facebook<https://www.facebook.com/HelixEducation> |
LinkedIn<http://www.linkedin.com/company/3609946>