prometheus/scrape
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 Include test CA text info (#14699) 2024-08-20 19:41:02 +02:00
clientprotobuf.go lint: Revamp our linting rules, mostly around doc comments 2024-08-22 17:36:11 +02:00
helpers_test.go Histogram CT Zero ingestion 2024-09-26 11:29:22 -03:00
manager.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
manager_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
metrics.go Scraping: add metric for symbol table size 2024-07-05 10:16:22 +01:00
scrape.go scrape: provide a fallback format (#15136) 2024-10-18 17:12:31 +02:00
scrape_test.go scrape: provide a fallback format (#15136) 2024-10-18 17:12:31 +02:00
target.go Remove no-default-scrape-port featureFlag 2024-09-25 10:13:19 -05:00
target_test.go Remove no-default-scrape-port featureFlag 2024-09-25 10:13:19 -05:00