prometheus/config
Alex Greenbank 421a3c22ea
scrape: provide a fallback format (#15136)
scrape: Remove implicit fallback to the Prometheus text format

Remove implicit fallback to the Prometheus text format in case of invalid/missing Content-Type and fail the scrape instead. Add ability to specify a `fallback_scrape_protocol` in the scrape config.

---------

Signed-off-by: alexgreenbank <alex.greenbank@grafana.com>
Signed-off-by: Alex Greenbank <alex.greenbank@grafana.com>
Co-authored-by: Björn Rabenstein <beorn@grafana.com>
2024-10-18 17:12:31 +02:00
..
testdata scrape: provide a fallback format (#15136) 2024-10-18 17:12:31 +02:00
config.go scrape: provide a fallback format (#15136) 2024-10-18 17:12:31 +02:00
config_default_test.go Add configuration option for GOGC 2024-06-05 15:23:16 +02:00
config_test.go scrape: provide a fallback format (#15136) 2024-10-18 17:12:31 +02:00
config_windows_test.go Add configuration option for GOGC 2024-06-05 15:23:16 +02:00
reload.go autoreload: do not ignore errors 2024-09-03 11:37:14 +02:00
reload_test.go Use t.Tempdir 2024-09-03 11:37:29 +02:00