Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Verify does not work with OpenMetrics #84

Open
xonvanetta opened this issue Jun 9, 2022 · 2 comments
Open

Verify does not work with OpenMetrics #84

xonvanetta opened this issue Jun 9, 2022 · 2 comments

Comments

@xonvanetta
Copy link

Wanted to make a PR but it seems like there is no solution near.
Did not find a parser for OpenMetrics so could not create a PR here.

prometheus/client_golang#829

Workaround for now is to skip verify:

modules:
  mimir:
    method: http
    http:
      verify: false
      port: 8080

Error code from exporter_exporter is:
ERRO[0003] Verification for module 'mimir' failed: Failed to decode metrics from proxied server: text format parsing error in line 89: unknown metric type "unknown"

@tcolgate
Copy link
Collaborator

tcolgate commented Jun 9, 2022

Since exemplars require openmetrics, this is a bigger deal than it sounds. I've a feeling that there is a parser in the prom common libraries somewhere. I'll take a look.

@xonvanetta
Copy link
Author

I have found this one
https://github.com/prometheus/prometheus/blob/867d3bd78f514ffffcfd5da751cb2bd84c6aba72/model/textparse/openmetricsparse.go

But like you said its pretty big and what I found it still experimental

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants