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

chore(server): set Content-Type header on Prom metrics endpoint #1651

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

sbruens
Copy link
Contributor

@sbruens sbruens commented Mar 4, 2025

This will unblock upgrading to Prometheus v3.

"Prometheus v3 is more strict concerning the Content-Type header received when scraping. Prometheus v2 would default to the standard Prometheus text protocol if the target being scraped did not specify a Content-Type header or if the header was unparsable or unrecognised. This could lead to incorrect data being parsed in the scrape. Prometheus v3 will now fail the scrape in such cases." See https://prometheus.io/docs/prometheus/latest/migration/#scrape-protocols.

@sbruens sbruens requested a review from fortuna as a code owner March 4, 2025 19:36
@sbruens sbruens changed the title chore(server): set Content-Type header chore(server): set Content-Type header on Prom metrics endpoint Mar 4, 2025
@sbruens sbruens merged commit 9013fea into master Mar 10, 2025
12 of 13 checks passed
@sbruens sbruens deleted the sbruens/prom3 branch March 10, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants