prometheus/scrape
Björn Rabenstein 54ce07e9a0
scrape: Fix accept header (#11542)
First of all, there was a typo: `encoding=delimited` was a left-over
in the `scrapeAcceptHeader`.

Second, the recently updated `version=1.0.0` prevents current versions
of client_golang to negotiate OpenMetrics, as they expect
`version=0.0.1` or no version at all. This commit adds, with lower
priority, the latter (no version at all) to the accept header.

Fixes #11540,

Signed-off-by: beorn7 <beorn@grafana.com>
2022-11-07 18:22:03 +01:00
..
testdata Re-generate test cert to fix test_windows test failures 2022-03-17 19:37:18 +01:00
helpers_test.go Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
manager_test.go scrape tests: undo EmptyLabels change 2022-09-09 13:34:49 +02:00
manager.go Enable protobuf negotiation only when histograms are enabled 2022-10-12 13:27:22 +05:30
scrape_test.go Enable protobuf negotiation only when histograms are enabled 2022-10-12 13:27:22 +05:30
scrape.go scrape: Fix accept header (#11542) 2022-11-07 18:22:03 +01:00
target_test.go Optimise relabeling by re-using memory (#11147) 2022-08-19 15:27:52 +05:30
target.go Optimise relabeling by re-using memory (#11147) 2022-08-19 15:27:52 +05:30