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

Counters as Gauge #110

Open
ArulselvanMadhavan opened this issue Sep 3, 2020 · 2 comments
Open

Counters as Gauge #110

ArulselvanMadhavan opened this issue Sep 3, 2020 · 2 comments

Comments

@ArulselvanMadhavan
Copy link

ArulselvanMadhavan commented Sep 3, 2020

Thanks for providing this library. I noticed that counters as reported as gauges, behind the scenes. We are looking into metrics aggregators and gauges don't work well with aggregators but counters can. So, I was wondering why counters were implemented as gauges

request.addGauge(new DatadogGauge(metricNameFormatter.format(name), counter.getCount(),

@mosheeshel
Copy link

I'll add to this that you have a specific function addCounter which allows sending the "delta" instead of the aggregate counter val (delta is a better reporting setting because a regular counter is not ideal as it resets every restart of the registry).
Is there a way to make the reporter report counters as counters?

@oriy
Copy link

oriy commented Apr 14, 2022

I'll add to this that you have a specific function addCounter which allows sending the "delta" instead of the aggregate counter val (delta is a better reporting setting because a regular counter is not ideal as it resets every restart of the registry). Is there a way to make the reporter report counters as counters?

you can use a counter as class member and report it as gauge
חג שמח משה

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

3 participants