Skip to content

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

@udhos

Description

@udhos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions