Skip to content

Tracking metrics over time with metrics-util? #546

@Marwes

Description

@Marwes

I was looking at updating the metrics dependency in https://github.com/ramn/metrics_cloudwatch and since the API has changed to allow for more performant metrics tracking I figured I'd try to use the types that metrics_util provides. Unfortunately I am either confused about how to use them, or they aren't quite compatible with how cloudwatch metrics works.

Basically I want to group metrics collected in either minute or second intervals and send them to cloudwatch that way, but when I look at how metrics_util is used for the prometheus exporter it looks like it only tracks metrics from the start of the program and doesn't take time into account at all? I am not familiar with prometheus but I assume that is handled by the consumer of the metric instead(?).

I could probably build a bespoke solution for cloudwatch that perhaps uses some bits from metrics_util but I figured I could ask if I am misunderstanding something or if it would be something that could be added to metrics_util.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-utilComponent: utility classes and helpers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions