etishor / Metrics.NET

The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate Values being pushed

somaniab opened this issue · comments

Hi ,

Suppose i have set and interval of 60 seconds , and i am collecting metrics for login . First 60 seconds user logs in , and entry is pushed . now next 60 seconds , user does not do anything , still the same entry is pushed . how can i avoid duplicates ?

can i use ResetMetricsValues method to fix this ?

Hi!

Can you add more details: how you metric configured, how and what are you observe metric value?

I have solved the issue by using CounterValueSource , and resetting the value while reading it .