exporter_exporter icon indicating copy to clipboard operation
exporter_exporter copied to clipboard

Verify does not work with OpenMetrics

Open xonvanetta opened this issue 3 years ago • 2 comments

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.

https://github.com/prometheus/client_golang/issues/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"

xonvanetta avatar Jun 09 '22 10:06 xonvanetta

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.

tcolgate avatar Jun 09 '22 12:06 tcolgate

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

xonvanetta avatar Jun 09 '22 12:06 xonvanetta