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