Skip to content

How to export an absolute counter metric using the Count method? #321

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

Open
udhos opened this issue Apr 9, 2025 · 0 comments
Open

How to export an absolute counter metric using the Count method? #321

udhos opened this issue Apr 9, 2025 · 0 comments

Comments

@udhos
Copy link

udhos commented Apr 9, 2025

How to export an absolute counter metric using the Count method?

My Go application uses a third-party package that exposes an internal metric cache_hits that gets incremented whenever a cache hits occurs.
It behaves as an ever growing int64.

Timestamp Value
1 4
2 15
3 101
4 107

For timestamp 2, should I Count() the metric as its absolute value or as its delta from timestamp 1 ?

Count("cache_hits", 15, tags, 1) // absolute at 2

or

Count("cache_hits", 11, tags, 1) // delta from 1 to 2
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

1 participant