Yes; a rate of 1 means that 1 event occurred per second, which in your
case means one call to markEvent() per second.
Note that the default Meter implementation calculates the rate per
second over the last minute (basically, rate(T) = (count(T) -
count(T-60)) / 60; so short spikes tend to be flattened quite a bit.
On 29/07/2020 15:13, Manish G wrote:
> I have added Meter metrics to my flink job code,and in grafana I can
> see the graph for the same.
>
> What I observe is that the graph initially rises, and then plateaus at
> 1, with occasional variations.
>
> As Meter calculates throughput, so does it mean that the map function,
> wherein I invoke markEvent() method on Meter instance, is getting
> completed once per second?
>
> With regards
>