samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremiah Adams <>
Subject Re: Question Concerning Custom Metrics and Timers
Date Mon, 10 Jul 2017 21:05:14 GMT
Thanks for the info Jagdish.

Jeremiah Adams
Software Engineer
Blog | Twitter | Facebook | LinkedIn

From: Jagadish Venkatraman <>
Sent: Friday, July 07, 2017 6:49 PM
Subject: Re: Question Concerning Custom Metrics and Timers

Hey Jeremiah,

The "timer" metric in Samza maintains a sliding window of its data points.
Each time you invoke timer.update(val), a data-point gets added to the
sliding window. The reported value of a timer metric is the average of all
data points in the window.

In contrast, the "gauge" metric always reports its last value.

Do let us know if you had further questions.


On Sat, Jul 8, 2017 at 1:56 AM Jeremiah Adams <>

> I am making early attempts at gathering metrics around methods and sql
> calls. I am using the Snapshot  Reporter to send metrics to a kafka topic.
> The docs state that metrics are sent to kafka every 60 seconds (
> ).
> When I am instrumenting a method via Timer.update() which is called
> n-number of times in 60 seconds am I seeing an aggregation of the time
> spent in said method during a 60 second period or am I seeing the last
> value sent through Timer.update()?
> Jeremiah Adams
> Software Engineer
> Blog<>
| Twitter<
| Facebook<
| LinkedIn<
Sent from my iphone.

View raw message