Re: Apache Flink - Gauge implementation

2019-07-10 Thread M Singh
Xintong/Chesnay - Thanks for your response. >From what I understand meter measures average throughput >(https://ci.apache.org/projects/flink/flink-docs-release-1.8/monitoring/metrics.html#meter). >  I would like to have the absolute count in each unit of interval. Also, I am assuming that the met

Re: Apache Flink - Gauge implementation

2019-07-10 Thread Chesnay Schepler
This can't be implemented as there's no guarantee that getValue is only called once. Why do you want to reset the count? If you're interested in rates, why aren't you using a meter? On 10/07/2019 09:37, Xintong Song wrote: Hi Singh, Could your problem be solved by simply record the previous

Re: Apache Flink - Gauge implementation

2019-07-10 Thread Xintong Song
Hi Singh, Could your problem be solved by simply record the previous value and subtract it from the new value? Thank you~ Xintong Song On Wed, Jul 10, 2019 at 3:33 PM M Singh wrote: > Hi: > > I am working on a Flink application and need to collect the number of > events of certain type/seco