Thanks for the info Jagdish.
Jeremiah Adams Software Engineer www.helixeducation.com Blog | Twitter | Facebook | LinkedIn ________________________________________ From: Jagadish Venkatraman <jagadish1...@gmail.com> Sent: Friday, July 07, 2017 6:49 PM To: dev@samza.apache.org 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. Best, Jagdish On Sat, Jul 8, 2017 at 1:56 AM Jeremiah Adams <jad...@helixeducation.com> wrote: > 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 ( > https://url.serverdata.net/?a5r3dp0BEHNX0237G8v6KFo8_GB1EZ1iyx01zxvfwK5QsDDlcFBNbMjGjT1ApZ-hIjAYeWXvOJZ2ziQVHCxU6YbZu9vy3bAOx9QzFvwB8cstMF0Dt2Ijat0uILqbVfFii > ). > > > 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 > https://url.serverdata.net/?ahfhEufaAWbezBrUFPG98ZJcterGfIerU3ZwsA3Gv_C0~<https://url.serverdata.net/?a49H2rNGIIBtQOw6md8OcHp-qKE3Xn2gNiZ3dlqAeSDA~> > Blog<https://url.serverdata.net/?a49H2rNGIIBtQOw6md8OcHgFEZu-KYuiu8doY66NWwmmyWxz7kC-27Yfnbdgd2wyh5gjXUa6LMT_NRXsj1g1VVg~~> > | Twitter< > https://url.serverdata.net/?a0Q7ct5_6cOdbJ86kpWB0zx6RbtgugTVC7lU_W7za50jLdZQGpLgVlR1V06zckSaM5oOKb6QBo46Qp9xt0Tt7Aw~~> > | Facebook< > https://url.serverdata.net/?aAmyAO_nS_C1aDgBLeKyGTu0tksTt1_mn2PcS8KJXNJPM04iRHKgX96qGgENV-dMSER5wl8zDVRr3RsS0OmcF9A~~> > | LinkedIn< > https://url.serverdata.net/?aanlcNI-cN74Gdz-TD332xAl6lHu7TRNICWoHUFjYf-KlBjrCGHoYR65b3rl-OyW10nWFv6hwYvUSoVHL4b3vGA~~> > -- Sent from my iphone.