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

The Content-Type of SpringBoot 2.5.6 version '/actuator/prometheus' route has become 'application/openmetrics-text' #28585

Closed
blinkfox opened this issue Nov 9, 2021 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@blinkfox
Copy link

blinkfox commented Nov 9, 2021

I used the spring-boot-starter-actuator jar in my project. After I upgraded the SpringBoot version from 2.5.5 to 2.5.6, when I visited the address of /actuator/prometheus through a browser, I found This address will become the form of the downloaded file (actually Content-Type is application/openmetrics-text) instead of the previous text/plain.

I carefully compared and debugged the related code, and found that the order of the two enumeration instances was adjusted in this submission (Fix broken content negotiation for Prometheus with OpenMetrics).

I think these two orders should be changed back to the previous order.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 9, 2021
@wilkinsona
Copy link
Member

Thanks for the analysis. This is a duplicate of #28446.

@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants