build(deps): bump github.com/prometheus/common from 0.55.0 to 0.59.1

Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.55.0 to 0.59.1.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/common/compare/v0.55.0...v0.59.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2024-09-23 05:27:42 +00:00 committed by Tommaso Gragnato
parent 6d65a4b01e
commit 9764110af2
3 changed files with 6 additions and 5 deletions

2
go.mod
View File

@ -29,7 +29,7 @@ require (
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/common v0.59.1 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
golang.org/x/sync v0.8.0 // indirect

4
go.sum
View File

@ -51,8 +51,8 @@ github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zI
github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc=
github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8=
github.com/prometheus/common v0.59.1 h1:LXb1quJHWm1P6wq/U824uxYi4Sg0oGvNeUm1z5dJoX0=
github.com/prometheus/common v0.59.1/go.mod h1:GpWM7dewqmVYcd7SmRaiWVe9SSqjf0UrwnYnpEZNuT0=
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=

View File

@ -40,8 +40,9 @@ func TestMakePrometheusHandler(t *testing.T) {
t.Errorf("Handler returned wrong status code: got %v want %v", status, http.StatusOK)
}
if contentType := rr.Header().Get("Content-Type"); contentType != "text/plain; version=0.0.4; charset=utf-8; escaping=values" {
t.Errorf("Handler returned wrong content type: got %v want %v", contentType, "text/plain; version=0.0.4; charset=utf-8; escaping=values")
wanted := "text/plain; version=0.0.4; charset=utf-8; escaping=underscores"
if contentType := rr.Header().Get("Content-Type"); contentType != wanted {
t.Errorf("Handler returned wrong content type: got %v want %v", contentType, wanted)
}
if body := rr.Body.String(); body == "" {