Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to select a counter that resets instead of the default cumulative counter? #131

Open
dabeir opened this issue Jun 13, 2016 · 3 comments

Comments

@dabeir
Copy link

dabeir commented Jun 13, 2016

I have been testing out Metrics.Net and noticed there's no obvious way to select/use a counter that resets back to zero after flushing to a repository? Is there any way to configure Metrics.Net to do this out of the box, and if not, what is your recommendation if I'd like to accomplish that behavior?

Thank you.

@matt-softlogic
Copy link

@dabeir I have a similar requirement, did you come up with a working solution?

@dabeir
Copy link
Author

dabeir commented Aug 5, 2016

@matt-softlogic Unfortunately no. I considered using statsd-sharp-client since it has a simpler API. My main interest was to get the data into elasticsearch which Metrics.NET supports but due to the aforementioned problem, and other formatting issues, I ended up writing my own telemetry library....

@matt-softlogic
Copy link

matt-softlogic commented Aug 5, 2016

Thanks for sharing that. FYI - the approach I'm going with to solve this requirement is to use Elasticsearch's (our store for all the metrics.net output) Derivative Pipeline Aggregation query which can compute deltas on the Count buckets. Then, to visualize it, since Kibana doesn't offer support yet for Pipeline Agg queries, we're using Grafana which support Pipeline Metrics for the Elasticsearch datasource.

Hope this might help others who are facing similar challenges...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants