samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jagadish Venkatraman <>
Subject Re: Question Concerning Custom Metrics and Timers
Date Sat, 08 Jul 2017 00:49:05 GMT
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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message