Merge pull request #13402 from prometheus/cut-2.49.1

Cut 2.49.1 with scrape q= bugfix.
This commit is contained in:
Bartlomiej Plotka 2024-01-15 17:42:57 +01:00 committed by GitHub
commit 9947cb2c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
# Changelog # Changelog
## 2.49.1 / 2024-01-15
* [BUGFIX] TSDB: Fixed a wrong `q=` value in scrape accept header #13313
## 2.49.0 / 2024-01-15 ## 2.49.0 / 2024-01-15
* [FEATURE] Promtool: Add `--run` flag promtool test rules command. #12206 * [FEATURE] Promtool: Add `--run` flag promtool test rules command. #12206

View file

@ -1 +1 @@
2.49.0 2.49.1

View file

@ -672,7 +672,7 @@ func acceptHeader(sps []config.ScrapeProtocol) string {
weight-- weight--
} }
// Default match anything. // Default match anything.
vals = append(vals, fmt.Sprintf("*/*;q=%d", weight)) vals = append(vals, fmt.Sprintf("*/*;q=0.%d", weight))
return strings.Join(vals, ",") return strings.Join(vals, ",")
} }