-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Prometheus exporter does not support openmetrics-text 1.0.0 #18913
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The |
Thanks, do you think it would worth adding tests for this on OTel side? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@Aneurysm9 Do you know anyone we can ping on Prometheus side about this? |
@gouthamve do you know if there is any movement on the Prometheus end for this? What impact will folding OpenMetrics into Prometheus have on this? |
opened: prometheus/prometheus#12411 |
Hi @jonatan-ivanov, this should be fixed now. Can we close this? |
Thanks! I checked From my/Micrometer's perspective, I think this issue can be closed. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
exporter/prometheus
What happened?
Description
It seems the Prometheus exporter does not support
openmetrics-text 1.0.0
, it only supportsopenmetrics-text 0.0.1
.Steps to Reproduce
Scrape the
/metrics
endpoint and requestopenmetrics-text 1.0.0
:Expected Result
Result in OpenMetrics format, also the content-type should be:
Actual Result
Result in Prometheus plaintext format, the content-type says the same:
Collector version
otel/opentelemetry-collector-contrib:cdf47846a7ff
Environment information
Environment
OS: MacOS 13.2.1
OpenTelemetry Collector configuration
Log output
No response
Additional context
If I scrape the
/metrics
endpoint and requestopenmetrics-text 0.0.1
, I get the response in the OpenMetrics format:will result in
The problem is that
0.0.1
should not be used, only1.0.0
.According to the OpenMetrics specs:
Also the Prometheus server uses 1.0.0 for scraping: prometheus/prometheus#9430
The text was updated successfully, but these errors were encountered: