Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add OpenMetrics support #208

Open
n-peugnet opened this issue Feb 10, 2025 · 2 comments
Open

Add OpenMetrics support #208

n-peugnet opened this issue Feb 10, 2025 · 2 comments

Comments

@n-peugnet
Copy link

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?

@n-peugnet
Copy link
Author

OK, so from what I understand, this is currently blocked by prometheus/common#669.

@beorn7 beorn7 changed the title Cannot parse OpenMetrics timestamp Add OpenMetrics support Feb 11, 2025
@beorn7
Copy link
Member

beorn7 commented Feb 11, 2025

Yes, sounds about right.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants