Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testutil compareMetricFamilies: make less error-prone #1424

Merged
merged 4 commits into from
May 15, 2024

Conversation

leonnicolas
Copy link
Contributor

The functions GatherAndCompare, ScrapeAndCompare and others that use
compareMetricFamilies under the hood can return no error if
metricNames includes none of the names found in the scraped/gathered
results. To avoid false Positves (an error being the negative case), we
can return an error if there is is at least one name in metricNames
that is not in the filtered results.

Fixes: #1351

Signed-off-by: leonnicolas [email protected]

@leonnicolas leonnicolas force-pushed the testutil-compare-metrics-family branch from 0381a25 to 7163ac9 Compare January 4, 2024 11:31
@@ -254,6 +254,9 @@ func compareMetricFamilies(got, expected []*dto.MetricFamily, metricNames ...str
if metricNames != nil {
got = filterMetrics(got, metricNames)
expected = filterMetrics(expected, metricNames)
if len(metricNames) > len(got) {
Copy link
Contributor Author

@leonnicolas leonnicolas Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking to use something like slices, to find the metricName that is not present in got. Would the additional package (slices is not yet in the std lib in go 1.19) and extra complexity of this function be outweighed by the improved usability? You would be able to see the misspelled or missing metricName in the error text.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I would either wait for older versions than 1.19 to be dropped from support or quickly write a small function finding those. I don't think at the end using std lib slices extension is that needed. It might be just two loops. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a commit. Finding the difference in 2 slices seems so easy but always requires so much code.

I added the "resulting" slice to the error with %v. I wonder if we should somehow allow callers of compareMetricFamilies to extract the missing metric Names? I guess that would require an API change :(
It is just awkward to test if the "correct" metric names are in the error message.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any feedback @bwplotka ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why exact metric names would be useful? Isn't it enough to return error?

compareMetricFamilies has a clear semantics - we are just ensuring the error is more readable and comparison true.

I think small code complexity is fine here - proposed below what can be done.

Copy link

@pckushan pckushan Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it better to check the actual metrics names are included in the given metricsNames? The reason is if we have a test table including several tests and say it has 3 metics but sometimes it may trigger only two for a specific test scenario. In that execution we check this comparison passing all three metrics names but with this change it breaks the flow from this point if len(metricNames) > len(got) {
cc: @bwplotka @leonnicolas

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if len(metricNames) < len(got) it is ok to give an error, but if other way around need to check whether got names are matched with given names.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks Mimir tests when upgrading to v1.20.4, although I'm not sure exactly why yet.

Copy link

@aknuds1 aknuds1 Oct 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I can see it breaks Mimir tests because they expect to be able to compare with a greater metrics set than what is present. After this change, that results in an error. Maybe it makes sense? Not quite sure yet.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks mongodb_exporter as well, we test there if metric doesn't appear

@leonnicolas
Copy link
Contributor Author

According to Contributing.md I have to address one of the maintainers: @bwplotka

I also tried using table tests as you suggested in #1351, but I found it a bit messy for the test cases where the scraped server is not running or returns a bad request, so I left those tests as there where.

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, added suggestions, otherwise LGTM!

if len(metricNames) > len(got) {
h := make(map[string]struct{})
for _, mf := range got {
if mf == nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got element can be really nil here?

prometheus/testutil/testutil.go Outdated Show resolved Hide resolved
@@ -254,6 +254,9 @@ func compareMetricFamilies(got, expected []*dto.MetricFamily, metricNames ...str
if metricNames != nil {
got = filterMetrics(got, metricNames)
expected = filterMetrics(expected, metricNames)
if len(metricNames) > len(got) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why exact metric names would be useful? Isn't it enough to return error?

compareMetricFamilies has a clear semantics - we are just ensuring the error is more readable and comparison true.

I think small code complexity is fine here - proposed below what can be done.

@@ -332,27 +332,46 @@ Diff:
}

func TestScrapeAndCompare(t *testing.T) {
const expected = `
scenarios := map[string]struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

prometheus/testutil/testutil_test.go Outdated Show resolved Hide resolved
@leonnicolas leonnicolas force-pushed the testutil-compare-metrics-family branch 2 times, most recently from 847a7bb to 437f988 Compare February 7, 2024 18:01
@leonnicolas
Copy link
Contributor Author

@bwplotka thanks for your review. I hope I addressed all you comments

@leonnicolas
Copy link
Contributor Author

@bwplotka anything missing from my side to move on with this PR?

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks nice, just one comment, otherwise LGTM

Comment on lines 338 to 339
// expectedErrPrefix if empty, means no fail is expected for the comparison.
expectedErrPrefix string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why prefix and not exact error? Would be nice to test that missing metric semantics.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

leonnicolas and others added 4 commits May 15, 2024 11:12
The functions `GatherAndCompare`, `ScrapeAndCompare` and others that use
`compareMetricFamilies` under the hood can return no error if
`metricNames` includes none of the names found in the scraped/gathered
results. To avoid false Positves (an error being the negative case), we
can return an error if there is is at least one name in `metricNames`
that is not in the filtered results.

Fixes: prometheus#1351

Signed-off-by: leonnicolas <[email protected]>
In to see which metric names are missing, we can add them to the error
message.

Signed-off-by: leonnicolas <[email protected]>
- remove if nil check
- use two nested loops instead of map
- use new function `hasMetricByName` for readability

Co-authored-by: Bartlomiej Plotka <[email protected]>
Signed-off-by: leonnicolas <[email protected]>
Before we would only compare the error prefix in `TestScrapeAndCompare`.

Signed-off-by: leonnicolas <[email protected]>
@leonnicolas leonnicolas force-pushed the testutil-compare-metrics-family branch from 437f988 to 0e3f5c6 Compare May 15, 2024 09:12
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ❤️

@bwplotka bwplotka merged commit c7c7509 into prometheus:main May 15, 2024
9 checks passed
swar8080 pushed a commit to swar8080/client_golang that referenced this pull request Jun 29, 2024
* testutil compareMetricFamilies: make less error-prone

The functions `GatherAndCompare`, `ScrapeAndCompare` and others that use
`compareMetricFamilies` under the hood can return no error if
`metricNames` includes none of the names found in the scraped/gathered
results. To avoid false Positves (an error being the negative case), we
can return an error if there is is at least one name in `metricNames`
that is not in the filtered results.

Fixes: prometheus#1351

Signed-off-by: leonnicolas <[email protected]>

* Add missing metricNames to error

In to see which metric names are missing, we can add them to the error
message.

Signed-off-by: leonnicolas <[email protected]>

* Apply suggestions from code review

- remove if nil check
- use two nested loops instead of map
- use new function `hasMetricByName` for readability

Co-authored-by: Bartlomiej Plotka <[email protected]>
Signed-off-by: leonnicolas <[email protected]>

* prometheus/testutil/testutil_test.go: compare complete error

Before we would only compare the error prefix in `TestScrapeAndCompare`.

Signed-off-by: leonnicolas <[email protected]>

---------

Signed-off-by: leonnicolas <[email protected]>
Signed-off-by: leonnicolas <[email protected]>
Co-authored-by: Bartlomiej Plotka <[email protected]>
Signed-off-by: Steven Swartz <[email protected]>
yurishkuro referenced this pull request in jaegertracing/jaeger Aug 14, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/jaegertracing/jaeger).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiY2hhbmdlbG9nOmRlcGVuZGVuY2llcyJdfQ==-->

Signed-off-by: Mend Renovate <[email protected]>
jooola referenced this pull request in hetznercloud/hcloud-cloud-controller-manager Aug 15, 2024
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/hetznercloud/hcloud-cloud-controller-manager).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMTIuMCIsInVwZGF0ZWRJblZlciI6IjM4LjI2LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
dmathieu referenced this pull request in open-telemetry/opentelemetry-go-contrib Aug 19, 2024
….0 (#6011)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-go-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiU2tpcCBDaGFuZ2Vsb2ciLCJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
dmathieu referenced this pull request in open-telemetry/opentelemetry-go Aug 19, 2024
….0 (#5713)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-go).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiU2tpcCBDaGFuZ2Vsb2ciLCJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
codeboten referenced this pull request in open-telemetry/opentelemetry-collector Aug 20, 2024
….0 (#10918)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Co-authored-by: Yang Song <[email protected]>
mx-psi referenced this pull request in open-telemetry/opentelemetry-collector-contrib Aug 21, 2024
….1 (#34775)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.1`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.1)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.20.0...v1.20.1)

- \[BUGFIX] process-collector: Fixed unregistered descriptor error when
using process collector with PedanticRegistry on Linux machines.
[#&#8203;1587](https://togithub.com/prometheus/client_golang/issues/1587)

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Co-authored-by: Yang Song <[email protected]>
inteon added a commit to inteon/cert-manager that referenced this pull request Aug 23, 2024
…sure the metric with the provided metricName is found.

We were depending on it not erroring. This PR removes that assumption and instead makes sure the metric does no longer existi using the CollectAndCount function.

Signed-off-by: Tim Ramlot <[email protected]>
JaredTan95 referenced this pull request in JaredTan95/jaeger Aug 28, 2024
…racing#5849)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/jaegertracing/jaeger).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiY2hhbmdlbG9nOmRlcGVuZGVuY2llcyJdfQ==-->

Signed-off-by: Mend Renovate <[email protected]>
Signed-off-by: Jared Tan <[email protected]>
krajorama added a commit to grafana/mimir that referenced this pull request Aug 30, 2024
Follow-up to prometheus/client_golang#1424

Signed-off-by: György Krajcsovits <[email protected]>
krajorama added a commit to grafana/mimir that referenced this pull request Aug 30, 2024
Follow up to prometheus/client_golang#1424

Signed-off-by: György Krajcsovits <[email protected]>
krajorama added a commit to grafana/mimir that referenced this pull request Aug 30, 2024
Follow-up to prometheus/client_golang#1424

Signed-off-by: György Krajcsovits <[email protected]>
krajorama added a commit to grafana/mimir that referenced this pull request Aug 30, 2024
krajorama added a commit to grafana/mimir that referenced this pull request Aug 30, 2024
Have a function that can emulate the old GatherAndCompare

Follow up to prometheus/client_golang#1424

Signed-off-by: György Krajcsovits <[email protected]>
renovate bot referenced this pull request in open-feature/flagd Sep 5, 2024
….3 (#1384)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://redirect.github.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.3`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.3)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.2...v1.20.3)

- \[BUGFIX] histograms: Fix possible data race when appending exemplars.
[#&#8203;1608](https://redirect.github.com/prometheus/client_golang/issues/1608)

###
[`v1.20.2`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.2)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.1...v1.20.2)

- \[BUGFIX] promhttp: Unset Content-Encoding header when data is
uncompressed.
[#&#8203;1596](https://redirect.github.com/prometheus/client_golang/issues/1596)

###
[`v1.20.1`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.1)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.20.0...v1.20.1)

- \[BUGFIX] process-collector: Fixed unregistered descriptor error when
using process collector with PedanticRegistry on Linux machines.
[#&#8203;1587](https://redirect.github.com/prometheus/client_golang/issues/1587)

###
[`v1.20.0`](https://redirect.github.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://redirect.github.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&#8203;1577](https://redirect.github.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&#8203;1559](https://redirect.github.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&#8203;1568](https://redirect.github.com/prometheus/client_golang/issues/1568)
[#&#8203;1578](https://redirect.github.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&#8203;1503](https://redirect.github.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&#8203;1471](https://redirect.github.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&#8203;1496](https://redirect.github.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&#8203;1544](https://redirect.github.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&#8203;1537](https://redirect.github.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&#8203;1555](https://redirect.github.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&#8203;1472](https://redirect.github.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&#8203;1455](https://redirect.github.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&#8203;1480](https://redirect.github.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&#8203;1424](https://redirect.github.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&#8203;foehammer127](https://redirect.github.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://redirect.github.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://redirect.github.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://redirect.github.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://redirect.github.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://redirect.github.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://redirect.github.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://redirect.github.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://redirect.github.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://redirect.github.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://redirect.github.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&#8203;bboreham](https://redirect.github.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://redirect.github.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://redirect.github.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&#8203;igor-drozdov](https://redirect.github.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://redirect.github.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://redirect.github.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://redirect.github.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://redirect.github.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://redirect.github.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&#8203;majolo](https://redirect.github.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://redirect.github.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://redirect.github.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&#8203;ArthurSens](https://redirect.github.com/ArthurSens)
in
[https://github.com/prometheus/client_golang/pull/1389](https://redirect.github.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://redirect.github.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&#8203;oftenoccur](https://redirect.github.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://redirect.github.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://redirect.github.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://redirect.github.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&#8203;dongjiang1989](https://redirect.github.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://redirect.github.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://redirect.github.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://redirect.github.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://redirect.github.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://redirect.github.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://redirect.github.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://redirect.github.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&#8203;lilijreey](https://redirect.github.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://redirect.github.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://redirect.github.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&#8203;Ishani217](https://redirect.github.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://redirect.github.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&#8203;jcass8695](https://redirect.github.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://redirect.github.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&#8203;leonnicolas](https://redirect.github.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://redirect.github.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&#8203;lilijreey](https://redirect.github.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://redirect.github.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&#8203;fatsheep9146](https://redirect.github.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://redirect.github.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://redirect.github.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://redirect.github.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://redirect.github.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://redirect.github.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://redirect.github.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://redirect.github.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&#8203;1518](https://redirect.github.com/prometheus/client_golang/issues/1518)
by [@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://redirect.github.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://redirect.github.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://redirect.github.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://redirect.github.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&#8203;SachinSahu431](https://redirect.github.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://redirect.github.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&#8203;mrueg](https://redirect.github.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://redirect.github.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://redirect.github.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://redirect.github.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://redirect.github.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1541](https://redirect.github.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://redirect.github.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://redirect.github.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&#8203;abbyssoul](https://redirect.github.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://redirect.github.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&#8203;swar8080](https://redirect.github.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://redirect.github.com/prometheus/client_golang/pull/1537)
- Update README.md by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1556](https://redirect.github.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://redirect.github.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://redirect.github.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://redirect.github.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://redirect.github.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by
[@&#8203;SuperQ](https://redirect.github.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1562](https://redirect.github.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&#8203;huwcbjones](https://redirect.github.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://redirect.github.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://redirect.github.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&#8203;ArthurSens](https://redirect.github.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://redirect.github.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&#8203;dependabot](https://redirect.github.com/dependabot)
in
[https://github.com/prometheus/client_golang/pull/1565](https://redirect.github.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://redirect.github.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://redirect.github.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://redirect.github.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://redirect.github.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://redirect.github.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://redirect.github.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://redirect.github.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://redirect.github.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://redirect.github.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&#8203;marcosnils](https://redirect.github.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://redirect.github.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://redirect.github.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&#8203;vesari](https://redirect.github.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://redirect.github.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://redirect.github.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://redirect.github.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://redirect.github.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&#8203;bwplotka](https://redirect.github.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://redirect.github.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://redirect.github.com/prometheus/client_golang/pull/1455)l/1455
* @&#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://redirect.github.com/prometheus/client_golang/pull/1476)l/1476
* @&#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://redirect.github.com/prometheus/client_golang/pull/1480)l/1480
* @&#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://redirect.github.com/prometheus/client_golang/pull/1492)l/1492
* @&#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://redirect.github.com/prometheus/client_golang/pull/1497)l/1497
* @&#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://redirect.github.com/prometheus/client_golang/pull/1499)l/1499
* @&#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://redirect.github.com/prometheus/client_golang/pull/1511)l/1511
* @&#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://redirect.github.com/prometheus/client_golang/pull/1444)l/1444
* @&#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://redirect.github.com/prometheus/client_golang/pull/1503)l/1503
* @&#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://redirect.github.com/prometheus/client_golang/pull/1424)l/1424
* @&#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://redirect.github.com/prometheus/client_golang/pull/1471)l/1471
* @&#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://redirect.github.com/prometheus/client_golang/pull/1544)l/1544
* @&#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://redirect.github.com/prometheus/client_golang/pull/1537)l/1537
* @&#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://redirect.github.com/prometheus/client_golang/pull/1555)l/1555
* @&#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://redirect.github.com/prometheus/client_golang/pull/1534)l/1534
* @&#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://redirect.github.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
krajorama added a commit to grafana/mimir that referenced this pull request Sep 6, 2024
Have a function that can emulate the old GatherAndCompare

Follow up to prometheus/client_golang#1424

Signed-off-by: György Krajcsovits <[email protected]>
f7o referenced this pull request in f7o/opentelemetry-collector-contrib Sep 12, 2024
….1 (open-telemetry#34775)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/client_golang](https://togithub.com/prometheus/client_golang)
| `v1.19.1` -> `v1.20.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fclient_golang/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fclient_golang/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fclient_golang/v1.19.1/v1.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/client_golang
(github.com/prometheus/client_golang)</summary>

###
[`v1.20.1`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.1)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.20.0...v1.20.1)

- \[BUGFIX] process-collector: Fixed unregistered descriptor error when
using process collector with PedanticRegistry on Linux machines.
[#&open-telemetry#8203;1587](https://togithub.com/prometheus/client_golang/issues/1587)

###
[`v1.20.0`](https://togithub.com/prometheus/client_golang/releases/tag/v1.20.0)

[Compare
Source](https://togithub.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)

Thanks everyone for contributions!

:warning: In this release we remove one (broken anyway, given Go runtime
changes) metric and add three new (representing GOGC, GOMEMLIMIT and
GOMAXPROCS flags) to the default `collectors.NewGoCollector()`
collector. Given its popular usage, expect your binary to expose two
additional metric.

#### Changes

- \[CHANGE] :warning: go-collector: Remove `go_memstat_lookups_total`
metric which was always 0; Go runtime stopped sharing pointer lookup
statistics.
[#&open-telemetry#8203;1577](https://togithub.com/prometheus/client_golang/issues/1577)
- \[FEATURE] ⚠️ go-collector: Add 3 default metrics:
`go_gc_gogc_percent`, `go_gc_gomemlimit_bytes` and
`go_sched_gomaxprocs_threads` as those are recommended by the Go team.
[#&open-telemetry#8203;1559](https://togithub.com/prometheus/client_golang/issues/1559)
- \[FEATURE] go-collector: Add more information to all metrics' HELP
e.g. the exact `runtime/metrics` sourcing each metric (if relevant).
[#&open-telemetry#8203;1568](https://togithub.com/prometheus/client_golang/issues/1568)
[#&open-telemetry#8203;1578](https://togithub.com/prometheus/client_golang/issues/1578)
- \[FEATURE] testutil: Add CollectAndFormat method.
[#&open-telemetry#8203;1503](https://togithub.com/prometheus/client_golang/issues/1503)
- \[FEATURE] histograms: Add support for exemplars in native histograms.
[#&open-telemetry#8203;1471](https://togithub.com/prometheus/client_golang/issues/1471)
- \[FEATURE] promhttp: Add experimental support for `zstd` on scrape,
controlled by the request `Accept-Encoding` header.
[#&open-telemetry#8203;1496](https://togithub.com/prometheus/client_golang/issues/1496)
- \[FEATURE] api/v1: Add `WithLimit` parameter to all API methods that
supports it.
[#&open-telemetry#8203;1544](https://togithub.com/prometheus/client_golang/issues/1544)
- \[FEATURE] prometheus: Add support for created timestamps in constant
histograms and constant summaries.
[#&open-telemetry#8203;1537](https://togithub.com/prometheus/client_golang/issues/1537)
- \[FEATURE] process-collectors: Add network usage metrics:
`process_network_receive_bytes_total` and
`process_network_transmit_bytes_total`.
[#&open-telemetry#8203;1555](https://togithub.com/prometheus/client_golang/issues/1555)
- \[FEATURE] promlint: Add duplicated metric lint rule.
[#&open-telemetry#8203;1472](https://togithub.com/prometheus/client_golang/issues/1472)
- \[BUGFIX] promlint: Relax metric type in name linter rule.
[#&open-telemetry#8203;1455](https://togithub.com/prometheus/client_golang/issues/1455)
-   \[BUGFIX] promhttp: Make sure server
instrumentation wrapping supports new and future extra responseWriter
methods.
[#&open-telemetry#8203;1480](https://togithub.com/prometheus/client_golang/issues/1480)
- \[BUGFIX] testutil: Functions using compareMetricFamilies are now
failing if filtered metricNames are not in the input.
[#&open-telemetry#8203;1424](https://togithub.com/prometheus/client_golang/issues/1424)

<details>
  <summary>All commits</summary>

- feat(prometheus/testutil/promlint/validations): refine lintMetricType…
by [@&open-telemetry#8203;foehammer127](https://togithub.com/foehammer127) in
[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/examples/middleware by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1457](https://togithub.com/prometheus/client_golang/pull/1457)
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1458](https://togithub.com/prometheus/client_golang/pull/1458)
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1459](https://togithub.com/prometheus/client_golang/pull/1459)
- Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.0 in
/tutorial/whatsup by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1461](https://togithub.com/prometheus/client_golang/pull/1461)
- Merge Release 1.19 back to main by
[@&open-telemetry#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1462](https://togithub.com/prometheus/client_golang/pull/1462)
- Bump the github-actions group with 2 updates by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1456](https://togithub.com/prometheus/client_golang/pull/1456)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1466](https://togithub.com/prometheus/client_golang/pull/1466)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/examples/middleware by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1467](https://togithub.com/prometheus/client_golang/pull/1467)
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in
/tutorial/whatsup by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1469](https://togithub.com/prometheus/client_golang/pull/1469)
- Add LintDuplicateMetric to promlint by
[@&open-telemetry#8203;bboreham](https://togithub.com/bboreham) in
[https://github.com/prometheus/client_golang/pull/1472](https://togithub.com/prometheus/client_golang/pull/1472)
- Auto-update Go Collector Metrics for new Go versions by
[@&open-telemetry#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)
- Implement Unwrap() for responseWriterDelegator by
[@&open-telemetry#8203;igor-drozdov](https://togithub.com/igor-drozdov) in
[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1485](https://togithub.com/prometheus/client_golang/pull/1485)
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1486](https://togithub.com/prometheus/client_golang/pull/1486)
- ci: Remove hardcoded supported Go versions from go.yml by
[@&open-telemetry#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1489](https://togithub.com/prometheus/client_golang/pull/1489)
- feat: metrics generation workflow by
[@&open-telemetry#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1481](https://togithub.com/prometheus/client_golang/pull/1481)
- fix: remove redundant go module in middleware example by
[@&open-telemetry#8203;majolo](https://togithub.com/majolo) in
[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)
- chore: Refactor how base metrics are added to Sched metrics by
[@&open-telemetry#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1483](https://togithub.com/prometheus/client_golang/pull/1483)
- gocollector: Add regex option to allow collection of debug runtime
metrics by [@&open-telemetry#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1389](https://togithub.com/prometheus/client_golang/pull/1389)
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1498](https://togithub.com/prometheus/client_golang/pull/1498)
- chore: fix function name in comment by
[@&open-telemetry#8203;oftenoccur](https://togithub.com/oftenoccur) in
[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)
- build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in
/tutorial/whatsup by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1501](https://togithub.com/prometheus/client_golang/pull/1501)
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1502](https://togithub.com/prometheus/client_golang/pull/1502)
- feat(dependency): replace go-spew package by
[@&open-telemetry#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0
by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1504](https://togithub.com/prometheus/client_golang/pull/1504)
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1505](https://togithub.com/prometheus/client_golang/pull/1505)
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1506](https://togithub.com/prometheus/client_golang/pull/1506)
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1507](https://togithub.com/prometheus/client_golang/pull/1507)
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to
0.6.1 by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1508](https://togithub.com/prometheus/client_golang/pull/1508)
- build(deps): bump github.com/prometheus/common from 0.48.0 to 0.53.0
in /tutorial/whatsup by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1509](https://togithub.com/prometheus/client_golang/pull/1509)
- improved code more clean by
[@&open-telemetry#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)
- build(deps): bump the github-actions group with 3 updates by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1510](https://togithub.com/prometheus/client_golang/pull/1510)
- \[CI]: Add Concurrency Grouping to GitHub Workflows by
[@&open-telemetry#8203;Ishani217](https://togithub.com/Ishani217) in
[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)
- Add CollectAndFormat to testutil, allowing caller to assert as they
want to on the exported metric by
[@&open-telemetry#8203;jcass8695](https://togithub.com/jcass8695) in
[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)
- testutil compareMetricFamilies: make less error-prone by
[@&open-telemetry#8203;leonnicolas](https://togithub.com/leonnicolas) in
[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)
- improved code more clean use time.IsZero() replace t = time.Time{} by
[@&open-telemetry#8203;lilijreey](https://togithub.com/lilijreey) in
[https://github.com/prometheus/client_golang/pull/1515](https://togithub.com/prometheus/client_golang/pull/1515)
- add native histogram exemplar support by
[@&open-telemetry#8203;fatsheep9146](https://togithub.com/fatsheep9146) in
[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1514](https://togithub.com/prometheus/client_golang/pull/1514)
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1523](https://togithub.com/prometheus/client_golang/pull/1523)
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1522](https://togithub.com/prometheus/client_golang/pull/1522)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1524](https://togithub.com/prometheus/client_golang/pull/1524)
- Add PR template for changelog automation by
[@&open-telemetry#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1517](https://togithub.com/prometheus/client_golang/pull/1517)
- Auto label PRs by
[@&open-telemetry#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1518](https://togithub.com/prometheus/client_golang/pull/1518)
- Fix: Auto label PRs
[#&open-telemetry#8203;1518](https://togithub.com/prometheus/client_golang/issues/1518)
by [@&open-telemetry#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1525](https://togithub.com/prometheus/client_golang/pull/1525)
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1
by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1527](https://togithub.com/prometheus/client_golang/pull/1527)
- ci: Group all changelog-related CI jobs into single one by
[@&open-telemetry#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1526](https://togithub.com/prometheus/client_golang/pull/1526)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1530](https://togithub.com/prometheus/client_golang/pull/1530)
- Remove synchronize trigger from changelog workflow by
[@&open-telemetry#8203;SachinSahu431](https://togithub.com/SachinSahu431) in
[https://github.com/prometheus/client_golang/pull/1532](https://togithub.com/prometheus/client_golang/pull/1532)
- feat: Support zstd compression by
[@&open-telemetry#8203;mrueg](https://togithub.com/mrueg) in
[https://github.com/prometheus/client_golang/pull/1496](https://togithub.com/prometheus/client_golang/pull/1496)
- Fix golangci-lint config by
[@&open-telemetry#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1536](https://togithub.com/prometheus/client_golang/pull/1536)
- build(deps): bump github.com/prometheus/client_golang from 1.19.0 to
1.19.1 in /tutorial/whatsup by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1529](https://togithub.com/prometheus/client_golang/pull/1529)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1531](https://togithub.com/prometheus/client_golang/pull/1531)
- Cleanup NOTICE file by [@&open-telemetry#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1541](https://togithub.com/prometheus/client_golang/pull/1541)
- Remove inlined upstream code by
[@&open-telemetry#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/client_golang/pull/1539](https://togithub.com/prometheus/client_golang/pull/1539)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1545](https://togithub.com/prometheus/client_golang/pull/1545)
- client: Add Option to provide limit query param for APIs that support
it by [@&open-telemetry#8203;abbyssoul](https://togithub.com/abbyssoul) in
[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)
- Allow creating constant histogram and summary metrics with a created
timestamp by [@&open-telemetry#8203;swar8080](https://togithub.com/swar8080) in
[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)
- Update README.md by [@&open-telemetry#8203;bwplotka](https://togithub.com/bwplotka)
in
[https://github.com/prometheus/client_golang/pull/1556](https://togithub.com/prometheus/client_golang/pull/1556)
- Temporarily remove required CI job for changelog. by
[@&open-telemetry#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1560](https://togithub.com/prometheus/client_golang/pull/1560)
- build(deps): bump github.com/prometheus/common from 0.53.0 to 0.55.0
in /tutorial/whatsup by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1549](https://togithub.com/prometheus/client_golang/pull/1549)
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1552](https://togithub.com/prometheus/client_golang/pull/1552)
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9
by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1553](https://togithub.com/prometheus/client_golang/pull/1553)
- fix: Update Go tests by [@&open-telemetry#8203;SuperQ](https://togithub.com/SuperQ)
in
[https://github.com/prometheus/client_golang/pull/1562](https://togithub.com/prometheus/client_golang/pull/1562)
- process_collector: collect received/transmitted bytes by
[@&open-telemetry#8203;huwcbjones](https://togithub.com/huwcbjones) in
[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1561](https://togithub.com/prometheus/client_golang/pull/1561)
- chore: Remove half-implemented changelog automation by
[@&open-telemetry#8203;ArthurSens](https://togithub.com/ArthurSens) in
[https://github.com/prometheus/client_golang/pull/1564](https://togithub.com/prometheus/client_golang/pull/1564)
- build(deps): bump the github-actions group across 1 directory with 3
updates by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1565](https://togithub.com/prometheus/client_golang/pull/1565)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1563](https://togithub.com/prometheus/client_golang/pull/1563)
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1551](https://togithub.com/prometheus/client_golang/pull/1551)
- deps: Updated to prometheus/common to 0.55 by
[@&open-telemetry#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1566](https://togithub.com/prometheus/client_golang/pull/1566)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1567](https://togithub.com/prometheus/client_golang/pull/1567)
- tutorials: Renamed tutorial -> tutorials for consistency + fixed
tutorial code. by [@&open-telemetry#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1569](https://togithub.com/prometheus/client_golang/pull/1569)
- go collector: add default metrics acceptance tests; adding more
context to HELP by [@&open-telemetry#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1568](https://togithub.com/prometheus/client_golang/pull/1568)
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1570](https://togithub.com/prometheus/client_golang/pull/1570)
- build(deps): bump the github-actions group with 3 updates by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/prometheus/client_golang/pull/1571](https://togithub.com/prometheus/client_golang/pull/1571)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1572](https://togithub.com/prometheus/client_golang/pull/1572)
- ci: daggerize test and lint pipelines by
[@&open-telemetry#8203;marcosnils](https://togithub.com/marcosnils) in
[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1573](https://togithub.com/prometheus/client_golang/pull/1573)
- Add default Go runtime metrics for /gc/gogc:percent,
/gc/gomemlimit:bytes, /sched/gomaxprocs:threads by
[@&open-telemetry#8203;vesari](https://togithub.com/vesari) in
[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/client_golang/pull/1576](https://togithub.com/prometheus/client_golang/pull/1576)
- Remove go_memstat_lookups_total; added runtime/metrics calculation to
memstat metric's help. by
[@&open-telemetry#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1577](https://togithub.com/prometheus/client_golang/pull/1577)
- gocollector: Attach original runtime/metrics metric name to help. by
[@&open-telemetry#8203;bwplotka](https://togithub.com/bwplotka) in
[https://github.com/prometheus/client_golang/pull/1578](https://togithub.com/prometheus/client_golang/pull/1578)

</details>

#### New Contributors
* @&open-telemetry#8203;foehammer127 made their first
contributi[https://github.com/prometheus/client_golang/pull/1455](https://togithub.com/prometheus/client_golang/pull/1455)l/1455
* @&open-telemetry#8203;SachinSahu431 made their first
contributi[https://github.com/prometheus/client_golang/pull/1476](https://togithub.com/prometheus/client_golang/pull/1476)l/1476
* @&open-telemetry#8203;igor-drozdov made their first
contributi[https://github.com/prometheus/client_golang/pull/1480](https://togithub.com/prometheus/client_golang/pull/1480)l/1480
* @&open-telemetry#8203;majolo made their first
contributi[https://github.com/prometheus/client_golang/pull/1492](https://togithub.com/prometheus/client_golang/pull/1492)l/1492
* @&open-telemetry#8203;oftenoccur made their first
contributi[https://github.com/prometheus/client_golang/pull/1497](https://togithub.com/prometheus/client_golang/pull/1497)l/1497
* @&open-telemetry#8203;dongjiang1989 made their first
contributi[https://github.com/prometheus/client_golang/pull/1499](https://togithub.com/prometheus/client_golang/pull/1499)l/1499
* @&open-telemetry#8203;lilijreey made their first
contributi[https://github.com/prometheus/client_golang/pull/1511](https://togithub.com/prometheus/client_golang/pull/1511)l/1511
* @&open-telemetry#8203;Ishani217 made their first
contributi[https://github.com/prometheus/client_golang/pull/1444](https://togithub.com/prometheus/client_golang/pull/1444)l/1444
* @&open-telemetry#8203;jcass8695 made their first
contributi[https://github.com/prometheus/client_golang/pull/1503](https://togithub.com/prometheus/client_golang/pull/1503)l/1503
* @&open-telemetry#8203;leonnicolas made their first
contributi[https://github.com/prometheus/client_golang/pull/1424](https://togithub.com/prometheus/client_golang/pull/1424)l/1424
* @&open-telemetry#8203;fatsheep9146 made their first
contributi[https://github.com/prometheus/client_golang/pull/1471](https://togithub.com/prometheus/client_golang/pull/1471)l/1471
* @&open-telemetry#8203;abbyssoul made their first
contributi[https://github.com/prometheus/client_golang/pull/1544](https://togithub.com/prometheus/client_golang/pull/1544)l/1544
* @&open-telemetry#8203;swar8080 made their first
contributi[https://github.com/prometheus/client_golang/pull/1537](https://togithub.com/prometheus/client_golang/pull/1537)l/1537
* @&open-telemetry#8203;huwcbjones made their first
contributi[https://github.com/prometheus/client_golang/pull/1555](https://togithub.com/prometheus/client_golang/pull/1555)l/1555
* @&open-telemetry#8203;marcosnils made their first
contributi[https://github.com/prometheus/client_golang/pull/1534](https://togithub.com/prometheus/client_golang/pull/1534)l/1534
* @&open-telemetry#8203;vesari made their first
contributi[https://github.com/prometheus/client_golang/pull/1559](https://togithub.com/prometheus/client_golang/pull/1559)l/1559

**Full Changelog**:
prometheus/client_golang@v1.19.1...v1.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Co-authored-by: Yang Song <[email protected]>
@bwplotka
Copy link
Member

bwplotka commented Oct 6, 2024

FYI as a learning: This broke dozens if not hundreds of downstream users.

Feedback welcome of how we could improve those kind of changes in the future. This was a potentially "buggy" behaviour of the testing helper (surprising users). However, many users might have not care perhaps and we should just have create another function with the desired logic? 🤔

@logicalhan
Copy link
Contributor

I think we should revert this. Prometheus should not be breaking a bunch of downstream tests with changes like this.

@logicalhan
Copy link
Contributor

FYI as a learning: This broke dozens if not hundreds of downstream users.

Feedback welcome of how we could improve those kind of changes in the future. This was a potentially "buggy" behaviour of the testing helper (surprising users). However, many users might have not care perhaps and we should just have create another function with the desired logic? 🤔

You can deprecate the existing function and introduce a new function which has the behavior you want. This is NOT the way to change an existing API that hundreds of people are likely using and depending on.

bwplotka added a commit that referenced this pull request Oct 14, 2024
bwplotka added a commit that referenced this pull request Oct 14, 2024
@bwplotka
Copy link
Member

Thanks for your feedback @logicalhan.

Digression; are all breaking changes bad?

You can deprecate the existing function and introduce a new function which has the behavior you want. This is NOT the way to change an existing API that hundreds of people are likely using and depending on.

Is it that simple? What if the existing users were not using the API as they should (or abuse it). e.g. why they are filtering by metric names which they don't expect to exist? What if this new behaviour might save you or your project from a critical production bug or major annoyance in the future? What if this breaking change is easily noticeable, only in testing code and might trigger a positive changes around Kubernetes tests.

Interesting enough this breaking change was proposed and noticed by our Kubernetes community. Only thanks to @machine424 due diligence we noticed this and avoid regression (or at least noop test).

Finally, your suggestion would work normally, but in this case it would mean literally all functions in the testutil would be duplicated only to make the test check... actually do its job better.

As a result the proposal to revert the fix and leave the main functions error prone.. might be not rationally better (:

Proposal

However, I spoke to a few people (e.g. @dashpole @dgrisonnet @kakkoyun @ArthurSens @vesari and your opinion), and it feels it might be easier to revert.

Created PR -- added rationales there.

I propose we revert this, and work on a long term solution. With the team we also discussed a way, where every client_golang release pipeline could propose an upgrade PR to a Kubernetes library that heavily depends on client_golang and check if the CI passes (compatibility check with a big user).

Thanks!

@bwplotka
Copy link
Member

shivanthzen pushed a commit to shivanthzen/client_golang that referenced this pull request Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testutil.GatherAndCompare is error-prone
6 participants