fix(deps): update module github.com/prometheus/client_golang to v1
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/prometheus/client_golang | require | major |
v0.9.3-0.20190412003733-5a3ec6a883d3 -> v1.20.5
|
Warnings (1)
Please correct - or verify that you can safely ignore - these warnings before you merge this MR.
-
github.com/prometheus/client_golang
: Could not determine new digest for update (go package github.com/prometheus/client_golang)
⚠ ️ WarningSome dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
prometheus/client_golang (github.com/prometheus/client_golang)
v1.20.5
: / 2024-10-15
We decided to revert the testutil
change that made our util functions less error-prone, but created a lot of work for our downstream users. Apologies for the pain! This revert should not cause any major breaking change, even if you already did the work--unless you depend on the exact error message.
Going forward, we plan to reinforce our release testing strategy [1],[2] and deliver an enhanced testutil
package/module with more flexible and safer APIs.
Thanks to @dashpole @dgrisonnet @kakkoyun @ArthurSens @vesari @logicalhan @krajorama @bwplotka who helped in this patch release!
Changelog
[BUGFIX] testutil: Reverted #1424; functions using compareMetricFamilies are (again) only failing if filtered metricNames are in the expected input. #1645
v1.20.4
- [BUGFIX] histograms: Fix a possible data race when appending exemplars vs metrics gather. #1623
v1.20.3
- [BUGFIX] histograms: Fix possible data race when appending exemplars. #1608
v1.20.2
- [BUGFIX] promhttp: Unset Content-Encoding header when data is uncompressed. #1596
v1.20.1
This release contains the critical fix for the issue. Thanks to @geberl, @CubicrootXYZ, @zetaab and @timofurrer for helping us with the investigation!
- [BUGFIX] process-collector: Fixed unregistered descriptor error when using process collector with PedanticRegistry on Linux machines. #1587
v1.20.0
Thanks everyone for contributions!
collectors.NewGoCollector()
collector. Given its popular usage, expect your binary to expose two additional metric.
Changes
- [CHANGE]
⚠ go-collector: Removego_memstat_lookups_total
metric which was always 0; Go runtime stopped sharing pointer lookup statistics. #1577 - [FEATURE]
⚠ go-collector: Add 3 default metrics:go_gc_gogc_percent
,go_gc_gomemlimit_bytes
andgo_sched_gomaxprocs_threads
as those are recommended by the Go team. #1559 - [FEATURE] go-collector: Add more information to all metrics' HELP e.g. the exact
runtime/metrics
sourcing each metric (if relevant). #1568 #1578 - [FEATURE] testutil: Add CollectAndFormat method. #1503
- [FEATURE] histograms: Add support for exemplars in native histograms. #1471
- [FEATURE] promhttp: Add experimental support for
zstd
on scrape, controlled by the requestAccept-Encoding
header. #1496 - [FEATURE] api/v1: Add
WithLimit
parameter to all API methods that supports it. #1544 - [FEATURE] prometheus: Add support for created timestamps in constant histograms and constant summaries. #1537
- [FEATURE] process-collectors: Add network usage metrics:
process_network_receive_bytes_total
andprocess_network_transmit_bytes_total
. #1555 - [FEATURE] promlint: Add duplicated metric lint rule. #1472
- [BUGFIX] promlint: Relax metric type in name linter rule. #1455
- [BUGFIX] promhttp: Make sure server instrumentation wrapping supports new and future extra responseWriter methods. #1480
- [BUGFIX] testutil: Functions using compareMetricFamilies are now failing if filtered metricNames are not in the input. #1424
All commits
- feat(prometheus/testutil/promlint/validations): refine lintMetricType… by @foehammer127 in https://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 @dependabot in https://github.com/prometheus/client_golang/pull/1457
- Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1458
- Bump golang.org/x/sys from 0.16.0 to 0.17.0 by @dependabot in https://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 @dependabot in https://github.com/prometheus/client_golang/pull/1461
- Merge Release 1.19 back to main by @ArthurSens in https://github.com/prometheus/client_golang/pull/1462
- Bump the github-actions group with 2 updates by @dependabot in https://github.com/prometheus/client_golang/pull/1456
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1466
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /examples/middleware by @dependabot in https://github.com/prometheus/client_golang/pull/1467
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /tutorial/whatsup by @dependabot in https://github.com/prometheus/client_golang/pull/1469
- Add LintDuplicateMetric to promlint by @bboreham in https://github.com/prometheus/client_golang/pull/1472
- Auto-update Go Collector Metrics for new Go versions by @SachinSahu431 in https://github.com/prometheus/client_golang/pull/1476
- Implement Unwrap() for responseWriterDelegator by @igor-drozdov in https://github.com/prometheus/client_golang/pull/1480
- Bump golang.org/x/sys from 0.17.0 to 0.18.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1485
- Bump github.com/prometheus/procfs from 0.12.0 to 0.13.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1486
- ci: Remove hardcoded supported Go versions from go.yml by @SachinSahu431 in https://github.com/prometheus/client_golang/pull/1489
- feat: metrics generation workflow by @SachinSahu431 in https://github.com/prometheus/client_golang/pull/1481
- fix: remove redundant go module in middleware example by @majolo in https://github.com/prometheus/client_golang/pull/1492
- chore: Refactor how base metrics are added to Sched metrics by @ArthurSens in https://github.com/prometheus/client_golang/pull/1483
- gocollector: Add regex option to allow collection of debug runtime metrics by @ArthurSens in https://github.com/prometheus/client_golang/pull/1389
- Bump github.com/prometheus/common from 0.48.0 to 0.52.3 by @dependabot in https://github.com/prometheus/client_golang/pull/1498
- chore: fix function name in comment by @oftenoccur in https://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 @dependabot in https://github.com/prometheus/client_golang/pull/1501
- build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1502
- feat(dependency): replace go-spew package by @dongjiang1989 in https://github.com/prometheus/client_golang/pull/1499
- build(deps): bump github.com/prometheus/common from 0.52.3 to 0.53.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1504
- build(deps): bump github.com/cespare/xxhash/v2 from 2.2.0 to 2.3.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1505
- build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1506
- build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1507
- build(deps): bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 by @dependabot in https://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 @dependabot in https://github.com/prometheus/client_golang/pull/1509
- improved code more clean by @lilijreey in https://github.com/prometheus/client_golang/pull/1511
- build(deps): bump the github-actions group with 3 updates by @dependabot in https://github.com/prometheus/client_golang/pull/1510
- [CI]: Add Concurrency Grouping to GitHub Workflows by @Ishani217 in https://github.com/prometheus/client_golang/pull/1444
- Add CollectAndFormat to testutil, allowing caller to assert as they want to on the exported metric by @jcass8695 in https://github.com/prometheus/client_golang/pull/1503
- testutil compareMetricFamilies: make less error-prone by @leonnicolas in https://github.com/prometheus/client_golang/pull/1424
- improved code more clean use time.IsZero() replace t = time.Time{} by @lilijreey in https://github.com/prometheus/client_golang/pull/1515
- add native histogram exemplar support by @fatsheep9146 in https://github.com/prometheus/client_golang/pull/1471
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1514
- build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1523
- build(deps): bump google.golang.org/protobuf from 1.34.0 to 1.34.1 by @dependabot in https://github.com/prometheus/client_golang/pull/1522
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1524
- Add MR template for changelog automation by @SachinSahu431 in https://github.com/prometheus/client_golang/pull/1517
- Auto label MRs by @SachinSahu431 in https://github.com/prometheus/client_golang/pull/1518
- Fix: Auto label MRs #1518 by @SachinSahu431 in https://github.com/prometheus/client_golang/pull/1525
- build(deps): bump github.com/prometheus/procfs from 0.13.0 to 0.15.1 by @dependabot in https://github.com/prometheus/client_golang/pull/1527
- ci: Group all changelog-related CI jobs into single one by @ArthurSens in https://github.com/prometheus/client_golang/pull/1526
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1530
- Remove synchronize trigger from changelog workflow by @SachinSahu431 in https://github.com/prometheus/client_golang/pull/1532
- feat: Support zstd compression by @mrueg in https://github.com/prometheus/client_golang/pull/1496
- Fix golangci-lint config by @SuperQ in https://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 @dependabot in https://github.com/prometheus/client_golang/pull/1529
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1531
- Cleanup NOTICE file by @SuperQ in https://github.com/prometheus/client_golang/pull/1541
- Remove inlined upstream code by @SuperQ in https://github.com/prometheus/client_golang/pull/1539
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1545
- client: Add Option to provide limit query param for APIs that support it by @abbyssoul in https://github.com/prometheus/client_golang/pull/1544
- Allow creating constant histogram and summary metrics with a created timestamp by @swar8080 in https://github.com/prometheus/client_golang/pull/1537
- Update README.md by @bwplotka in https://github.com/prometheus/client_golang/pull/1556
- Temporarily remove required CI job for changelog. by @bwplotka in https://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 @dependabot in https://github.com/prometheus/client_golang/pull/1549
- build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1552
- build(deps): bump github.com/klauspost/compress from 1.17.8 to 1.17.9 by @dependabot in https://github.com/prometheus/client_golang/pull/1553
- fix: Update Go tests by @SuperQ in https://github.com/prometheus/client_golang/pull/1562
- process_collector: collect received/transmitted bytes by @huwcbjones in https://github.com/prometheus/client_golang/pull/1555
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1561
- chore: Remove half-implemented changelog automation by @ArthurSens in https://github.com/prometheus/client_golang/pull/1564
- build(deps): bump the github-actions group across 1 directory with 3 updates by @dependabot in https://github.com/prometheus/client_golang/pull/1565
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1563
- build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by @dependabot in https://github.com/prometheus/client_golang/pull/1551
- deps: Updated to prometheus/common to 0.55 by @bwplotka in https://github.com/prometheus/client_golang/pull/1566
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1567
- tutorials: Renamed tutorial -> tutorials for consistency + fixed tutorial code. by @bwplotka in https://github.com/prometheus/client_golang/pull/1569
- go collector: add default metrics acceptance tests; adding more context to HELP by @bwplotka in https://github.com/prometheus/client_golang/pull/1568
- build(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1570
- build(deps): bump the github-actions group with 3 updates by @dependabot in https://github.com/prometheus/client_golang/pull/1571
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1572
- ci: daggerize test and lint pipelines by @marcosnils in https://github.com/prometheus/client_golang/pull/1534
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1573
- Add default Go runtime metrics for /gc/gogc:percent, /gc/gomemlimit:bytes, /sched/gomaxprocs:threads by @vesari in https://github.com/prometheus/client_golang/pull/1559
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1576
- Remove go_memstat_lookups_total; added runtime/metrics calculation to memstat metric's help. by @bwplotka in https://github.com/prometheus/client_golang/pull/1577
- gocollector: Attach original runtime/metrics metric name to help. by @bwplotka in https://github.com/prometheus/client_golang/pull/1578
New Contributors
- @foehammer127 made their first contribution in https://github.com/prometheus/client_golang/pull/1455
- @SachinSahu431 made their first contribution in https://github.com/prometheus/client_golang/pull/1476
- @igor-drozdov made their first contribution in https://github.com/prometheus/client_golang/pull/1480
- @majolo made their first contribution in https://github.com/prometheus/client_golang/pull/1492
- @oftenoccur made their first contribution in https://github.com/prometheus/client_golang/pull/1497
- @dongjiang1989 made their first contribution in https://github.com/prometheus/client_golang/pull/1499
- @lilijreey made their first contribution in https://github.com/prometheus/client_golang/pull/1511
- @Ishani217 made their first contribution in https://github.com/prometheus/client_golang/pull/1444
- @jcass8695 made their first contribution in https://github.com/prometheus/client_golang/pull/1503
- @leonnicolas made their first contribution in https://github.com/prometheus/client_golang/pull/1424
- @fatsheep9146 made their first contribution in https://github.com/prometheus/client_golang/pull/1471
- @abbyssoul made their first contribution in https://github.com/prometheus/client_golang/pull/1544
- @swar8080 made their first contribution in https://github.com/prometheus/client_golang/pull/1537
- @huwcbjones made their first contribution in https://github.com/prometheus/client_golang/pull/1555
- @marcosnils made their first contribution in https://github.com/prometheus/client_golang/pull/1534
- @vesari made their first contribution in https://github.com/prometheus/client_golang/pull/1559
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.0
v1.19.1
What's Changed
- Security patches for
golang.org/x/sys
andgoogle.golang.org/protobuf
New Contributors
- @lukasauk made their first contribution in https://github.com/prometheus/client_golang/pull/1494
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.19.0...v1.19.1
v1.19.0
What's Changed
The module prometheus/common v0.48.0
introduced an incompatibility when used together with client_golang (See https://github.com/prometheus/client_golang/pull/1448 for more details). If your project uses client_golang and you want to use prometheus/common v0.48.0
or higher, please update client_golang to v1.19.0.
- [CHANGE] Minimum required go version is now 1.20 (we also test client_golang against new 1.22 version). #1445 #1449
- [FEATURE] collectors: Add version collector. #1422 #1427
New Contributors
- @michurin made their first contribution in https://github.com/prometheus/client_golang/pull/1423
- @kavu made their first contribution in https://github.com/prometheus/client_golang/pull/1445
- @ywwg made their first contribution in https://github.com/prometheus/client_golang/pull/1448
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.0
v1.18.0
What's Changed
- [FEATURE] promlint: Allow creation of custom metric validations. #1311
- [FEATURE] Go programs using client_golang can be built in wasip1 OS. #1350
- [BUGFIX] histograms: Add timer to reset ASAP after bucket limiting has happened. #1367
- [BUGFIX] testutil: Fix comparison of metrics with empty Help strings. #1378
- [ENHANCEMENT] Improved performance of
MetricVec.WithLabelValues(...)
. #1360
New Contributors
- @srenatus made their first contribution in https://github.com/prometheus/client_golang/pull/1350
- @jadolg made their first contribution in https://github.com/prometheus/client_golang/pull/1342
- @manas-rust made their first contribution in https://github.com/prometheus/client_golang/pull/1383
- @bluekeyes made their first contribution in https://github.com/prometheus/client_golang/pull/1378
- @tsipo made their first contribution in https://github.com/prometheus/client_golang/pull/1387
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.17.0...v1.18.0
v1.17.0
What's Changed
- [CHANGE] Minimum required go version is now 1.19 (we also test client_golang against new 1.21 version). #1325
- [FEATURE] Add support for Created Timestamps in Counters, Summaries and Historams. #1313
- [ENHANCEMENT] Enable detection of a native histogram without observations. #1314
Commits
- Merge v1.16.0 to main by @bwplotka in https://github.com/prometheus/client_golang/pull/1293
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1297
- ci: define minimal permissions to GitHub workflows by @diogoteles08 in https://github.com/prometheus/client_golang/pull/1295
- Do not allocate memory when there's no constraints by @Okhoshi in https://github.com/prometheus/client_golang/pull/1296
- Bump golang.org/x/sys from 0.8.0 to 0.9.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1306
- Bump google.golang.org/grpc from 1.45.0 to 1.53.0 in /tutorial/whatsup by @dependabot in https://github.com/prometheus/client_golang/pull/1307
- histogram: Enable detection of a native histogram without observations by @beorn7 in https://github.com/prometheus/client_golang/pull/1314
- Bump github.com/prometheus/procfs from 0.10.1 to 0.11.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1305
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1302
- Fix data-race in metric without
code
andmethod
but withWithLabelFromCtx
by @tigrato in https://github.com/prometheus/client_golang/pull/1318 - Add missing tick "`" in README by @ZiViZiViZ in https://github.com/prometheus/client_golang/pull/1321
- Bump golang.org/x/sys from 0.9.0 to 0.10.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1320
- Bump github.com/prometheus/procfs from 0.11.0 to 0.11.1 by @dependabot in https://github.com/prometheus/client_golang/pull/1319
- docs: trivial grammar fixes to improve readability in promauto Godoc by @sengi in https://github.com/prometheus/client_golang/pull/1322
- Add Go 1.21 support by @kakkoyun in https://github.com/prometheus/client_golang/pull/1325
- Bump client_model by @ArthurSens in https://github.com/prometheus/client_golang/pull/1323
- histogram docs: Fixed minor nit. by @bwplotka in https://github.com/prometheus/client_golang/pull/1324
- Update building by @SuperQ in https://github.com/prometheus/client_golang/pull/1326
- Bump golang.org/x/sys from 0.10.0 to 0.11.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1331
- Bump github.com/prometheus/client_golang from 1.15.1-0.20230416215738-0963f595c689 to 1.16.0 in /tutorial/whatsup by @dependabot in https://github.com/prometheus/client_golang/pull/1329
- Bump github.com/prometheus/client_golang from 1.13.1 to 1.16.0 in /examples/middleware by @dependabot in https://github.com/prometheus/client_golang/pull/1328
- Bump github.com/prometheus/common from 0.42.0 to 0.44.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1284
- Bump github.com/prometheus/common from 0.42.0 to 0.44.0 in /tutorial/whatsup by @dependabot in https://github.com/prometheus/client_golang/pull/1330
- Bump google.golang.org/protobuf from 1.30.0 to 1.31.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1304
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1332
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1338
- Cleanup golangci-lint errcheck by @SuperQ in https://github.com/prometheus/client_golang/pull/1339
- Add go_godebug_non_default_behavior_tlsmaxrsasize_events_total by @alexandear in https://github.com/prometheus/client_golang/pull/1348
- Extend Counters, Summaries and Histograms with creation timestamp by @ArthurSens in https://github.com/prometheus/client_golang/pull/1313
- Fix typos in comments, tests, and errors by @alexandear in https://github.com/prometheus/client_golang/pull/1346
- Deprecated comment should begin with "Deprecated:" by @alexandear in https://github.com/prometheus/client_golang/pull/1347
- Add changelog entry for 1.17 by @ArthurSens in https://github.com/prometheus/client_golang/pull/1352
New Contributors
- @diogoteles08 made their first contribution in https://github.com/prometheus/client_golang/pull/1295
- @tigrato made their first contribution in https://github.com/prometheus/client_golang/pull/1318
- @ZiViZiViZ made their first contribution in https://github.com/prometheus/client_golang/pull/1321
- @sengi made their first contribution in https://github.com/prometheus/client_golang/pull/1322
- @ArthurSens made their first contribution in https://github.com/prometheus/client_golang/pull/1323
- @alexandear made their first contribution in https://github.com/prometheus/client_golang/pull/1348
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.16.0...v1.17.0
v1.16.0
What's Changed
- [BUGFIX] api: Switch to POST for LabelNames, Series, and QueryExemplars. #1252
- [BUGFIX] api: Fix undefined execution order in return statements. #1260
- [BUGFIX] native histograms: Fix bug in bucket key calculation. #1279
- [ENHANCEMENT] Reduce constrainLabels allocations for all metrics. #1272
- [ENHANCEMENT] promhttp: Add process start time header for scrape efficiency. #1278
- [ENHANCEMENT] promlint: Improve metricUnits runtime. #1286
Commits
- Merge v1.15 to main by @bwplotka in https://github.com/prometheus/client_golang/pull/1250
- Switch to POST for LabelNames, Series, and QueryExemplars to DoGetFallback by @jacksontj in https://github.com/prometheus/client_golang/pull/1252
-
✏ ️ [collectors]: fix typo in test assertion by @vegerot in https://github.com/prometheus/client_golang/pull/1153 - Added interactive tutorial [kubeCon] by @bwplotka in https://github.com/prometheus/client_golang/pull/1255
- Fixed tutorial. by @bwplotka in https://github.com/prometheus/client_golang/pull/1256
- Bump golang.org/x/sys from 0.6.0 to 0.7.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1265
- Cleanup proto use in tests by @SuperQ in https://github.com/prometheus/client_golang/pull/1264
- Fix tutorial on WSL-based systems by @marevers in https://github.com/prometheus/client_golang/pull/1257
- Fix undefined execution order in return statements by @PiotrLewandowski323 in https://github.com/prometheus/client_golang/pull/1260
- Merge release 1.15.1 to main by @bwplotka in https://github.com/prometheus/client_golang/pull/1267
- GitHub Workflows security hardening by @sashashura in https://github.com/prometheus/client_golang/pull/1180
- add process start time header to client_golang prometheus by @logicalhan in https://github.com/prometheus/client_golang/pull/1278
- Fix bug in bucket key calculation by @beorn7 in https://github.com/prometheus/client_golang/pull/1279
- Bump github.com/prometheus/procfs from 0.9.0 to 0.10.1 by @dependabot in https://github.com/prometheus/client_golang/pull/1283
- Reduce constrainLabels allocations by @khasanovbi in https://github.com/prometheus/client_golang/pull/1272
- added circleci as gh action YAML by @krishnaduttPanchagnula in https://github.com/prometheus/client_golang/pull/1281
- Improve metricUnits runtime by @avlitman in https://github.com/prometheus/client_golang/pull/1286
- Moving fully to GH actions. by @bwplotka in https://github.com/prometheus/client_golang/pull/1288
- Fix docstring references to renamed native histogram fields / functions. by @juliusv in https://github.com/prometheus/client_golang/pull/1290
- Fixed README & CHANGELOG; Added fmt makefile command (+bingo) for easier contributions. by @bwplotka in https://github.com/prometheus/client_golang/pull/1289
New Contributors
- @vegerot made their first contribution in https://github.com/prometheus/client_golang/pull/1153
- @marevers made their first contribution in https://github.com/prometheus/client_golang/pull/1257
- @PiotrLewandowski323 made their first contribution in https://github.com/prometheus/client_golang/pull/1260
- @sashashura made their first contribution in https://github.com/prometheus/client_golang/pull/1180
- @logicalhan made their first contribution in https://github.com/prometheus/client_golang/pull/1278
- @khasanovbi made their first contribution in https://github.com/prometheus/client_golang/pull/1272
- @krishnaduttPanchagnula made their first contribution in https://github.com/prometheus/client_golang/pull/1281
- @avlitman made their first contribution in https://github.com/prometheus/client_golang/pull/1286
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.15.1...v1.16.0
v1.15.1
Changes
- [BUGFIX] Fixed promhttp.Instrument* handlers wrongly trying to attach exemplar to unsupported metrics (e.g. summary),
causing panics #1253
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.15.0...v1.15.1
v1.15.0
Changed
[BUGFIX] Fix issue with atomic variables on ppc64le #1171
[BUGFIX] Support for multiple samples within same metric #1181
[BUGFIX] Bump golang.org/x/text to v0.3.8 to mitigate CVE-2022-32149 #1187
[ENHANCEMENT] Add exemplars and middleware examples #1173
[ENHANCEMENT] Add more context to "duplicate label names" error to enable debugging #1177
[ENHANCEMENT] Add constrained labels and constrained variant for all MetricVecs #1151
[ENHANCEMENT] Moved away from deprecated github.com/golang/protobuf package #1183
[ENHANCEMENT] Add possibility to dynamically get label values for http instrumentation #1066
[ENHANCEMENT] Add ability to Pusher to add custom headers #1218
[ENHANCEMENT] api: Extend and improve efficiency of json-iterator usage #1225
[ENHANCEMENT] Added (official) support for go 1.20 #1234
[ENHANCEMENT] timer: Added support for exemplars #1233
[ENHANCEMENT] Filter expected metrics as well in CollectAndCompare #1143
[ENHANCEMENT]
All commits
- Merge release 1.14 to main by @bwplotka in https://github.com/prometheus/client_golang/pull/1164
- Fix typo in doc comment by @beorn7 in https://github.com/prometheus/client_golang/pull/1166
- Fix issue with atomic variables on ppc64le by @beorn7 in https://github.com/prometheus/client_golang/pull/1171
- examples: Add exemplars and middleware examples by @jessicalins in https://github.com/prometheus/client_golang/pull/1173
- Add context to "duplicate label names" to enable debugging by @SpencerMalone in https://github.com/prometheus/client_golang/pull/1177
- Add constrained labels and Constrained variant for all MetricVecs by @Okhoshi in https://github.com/prometheus/client_golang/pull/1151
- Support for multiple samples within same metric by @machadovilaca in https://github.com/prometheus/client_golang/pull/1181
- Replace deprecated github.com/golang/protobuf package by @zhsj in https://github.com/prometheus/client_golang/pull/1183
- Bump golang.org/x/text to v0.3.8 to mitigate CVE-2022-32149 by @b4bay in https://github.com/prometheus/client_golang/pull/1187
- typo fix by @ibreakthecloud in https://github.com/prometheus/client_golang/pull/1178
- Add possibility to dynamically get label values for http instrumentation by @Okhoshi in https://github.com/prometheus/client_golang/pull/1066
- Bump github.com/cespare/xxhash/v2 from 2.1.2 to 2.2.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1199
- Bump github.com/prometheus/procfs from 0.8.0 to 0.9.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1198
- Bump golang.org/x/sys from 0.3.0 to 0.4.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1217
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1213
- Bump github.com/prometheus/common from 0.37.0 to 0.39.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1197
- Add
Header
method to Pusher for custom header by @songjiayang in https://github.com/prometheus/client_golang/pull/1218 - Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1224
- api: Extend and improve json-iterator usage by @beorn7 in https://github.com/prometheus/client_golang/pull/1225
- Indent example in godoc consistently by @lamida in https://github.com/prometheus/client_golang/pull/1226
- Remove unnecessary check if label is nil in observeWithExemplar by @dimonl in https://github.com/prometheus/client_golang/pull/1235
- README: Remove not working gocoverage images. by @bwplotka in https://github.com/prometheus/client_golang/pull/1236
- Added support for go 1.20. by @bwplotka in https://github.com/prometheus/client_golang/pull/1234
- timer: Added support for exemplars. by @bwplotka in https://github.com/prometheus/client_golang/pull/1233
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1237
- Filter expected metrics as well in CollectAndCompare by @DariaKunoichi in https://github.com/prometheus/client_golang/pull/1143
- Only set start/end if time is not Zero by @jacksontj in https://github.com/prometheus/client_golang/pull/1238
- Bump google.golang.org/protobuf from 1.28.1 to 1.30.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1243
- Bump golang.org/x/sys from 0.5.0 to 0.6.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1246
- Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 by @dependabot in https://github.com/prometheus/client_golang/pull/1245
- Bump github.com/prometheus/common from 0.41.0 to 0.42.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1244
- Cut v1.15.0 by @bwplotka in https://github.com/prometheus/client_golang/pull/1249
New Contributors
- @SpencerMalone made their first contribution in https://github.com/prometheus/client_golang/pull/1177
- @Okhoshi made their first contribution in https://github.com/prometheus/client_golang/pull/1151
- @machadovilaca made their first contribution in https://github.com/prometheus/client_golang/pull/1181
- @b4bay made their first contribution in https://github.com/prometheus/client_golang/pull/1187
- @ibreakthecloud made their first contribution in https://github.com/prometheus/client_golang/pull/1178
- @songjiayang made their first contribution in https://github.com/prometheus/client_golang/pull/1218
- @lamida made their first contribution in https://github.com/prometheus/client_golang/pull/1226
- @dimonl made their first contribution in https://github.com/prometheus/client_golang/pull/1235
- @DariaKunoichi made their first contribution in https://github.com/prometheus/client_golang/pull/1143
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.14.0...v1.15.0
v1.14.0
: 1.14.0 / 2022-11-08
It might look like a small release, but it's quite opposite
What's Changed
- [FEATURE] Add Support for Native Histograms. #1150
- [CHANGE] Extend
prometheus.Registry
to implementprometheus.Collector
interface. #1103
New Contributors
- @hairyhenderson made their first contribution in https://github.com/prometheus/client_golang/pull/1118
- @rfratto made their first contribution in https://github.com/prometheus/client_golang/pull/1103
- @donotnoot made their first contribution in https://github.com/prometheus/client_golang/pull/1125
- @rogerogers made their first contribution in https://github.com/prometheus/client_golang/pull/1130
- @balintzs made their first contribution in https://github.com/prometheus/client_golang/pull/1148
- @fstab made their first contribution in https://github.com/prometheus/client_golang/pull/1146
- @jessicalins made their first contribution in https://github.com/prometheus/client_golang/pull/1152
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.13.1...v1.14.0
v1.13.1
: 1.13.1 / 2022-11-02
- [BUGFIX] Fix race condition with Exemplar in Counter. #1146
- [BUGFIX] Fix
CumulativeCount
value of+Inf
bucket created from exemplar. #1148 - [BUGFIX] Fix double-counting bug in
promhttp.InstrumentRoundTripperCounter
. #1118
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.13.0...v1.13.1
v1.13.0
: 1.13.0 / 2022-08-06
- [CHANGE] Minimum required Go version is now 1.17 (we also test client_golang against the new 1.19 version).
- [ENHANCEMENT] Added
prometheus.TransactionalGatherer
interface forpromhttp.Handler
use which allows using low allocation update techniques for custom collectors. #989 - [ENHANCEMENT] Added exemplar support to
prometheus.NewConstHistogram
. SeeExampleNewConstHistogram_WithExemplar
example on how to use it. #986 - [ENHANCEMENT] Query requests are now retried after network error. #1022
- [ENHANCEMENT]
prometheus/push.Pusher
now has context-aware methods that pass context to HTTP requests. #1028 - [ENHANCEMENT]
prometheus/push.Pusher
has nowError
method that retrieve last error. #1075 - [ENHANCEMENT]
testutil.GatherAndCompare
provides now readable diff on failed comparisons. #998 - [ENHANCEMENT] Query API now supports timeouts. #1014
- [ENHANCEMENT] New
MetricVec
methodDeletePartialMatch(labels Labels)
for deleting all metrics that match provided labels. #1013 - [ENHANCEMENT]
api.Config
now accepts passing custom*http.Client
. #1025 - [BUGFIX] Raise exemplar labels limit from 64 to 128 bytes as specified in OpenMetrics spec. #1091
- [BUGFIX] Allow adding exemplar to +Inf bucket to const histograms. #1094
- [ENHANCEMENT] Most
promhttp.Instrument*
middlewares now support adding exemplars to metrics. This allows hooking those to your tracing middleware that retrieves trace ID and puts it in exemplar if present. #1055 - [ENHANCEMENT] Added
testutil.ScrapeAndCompare
method. #1043 - [BUGFIX] Fixed
GopherJS
build support. #897 - [ENHANCEMENT]
⚠ Added way to specify whatruntime/metrics
collectors.NewGoCollector
should use. SeeExampleGoCollector_WithAdvancedGoMetrics
. #1102
❤ ️
New Contributors - @alissa-tung made their first contribution in https://github.com/prometheus/client_golang/pull/1000
- @wperron made their first contribution in https://github.com/prometheus/client_golang/pull/986
- @zhijian-pro made their first contribution in https://github.com/prometheus/client_golang/pull/1005
- @dohnto made their first contribution in https://github.com/prometheus/client_golang/pull/1021
- @tatsuhiro-t made their first contribution in https://github.com/prometheus/client_golang/pull/1028
- @sourikghosh made their first contribution in https://github.com/prometheus/client_golang/pull/998
- @josephwoodward made their first contribution in https://github.com/prometheus/client_golang/pull/1014
- @stone-z made their first contribution in https://github.com/prometheus/client_golang/pull/1013
- @yolossn made their first contribution in https://github.com/prometheus/client_golang/pull/1025
- @xrstf made their first contribution in https://github.com/prometheus/client_golang/pull/1039
- @dependabot made their first contribution in https://github.com/prometheus/client_golang/pull/1051
- @sazary made their first contribution in https://github.com/prometheus/client_golang/pull/1056
- @oiooj made their first contribution in https://github.com/prometheus/client_golang/pull/1075
- @fredr made their first contribution in https://github.com/prometheus/client_golang/pull/1095
- @inosato made their first contribution in https://github.com/prometheus/client_golang/pull/1096
- @arun-shopify made their first contribution in https://github.com/prometheus/client_golang/pull/1094
- @paralin made their first contribution in https://github.com/prometheus/client_golang/pull/897
Commits
- go.mod: Set minimal support version of go to 1.15 by @mrueg in https://github.com/prometheus/client_golang/pull/980
- Enable CodeQL Analysis by @kakkoyun in https://github.com/prometheus/client_golang/pull/982
- Added Transactional Gatherer allowed cached solutions by @bwplotka in https://github.com/prometheus/client_golang/pull/989
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/992
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1003
- Fix deprecated
NewBuildInfoCollector
API by @alissa-tung in https://github.com/prometheus/client_golang/pull/1000 - Add exemplar support for const histogram by @wperron in https://github.com/prometheus/client_golang/pull/986
- Fixed lint warning. by @bwplotka in https://github.com/prometheus/client_golang/pull/1007
- .circleci: Add config to test against go1.18 by @kakkoyun in https://github.com/prometheus/client_golang/pull/1006
- When prefix is empty, no more dots should be written by @zhijian-pro in https://github.com/prometheus/client_golang/pull/1005
- Add statebot config by @kakkoyun in https://github.com/prometheus/client_golang/pull/1001
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1009
- Remove workaround for pre go1.15 by @johejo in https://github.com/prometheus/client_golang/pull/1010
- go.mod: Update dependencies by @mrueg in https://github.com/prometheus/client_golang/pull/1018
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1019
- Refactor apiClientImpl.DoGetFallback by @dohnto in https://github.com/prometheus/client_golang/pull/1021
- Added info about our slack channel. by @bwplotka in https://github.com/prometheus/client_golang/pull/1029
- push: Add PushContext and AddContext to Pusher by @tatsuhiro-t in https://github.com/prometheus/client_golang/pull/1028
- Make Query requests idempotent by @dohnto in https://github.com/prometheus/client_golang/pull/1022
- Bump minimum required Go version to 1.16 by @mrueg in https://github.com/prometheus/client_golang/pull/10327
- Update query API to support timeouts by @josephwoodward in https://github.com/prometheus/client_golang/pull/1014
- Implement deletion based on partially matching labels by @stone-z in https://github.com/prometheus/client_golang/pull/1013
- Document WithTimeout option for Query/QueryRange by @josephwoodward in https://github.com/prometheus/client_golang/pull/1037
- client: Allow configuration of http client by @yolossn in https://github.com/prometheus/client_golang/pull/1025
- update branch names in a few links by @xrstf in https://github.com/prometheus/client_golang/pull/1039
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1045
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1046
- prometheus: Fix convention violating names for generated collector metrics by @kakkoyun in https://github.com/prometheus/client_golang/pull/1048
- Remove -Inf buckets from go collector histograms by @kakkoyun in https://github.com/prometheus/client_golang/pull/1049
- Enable dependabot by @SuperQ in https://github.com/prometheus/client_golang/pull/1050
- Bump github.com/prometheus/common from 0.33.0 to 0.34.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1051
- Cut v1.12.2 by @kakkoyun in https://github.com/prometheus/client_golang/pull/1052
- Update readme after v0.12.2 by @kakkoyun in https://github.com/prometheus/client_golang/pull/1053
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1061
- Update minimum supported Go version (1.17) by @SuperQ in https://github.com/prometheus/client_golang/pull/1062
- Add GitHub settings by @SuperQ in https://github.com/prometheus/client_golang/pull/1063
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1064
- Enable same linters as the Prometheus repo itself by @sazary in https://github.com/prometheus/client_golang/pull/1056
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/1068
- Add Error API for pusher by @oiooj in https://github.com/prometheus/client_golang/pull/1075
- Bump github.com/prometheus/common from 0.34.0 to 0.35.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1076
- Merge release-1.12 branch back into main by @beorn7 in https://github.com/prometheus/client_golang/pull/1079
- Fix version number in VERSION by @beorn7 in https://github.com/prometheus/client_golang/pull/1080
- Merging release branch back to main again by @beorn7 in https://github.com/prometheus/client_golang/pull/1081
- Raise exemplar labels limit from 64 to 128 by @bboreham in https://github.com/prometheus/client_golang/pull/1091
- Update documentation for exemplar label limit by @fredr in https://github.com/prometheus/client_golang/pull/1095
- Bump github.com/prometheus/common from 0.35.0 to 0.37.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1098
- Bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in https://github.com/prometheus/client_golang/pull/1099
- Remove ioutil by @inosato in https://github.com/prometheus/client_golang/pull/1096
- Bump github.com/prometheus/procfs from 0.7.3 to 0.8.0 by @dependabot in https://github.com/prometheus/client_golang/pull/1097
- explicitly add +inf bucket in withExemplarsMetric by @arun-shopify in https://github.com/prometheus/client_golang/pull/1094
- Ensure tests verify request params by @josephwoodward in https://github.com/prometheus/client_golang/pull/1047
- Fixed support for unordered input of exemplars. by @bwplotka in https://github.com/prometheus/client_golang/pull/1100
- Added exemplar support to http middleware. by @bwplotka in https://github.com/prometheus/client_golang/pull/1055
- fix assorted oddities found by golangci-lint by @xrstf in https://github.com/prometheus/client_golang/pull/1040
- Generate new Go runtime metrics for go 1.19 by @kakkoyun in https://github.com/prometheus/client_golang/pull/1105
- testutil: Add ScrapeAndCompare by @sazary in https://github.com/prometheus/client_golang/pull/1043
- Fix build against GopherJS by @paralin in https://github.com/prometheus/client_golang/pull/897
- collectors.GoCollector: Added rule support for granular metric configuration. by @bwplotka in https://github.com/prometheus/client_golang/pull/1102
- Cut 1.13.0 by @bwplotka in https://github.com/prometheus/client_golang/pull/1110
v1.12.2
: 1.12.2 / 2022-05-13
- [CHANGE] Added
collectors.WithGoCollections
that allows to choose what collection of Go runtime metrics user wants: Equivalent ofMemStats
structure configured usingGoRuntimeMemStatsCollection
, new based on dedicated runtime/metrics metrics represented byGoRuntimeMetricsCollection
option, or both by specifyingGoRuntimeMemStatsCollection | GoRuntimeMetricsCollection
flag. - [CHANGE]
⚠ Change incollectors.NewGoCollector
metrics: Reverting addition of new ~80 runtime metrics by default. You can enable this back withGoRuntimeMetricsCollection
option orGoRuntimeMemStatsCollection | GoRuntimeMetricsCollection
for smooth transition. - [BUGFIX] Fixed the bug that causes generated histogram metric names to end with
_total
.⚠ ️ This changes 3 metric names in the new Go collector that was reverted from default in this release.-
go_gc_heap_allocs_by_size_bytes_total
->go_gc_heap_allocs_by_size_bytes
, -
go_gc_heap_frees_by_size_bytes_total
->go_gc_heap_allocs_by_size_bytes
-
go_gc_pauses_seconds_total
->go_gc_pauses_seconds
.
-
- [CHANGE] Removed
-Inf
buckets from new Go Collector histograms.
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.12.1...v1.12.2
v1.12.1
: 1.12.1 / 2022-01-29
- [BUGFIX] Make the Go 1.17 collector concurrency-safe #969
- Use simpler locking in the Go 1.17 collector #975
- [BUGFIX] Reduce granularity of histogram buckets for Go 1.17 collector #974
- [ENHANCEMENT] API client: make HTTP reads more efficient #976
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.12.0...v1.12.1
v1.12.0
: 1.12.0 / 2022-01-19
- [CHANGE] example/random: Move flags and metrics into main() #935
- [FEATURE] API client: Support wal replay status api #944
- [FEATURE] Use the runtime/metrics package for the Go collector for 1.17+ #955
- [ENHANCEMENT] API client: Update /api/v1/status/tsdb to include headStats #925
- [SECURITY FIX] promhttp: Check validity of method and code label values #962 (Addressed
CVE-2022-21698
)
What's Changed
- Address minor issues on the changelog by @kakkoyun in https://github.com/prometheus/client_golang/pull/879
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/888
- Update status badgets by @SuperQ in https://github.com/prometheus/client_golang/pull/885
- Updating dependency versions + cleanup by @sivabalan in https://github.com/prometheus/client_golang/pull/881
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/892
- add ExponentialBucketsRange function by @sbunce in https://github.com/prometheus/client_golang/pull/899
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/909
- Update cespare/xxhash dependency by @dtrudg in https://github.com/prometheus/client_golang/pull/913
- example/random: Move flags and metrics into main() by @beorn7 in https://github.com/prometheus/client_golang/pull/935
- Fix typo by @gozeloglu in https://github.com/prometheus/client_golang/pull/939
- Add support for go 1.17 by @mrueg in https://github.com/prometheus/client_golang/pull/950
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/928
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/952
- API: support wal replay status api by @yeya24 in https://github.com/prometheus/client_golang/pull/944
- Update /api/v1/status/tsdb to include headStats by @prymitive in https://github.com/prometheus/client_golang/pull/925
- Use the runtime/metrics package for the Go collector for 1.17+ by @mknyszek in https://github.com/prometheus/client_golang/pull/955
- promhttp: Check validity of method and code label values by @kakkoyun in https://github.com/prometheus/client_golang/pull/962
- go.*: Update dependencies by @kakkoyun in https://github.com/prometheus/client_golang/pull/965
New Contributors
- @sivabalan made their first contribution in https://github.com/prometheus/client_golang/pull/881
- @sbunce made their first contribution in https://github.com/prometheus/client_golang/pull/899
- @dtrudg made their first contribution in https://github.com/prometheus/client_golang/pull/913
- @gozeloglu made their first contribution in https://github.com/prometheus/client_golang/pull/939
- @mrueg made their first contribution in https://github.com/prometheus/client_golang/pull/950
- @prymitive made their first contribution in https://github.com/prometheus/client_golang/pull/925
- @mknyszek made their first contribution in https://github.com/prometheus/client_golang/pull/955
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.11.0...v1.12.0
v1.11.1
: 1.11.1 / 2022-02-15
- [SECURITY FIX] promhttp: Check validity of method and code label values https://github.com/prometheus/client_golang/pull/987 (Addressed
CVE-2022-21698
)
What's Changed
- promhttp: Check validity of method and code label values by @bwplotka and @kakkoyun in https://github.com/prometheus/client_golang/pull/987
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.11.0...v1.11.1
v1.11.0
: / 2021-06-07
- [CHANGE] Add new collectors package. #862
- [CHANGE]
prometheus.NewExpvarCollector
is deprecated, usecollectors.NewExpvarCollector
instead. #862 - [CHANGE]
prometheus.NewGoCollector
is deprecated, usecollectors.NewGoCollector
instead. #862 - [CHANGE]
prometheus.NewBuildInfoCollector
is deprecated, usecollectors.NewBuildInfoCollector
instead. #862 - [FEATURE] Add new collector for database/sql#DBStats. #866
- [FEATURE] API client: Add exemplars API support. #861
- [ENHANCEMENT] API client: Add newer fields to Rules API. #855
- [ENHANCEMENT] API client: Add missing fields to Targets API. #856
What's Changed
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/846
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/849
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/853
- Add newer fields to Rules API by @gouthamve in https://github.com/prometheus/client_golang/pull/855
- Add missing fields to targets API by @yeya24 in https://github.com/prometheus/client_golang/pull/856
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/857
- Add exemplars API support by @yeya24 in https://github.com/prometheus/client_golang/pull/861
- Improve description of MaxAge in summary docs by @Dean-Coakley in https://github.com/prometheus/client_golang/pull/864
- Add new collectors package by @johejo in https://github.com/prometheus/client_golang/pull/862
- Add collector for database/sql#DBStats by @johejo in https://github.com/prometheus/client_golang/pull/866
- Make dbStatsCollector more DRY by @beorn7 in https://github.com/prometheus/client_golang/pull/867
- Change maintainers from @beorn7 to @bwplotka/@kakkoyun by @beorn7 in https://github.com/prometheus/client_golang/pull/873
- Document implications of negative observations by @beorn7 in https://github.com/prometheus/client_golang/pull/871
- Update Go modules by @SuperQ in https://github.com/prometheus/client_golang/pull/875
New Contributors
- @gouthamve made their first contribution in https://github.com/prometheus/client_golang/pull/855
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.10.0...v1.11.0
v1.10.0
: 1.10.0 / 2021-03-18
- [CHANGE] Minimum required Go version is now 1.13.
- [CHANGE] API client: Add matchers to
LabelNames
andLabesValues
. #828 - [FEATURE] API client: Add buildinfo call. #841
- [BUGFIX] Fix build on riscv64. #833
What's Changed
- Add SECURITY.md by @roidelapluie in https://github.com/prometheus/client_golang/pull/831
- Bump prometheus/procfs to 0.3.0 to fix building on riscv64 by @zhsj in https://github.com/prometheus/client_golang/pull/833
- Fix typo in comments in https://github.com/prometheus/client_golang/pull/835
- Support matchers in labels API by @yeya24 in https://github.com/prometheus/client_golang/pull/828
- Add buildinfo method by @ntk148v in https://github.com/prometheus/client_golang/pull/841
- Update dependencies by @beorn7 in https://github.com/prometheus/client_golang/pull/843
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/844
- Cut v1.10.0 by @beorn7 in https://github.com/prometheus/client_golang/pull/845
New Contributors
- @zhsj made their first contribution in https://github.com/prometheus/client_golang/pull/833
- @ntk148v made their first contribution in https://github.com/prometheus/client_golang/pull/841
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.9.0...v1.10.0
v1.9.0
: 1.9.0 / 2020-12-17
- [FEATURE]
NewPidFileFn
helper to create process collectors for processes whose PID is read from a file. #804 - [BUGFIX] promhttp: Prevent endless loop in
InstrumentHandler...
middlewares with invalid metric or label names. #823
What's Changed
- add the NewPidFileFn to helper by @sbookworm in https://github.com/prometheus/client_golang/pull/804
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/809
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/811
- Added example api code showing how to add auth tokens and user agents to prom client. by @bwplotka in https://github.com/prometheus/client_golang/pull/817
- Correct spelling: possibilites -> possibilities by @jubalh in https://github.com/prometheus/client_golang/pull/819
- Be more explicit about the multi-line properties of MultiError by @beorn7 in https://github.com/prometheus/client_golang/pull/821
- promhttp: Correctly detect invalid metric and label names by @beorn7 in https://github.com/prometheus/client_golang/pull/823
-  Cut release 1.9.0 by @beorn7 in https://github.com/prometheus/client_golang/pull/826
New Contributors
- @sbookworm made their first contribution in https://github.com/prometheus/client_golang/pull/804
- @jubalh made their first contribution in https://github.com/prometheus/client_golang/pull/819
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.8.0...v1.9.0
v1.8.0
: 1.8.0 / 2020-10-15
- [CHANGE] API client: Use
time.Time
rather thanstring
for timestamps inRuntimeinfoResult
. #777 - [FEATURE] Export
MetricVec
to facilitate implementation of vectors of customMetric
types. #803 - [FEATURE API client: Support
/status/tsdb
endpoint. #773 - [ENHANCEMENT] API client: Enable GET fallback on status code 501. #802
- [ENHANCEMENT] Remove
Metric
references after reslicing to free up more memory. #784
What's Changed
- Add support for tsdb endpoint by @HimaVarsha94 in https://github.com/prometheus/client_golang/pull/773
- Use time.Time for timestamps in Runtimeinfo by @mxey in https://github.com/prometheus/client_golang/pull/777
- fix tests warning about string(int) type conversions by @johejo in https://github.com/prometheus/client_golang/pull/779
- Update collector comment about GC stop-the-world by @roidelapluie in https://github.com/prometheus/client_golang/pull/783
- Remove reference to Metric after reslicing by @hummerd in https://github.com/prometheus/client_golang/pull/784
- Support go 1.15 by @roidelapluie in https://github.com/prometheus/client_golang/pull/792
- Replace with the standard library constant. by @johncming in https://github.com/prometheus/client_golang/pull/793
- Synchronize common files from prometheus/prometheus by @prombot in https://github.com/prometheus/client_golang/pull/797
- Remove spurious commas from links to the docs site by @beorn7 in https://github.com/prometheus/client_golang/pull/800
- API client: Enable fallback on status code 501, too by @beorn7 in https://github.com/prometheus/client_golang/pull/802
- Export MetricVec (again) by @beorn7 in https://github.com/prometheus/client_golang/pull/803
- Cut v1.8.0 by @beorn7 in https://github.com/prometheus/client_golang/pull/806
New Contributors
- @HimaVarsha94 made their first contribution in https://github.com/prometheus/client_golang/pull/773
- @mxey made their first contribution in https://github.com/prometheus/client_golang/pull/777
- @hummerd made their first contribution in https://github.com/prometheus/client_golang/pull/784
- @johncming made their first contribution in https://github.com/prometheus/client_golang/pull/793
Full Changelog: https://github.com/prometheus/client_golang/compare/v1.7.1...v1.8.0
v1.7.1
: 1.7.1 / 2020-06-23
- [BUGFIX] API client: Actually propagate start/end parameters of
LabelNames
andLabelValues
. #771
v1.7.0
: 1.7.0 / 2020-06-17
- [CHANGE] API client: Add start/end parameters to
LabelNames
andLabelValues
. #767 - [FEATURE] testutil: Add
GatherAndCount
and enable filtering inCollectAndCount
#753 - [FEATURE] API client: Add support for
status
andruntimeinfo
endpoints. #755 - [ENHANCEMENT] Wrapping
nil
with aWrapRegistererWith...
function creates a no-opRegisterer
. #764 - [ENHANCEMENT] promlint: Allow Kelvin as a base unit for cases like color temperature. #761
- [BUGFIX] push: Properly handle empty job and label values. #752
v1.6.0
: 1.6.0 / 2020-04-28
- [FEATURE] testutil: Add lint checks for metrics, including a sub-package
promlint
to expose the linter engine for external usage. #739 #743 - [ENHANCEMENT] API client: Improve error messages. #731
- [BUGFIX] process collector: Fix
process_resident_memory_bytes
on 32bit MS Windows. #734
v1.5.1
: 1.5.1 / 2020-03-14
- [BUGFIX] promhttp: Remove another superfluous
WriteHeader
call.
v1.5.0
: 1.5.0 / 2020-03-03
- [FEATURE] promauto: Add a factory to allow automatic registration with a local registry. #713
- [FEATURE] promauto: Add
NewUntypedFunc
. #713 - [FEATURE] API client: Support new metadata endpoint. #718
v1.4.1
: 1.4.1 / 2020-02-07
- [BUGFIX] Fix timestamp of exemplars in
CounterVec
. #710
v1.4.0
: 1.4.0 / 2020-01-27
- [CHANGE] Go collector: Improve doc string for
go_gc_duration_seconds
. #702 - [FEATURE] Support a subset of OpenMetrics, including exemplars. Needs opt-in via
promhttp.HandlerOpts
. EXPERIMENTAL #706 - [FEATURE] Add
testutil.CollectAndCount
. #703
v1.3.0
: 1.3.0 / 2019-12-21
- [FEATURE] Support tags in Graphite bridge. #668
- [BUGFIX] API client: Actually return Prometheus warnings. #699
v1.2.1
: 1.2.1 / 2019-10-17
1.2.1 / 2019-10-17
- [BUGFIX] Fix regression in the implementation of
Registerer.Unregister
. #663
v1.2.0
: 1.2.0 / 2019-10-15
- [FEATURE] Support pushing to Pushgateway v0.10+. #652
- [ENHANCEMENT] Improve hashing to make a spurious
AlreadyRegisteredError
less likely to occur. #657 - [ENHANCEMENT] API client: Add godoc examples. #630
- [BUGFIX] promhttp: Correctly call WriteHeader in HTTP middleware. #634
v1.1.0
: 1.1.0 / 2019-08-01
- [CHANGE] API client: Format time as UTC rather than RFC3339Nano. #617
- [CHANGE] API client: Add warnings to
LabelValues
andLabelNames
calls. #609 - [FEATURE] Push: Support base64 encoding in grouping key. #624
- [FEATURE] Push: Add Delete method to Pusher. #613
v1.0.0
: 1.0.0 / 2019-06-15
This release removes all previously deprecated features, resulting in the breaking changes listed below. As this is v1.0.0, semantic versioning applies from now on, with the exception of the API client and parts marked explicitly as experimental.
- [CHANGE] Remove objectives from the default
Summary
. (Objectives have to be set explicitly in theSummaryOpts
.) #600 - [CHANGE] Remove all HTTP related feature in the
prometheus
package. (Use thepromhttp
package instead.) #600 - [CHANGE] Remove
push.FromGatherer
,push.AddFromGatherer
,push.Collectors
. (Usepush.New
instead.) #600 - [CHANGE] API client: Pass warnings through on non-error responses. #599
- [CHANGE] API client: Add warnings to
Series
call. #603 - [FEATURE] Make process collector work on Microsoft Windows. EXPERIMENTAL #596
- [FEATURE] API client: Add
/labels
call. #604 - [BUGFIX] Make
AlreadyRegisteredError
usable for wrapped registries. #607
v0.9.4
: 0.9.4 / 2019-06-07
- [CHANGE] API client: Switch to alert values as strings. #585
- [FEATURE] Add a collector for Go module build information. #595
- [FEATURE] promhttp: Add an counter for internal errors during HTTP exposition. #594
- [FEATURE] API client: Support target metadata API. #590
- [FEATURE] API client: Support storage warnings. #562
- [ENHANCEMENT] API client: Improve performance handling JSON. #570
- [BUGFIX] Reduce test flakiness. #573
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.