mirror of https://github.com/grafana/loki
Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.1 (#9386)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.14.0 to 1.15.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/prometheus/client_golang/releases">github.com/prometheus/client_golang's releases</a>.</em></p> <blockquote> <h2>v1.15.1</h2> <h2>Changes</h2> <ul> <li>[BUGFIX] Fixed promhttp.Instrument* handlers wrongly trying to attach exemplar to unsupported metrics (e.g. summary), <br /> causing panics <a href="https://redirect.github.com/prometheus/client_golang/issues/1253">#1253</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/prometheus/client_golang/compare/v1.15.0...v1.15.1">https://github.com/prometheus/client_golang/compare/v1.15.0...v1.15.1</a></p> <h2>v1.15.0</h2> <h2>Changed</h2> <p>[BUGFIX] Fix issue with atomic variables on ppc64le <a href="https://redirect.github.com/prometheus/client_golang/issues/1171">#1171</a> [BUGFIX] Support for multiple samples within same metric <a href="https://redirect.github.com/prometheus/client_golang/issues/1181">#1181</a> [BUGFIX] Bump golang.org/x/text to v0.3.8 to mitigate CVE-2022-32149 <a href="https://redirect.github.com/prometheus/client_golang/issues/1187">#1187</a> [ENHANCEMENT] Add exemplars and middleware examples <a href="https://redirect.github.com/prometheus/client_golang/issues/1173">#1173</a> [ENHANCEMENT] Add more context to "duplicate label names" error to enable debugging <a href="https://redirect.github.com/prometheus/client_golang/issues/1177">#1177</a> [ENHANCEMENT] Add constrained labels and constrained variant for all MetricVecs <a href="https://redirect.github.com/prometheus/client_golang/issues/1151">#1151</a> [ENHANCEMENT] Moved away from deprecated github.com/golang/protobuf package <a href="https://redirect.github.com/prometheus/client_golang/issues/1183">#1183</a> [ENHANCEMENT] Add possibility to dynamically get label values for http instrumentation <a href="https://redirect.github.com/prometheus/client_golang/issues/1066">#1066</a> [ENHANCEMENT] Add ability to Pusher to add custom headers <a href="https://redirect.github.com/prometheus/client_golang/issues/1218">#1218</a> [ENHANCEMENT] api: Extend and improve efficiency of json-iterator usage <a href="https://redirect.github.com/prometheus/client_golang/issues/1225">#1225</a> [ENHANCEMENT] Added (official) support for go 1.20 <a href="https://redirect.github.com/prometheus/client_golang/issues/1234">#1234</a> [ENHANCEMENT] timer: Added support for exemplars <a href="https://redirect.github.com/prometheus/client_golang/issues/1233">#1233</a> [ENHANCEMENT] Filter expected metrics as well in CollectAndCompare <a href="https://redirect.github.com/prometheus/client_golang/issues/1143">#1143</a> [ENHANCEMENT] ⚠️ Only set start/end if time is not Zero. This breaks compatibility in experimental api package. If you strictly depend on empty time.Time as actual value, the behavior is now changed <a href="https://redirect.github.com/prometheus/client_golang/issues/1238">#1238</a></p> <!-- raw HTML omitted --> <ul> <li>Merge release 1.14 to main by <a href="https://github.com/bwplotka"><code>@bwplotka</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1164">prometheus/client_golang#1164</a></li> <li>Fix typo in doc comment by <a href="https://github.com/beorn7"><code>@beorn7</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1166">prometheus/client_golang#1166</a></li> <li>Fix issue with atomic variables on ppc64le by <a href="https://github.com/beorn7"><code>@beorn7</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1171">prometheus/client_golang#1171</a></li> <li>examples: Add exemplars and middleware examples by <a href="https://github.com/jessicalins"><code>@jessicalins</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1173">prometheus/client_golang#1173</a></li> <li>Add context to "duplicate label names" to enable debugging by <a href="https://github.com/SpencerMalone"><code>@SpencerMalone</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1177">prometheus/client_golang#1177</a></li> <li>Add constrained labels and Constrained variant for all MetricVecs by <a href="https://github.com/Okhoshi"><code>@Okhoshi</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1151">prometheus/client_golang#1151</a></li> <li>Support for multiple samples within same metric by <a href="https://github.com/machadovilaca"><code>@machadovilaca</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1181">prometheus/client_golang#1181</a></li> <li>Replace deprecated github.com/golang/protobuf package by <a href="https://github.com/zhsj"><code>@zhsj</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1183">prometheus/client_golang#1183</a></li> <li>Bump golang.org/x/text to v0.3.8 to mitigate CVE-2022-32149 by <a href="https://github.com/b4bay"><code>@b4bay</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1187">prometheus/client_golang#1187</a></li> <li>typo fix by <a href="https://github.com/ibreakthecloud"><code>@ibreakthecloud</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1178">prometheus/client_golang#1178</a></li> <li>Add possibility to dynamically get label values for http instrumentation by <a href="https://github.com/Okhoshi"><code>@Okhoshi</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1066">prometheus/client_golang#1066</a></li> <li>Bump github.com/cespare/xxhash/v2 from 2.1.2 to 2.2.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1199">prometheus/client_golang#1199</a></li> <li>Bump github.com/prometheus/procfs from 0.8.0 to 0.9.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1198">prometheus/client_golang#1198</a></li> <li>Bump golang.org/x/sys from 0.3.0 to 0.4.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1217">prometheus/client_golang#1217</a></li> <li>Synchronize common files from prometheus/prometheus by <a href="https://github.com/prombot"><code>@prombot</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1213">prometheus/client_golang#1213</a></li> <li>Bump github.com/prometheus/common from 0.37.0 to 0.39.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1197">prometheus/client_golang#1197</a></li> <li>Add <code>Header</code> method to Pusher for custom header by <a href="https://github.com/songjiayang"><code>@songjiayang</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1218">prometheus/client_golang#1218</a></li> <li>Synchronize common files from prometheus/prometheus by <a href="https://github.com/prombot"><code>@prombot</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1224">prometheus/client_golang#1224</a></li> <li>api: Extend and improve json-iterator usage by <a href="https://github.com/beorn7"><code>@beorn7</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1225">prometheus/client_golang#1225</a></li> <li>Indent example in godoc consistently by <a href="https://github.com/lamida"><code>@lamida</code></a> in <a href="https://redirect.github.com/prometheus/client_golang/pull/1226">prometheus/client_golang#1226</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md">github.com/prometheus/client_golang's changelog</a>.</em></p> <blockquote> <h2>Unreleased</h2> <h2>1.15.0 / 2023-04-13</h2> <h2>What's Changed</h2> <ul> <li>[BUGFIX] Fix issue with atomic variables on ppc64le <a href="https://redirect.github.com/prometheus/client_golang/issues/1171">#1171</a></li> <li>[BUGFIX] Support for multiple samples within same metric <a href="https://redirect.github.com/prometheus/client_golang/issues/1181">#1181</a></li> <li>[BUGFIX] Bump golang.org/x/text to v0.3.8 to mitigate CVE-2022-32149 <a href="https://redirect.github.com/prometheus/client_golang/issues/1187">#1187</a></li> <li>[ENHANCEMENT] Add exemplars and middleware examples <a href="https://redirect.github.com/prometheus/client_golang/issues/1173">#1173</a></li> <li>[ENHANCEMENT] Add more context to "duplicate label names" error to enable debugging <a href="https://redirect.github.com/prometheus/client_golang/issues/1177">#1177</a></li> <li>[ENHANCEMENT] Add constrained labels and constrained variant for all MetricVecs <a href="https://redirect.github.com/prometheus/client_golang/issues/1151">#1151</a></li> <li>[ENHANCEMENT] Moved away from deprecated github.com/golang/protobuf package <a href="https://redirect.github.com/prometheus/client_golang/issues/1183">#1183</a></li> <li>[ENHANCEMENT] Add possibility to dynamically get label values for http instrumentation <a href="https://redirect.github.com/prometheus/client_golang/issues/1066">#1066</a></li> <li>[ENHANCEMENT] Add ability to Pusher to add custom headers <a href="https://redirect.github.com/prometheus/client_golang/issues/1218">#1218</a></li> <li>[ENHANCEMENT] api: Extend and improve efficiency of json-iterator usage <a href="https://redirect.github.com/prometheus/client_golang/issues/1225">#1225</a></li> <li>[ENHANCEMENT] Added (official) support for go 1.20 <a href="https://redirect.github.com/prometheus/client_golang/issues/1234">#1234</a></li> <li>[ENHANCEMENT] timer: Added support for exemplars <a href="https://redirect.github.com/prometheus/client_golang/issues/1233">#1233</a></li> <li>[ENHANCEMENT] Filter expected metrics as well in CollectAndCompare <a href="https://redirect.github.com/prometheus/client_golang/issues/1143">#1143</a></li> <li>[ENHANCEMENT] ⚠️ Only set start/end if time is not Zero. This breaks compatibility in experimental api package. If you strictly depend on empty time.Time as actual value, the behavior is now changed <a href="https://redirect.github.com/prometheus/client_golang/issues/1238">#1238</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="pull/9290/head^24bbb297e54"><code>4bbb297</code></a> Cut 1.15.1 (<a href="https://redirect.github.com/prometheus/client_golang/issues/1266">#1266</a>)</li> <li><a href="2eaffbdb02"><code>2eaffbd</code></a> Merge pull request <a href="https://redirect.github.com/prometheus/client_golang/issues/1253">#1253</a> from prometheus/fixpro</li> <li><a href="b8fdd239b2"><code>b8fdd23</code></a> Added clarification.</li> <li><a href="2ea234eef0"><code>2ea234e</code></a> Revert "Remove unnecessary check if label is nil in observeWithExemplar (<a href="https://redirect.github.com/prometheus/client_golang/issues/1235">#1235</a>)"</li> <li><a href="d7896d4bd0"><code>d7896d4</code></a> Cut v1.15.0 (<a href="https://redirect.github.com/prometheus/client_golang/issues/1249">#1249</a>)</li> <li><a href="bba12b5514"><code>bba12b5</code></a> Bump github.com/prometheus/common from 0.41.0 to 0.42.0 (<a href="https://redirect.github.com/prometheus/client_golang/issues/1244">#1244</a>)</li> <li><a href="9015fcfc2c"><code>9015fcf</code></a> Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (<a href="https://redirect.github.com/prometheus/client_golang/issues/1245">#1245</a>)</li> <li><a href="1bb8cf8306"><code>1bb8cf8</code></a> Bump golang.org/x/sys from 0.5.0 to 0.6.0 (<a href="https://redirect.github.com/prometheus/client_golang/issues/1246">#1246</a>)</li> <li><a href="ff7efedd43"><code>ff7efed</code></a> Merge pull request <a href="https://redirect.github.com/prometheus/client_golang/issues/1243">#1243</a> from prometheus/dependabot/go_modules/google.golang....</li> <li><a href="852a282f10"><code>852a282</code></a> Bump google.golang.org/protobuf from 1.28.1 to 1.30.0</li> <li>Additional commits viewable in <a href="https://github.com/prometheus/client_golang/compare/v1.14.0...v1.15.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
parent
2f87acd284
commit
e46e650b50
26
vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_client.go
generated
vendored
26
vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_client.go
generated
vendored
101
vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go
generated
vendored
101
vendor/github.com/prometheus/client_golang/prometheus/promhttp/instrument_server.go
generated
vendored
@ -0,0 +1,23 @@ |
||||
// Copyright 2022 The Prometheus Authors
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package prometheus |
||||
|
||||
type v2 struct{} |
||||
|
||||
// V2 is a struct that can be referenced to access experimental API that might
|
||||
// be present in v2 of client golang someday. It offers extended functionality
|
||||
// of v1 with slightly changed API. It is acceptable to use some pieces from v1
|
||||
// and e.g `prometheus.NewGauge` and some from v2 e.g. `prometheus.V2.NewDesc`
|
||||
// in the same codebase.
|
||||
var V2 = v2{} |
||||
Loading…
Reference in new issue