Skip to content

Support time stamps when exporting metrics #423

Closed
@Mikadore

Description

@Mikadore

Is your feature request related to a problem? Please describe.
In order to backfill metrics into prometheus, time stamps are needed. Currently, this crate doesn't provide a way to add time stamps when exporting using either ProtobufEncoder or TextEncoder

Describe the solution you'd like
Add a method to ProtobufEncoder and TextEncoder, perhaps something like encode_with_timestamp.

Describe alternatives you've considered
Hacking around manually with exported metrics. This is error prone, but also a feature that falls within the use case of this crate.

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