Skip to content

Add OpenMetrics support #208

Description

@n-peugnet

Hi, I wanted to use prom2json to convert the output of promtool tsdb dump-openmetrics, but I get the following error:

error reading metrics: reading text format failed: text format parsing error in line 1: expected integer as timestamp, got "1739184970.553"

Here is the corresponding line:

go_gc_duration_seconds{instance="node5",job="file_discovery",quantile="0.0"} 0 1739184970.553

As I understand it, this comes from a breaking change between Prometheus exposition format and the OpenMetrics one that the timestamp must be in seconds.

Is parsing OpenMetrics format in the scope of prom2json?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions