mirror of
https://github.com/prometheus/prometheus
synced 2026-04-20 22:41:05 +08:00
Merge pull request #16155 from LukoJy3D/docs/migration/clarify_on_content_type_headers
docs(migration): clarify on content-type headers
This commit is contained in:
@@ -134,8 +134,15 @@ If a scrape target is not providing the correct Content-Type header the
|
||||
fallback protocol can be specified using the `fallback_scrape_protocol`
|
||||
parameter. See [Prometheus scrape_config documentation.](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config)
|
||||
|
||||
This is a breaking change as scrapes that may have succeeded with Prometheus v2
|
||||
may now fail if this fallback protocol is not specified.
|
||||
This is a **breaking change** as scrapes that may have succeeded with Prometheus v2
|
||||
may now fail if this fallback protocol is not specified. Make sure your scrape
|
||||
endpoints respond with one of the supported Content-type headers:
|
||||
|
||||
- `application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily;encoding=delimited`
|
||||
- `text/plain;version=0.0.4`
|
||||
- `text/plain;version=1.0.0`
|
||||
- `application/openmetrics-text;version=0.0.1`
|
||||
- `application/openmetrics-text;version=1.0.0`
|
||||
|
||||
## Miscellaneous
|
||||
|
||||
|
||||
Reference in New Issue
Block a user