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

Update module github.com/prometheus/client_golang to v1.20.5 #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/prometheus/client_golang v1.19.1 -> v1.20.5 age adoption passing confidence

Release Notes

prometheus/client_golang (github.com/prometheus/client_golang)

v1.20.5: / 2024-10-15

Compare Source

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

Compare Source

  • [BUGFIX] histograms: Fix a possible data race when appending exemplars vs metrics gather. #​1623

v1.20.3

Compare Source

  • [BUGFIX] histograms: Fix possible data race when appending exemplars. #​1608

v1.20.2

Compare Source

  • [BUGFIX] promhttp: Unset Content-Encoding header when data is uncompressed. #​1596

v1.20.1

Compare Source

  • [BUGFIX] process-collector: Fixed unregistered descriptor error when using process collector with PedanticRegistry on Linux machines. #​1587

v1.20.0

Compare Source

Thanks everyone for contributions!

⚠️ 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] ⚠️ go-collector: Remove go_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 and go_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 request Accept-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 and process_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

New Contributors

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


Configuration

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

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

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Aug 21, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 7 additional dependencies were updated

Details:

Package Change
github.com/cespare/xxhash/v2 v2.2.0 -> v2.3.0
github.com/klauspost/compress v1.16.3 -> v1.17.9
github.com/prometheus/client_model v0.5.0 -> v0.6.1
github.com/prometheus/common v0.48.0 -> v0.55.0
github.com/prometheus/procfs v0.12.0 -> v0.15.1
golang.org/x/sys v0.17.0 -> v0.22.0
google.golang.org/protobuf v1.33.0 -> v1.34.2

Copy link

[puLL-Merge] - prometheus/[email protected]

Description

This PR updates the client_golang library with several improvements and new features. The main changes include:

  1. Adding support for zstd compression in promhttp.
  2. Updating Go collector metrics and tests for newer Go versions.
  3. Improving histogram implementation with exemplar support.
  4. Refactoring and enhancing various parts of the codebase.
  5. Updating dependencies and adjusting CI workflows.

Possible Issues

  1. The removal of go_memstats_lookups_total metric might affect existing users who rely on this metric.
  2. The changes to the default metrics in the Go collector could impact users who expect certain metrics to be present or absent by default.

Security Hotspots

None identified. The changes appear to be focused on feature improvements and internal refactoring rather than security-sensitive areas.

Changes

Changes

  1. .github/workflows/:

    • Updated various GitHub Actions workflows for better concurrency handling and dependency updates.
    • Added new workflows for container description pushing and Dagger-based linting.
  2. prometheus/:

    • Added support for zstd compression in promhttp.
    • Updated Go collector metrics and tests for Go versions 1.20, 1.21, and 1.22.
    • Improved histogram implementation with exemplar support.
    • Added new constant metrics with created timestamps.
    • Enhanced testutil package with new functions and improved comparisons.
  3. dagger/:

    • Added new Dagger configuration and implementation for CI/CD purposes.
  4. Makefile:

    • Updated to support new Go versions and Dagger integration.
  5. go.mod and go.sum:

    • Updated dependencies to newer versions.
  6. Root directory:

    • Added supported_go_versions.txt and update-go-version.bash for managing supported Go versions.
  7. tutorials/:

    • Renamed tutorial directory to tutorials and updated related imports.

Overall, this PR significantly enhances the client_golang library with new features, better testing, and improved CI/CD processes.

@renovate renovate bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 00babee to 1c1cf4d Compare August 24, 2024 14:14
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.0 Update module github.com/prometheus/client_golang to v1.20.1 Aug 24, 2024
Copy link

[puLL-Merge] - prometheus/[email protected]

Description

This PR updates the client_golang library with several enhancements and changes. The main motivations for these changes appear to be:

  1. Updating Go version support and related metrics
  2. Improving code quality and test coverage
  3. Adding new features and fixing bugs
  4. Updating dependencies
Changes

Changes

  1. Go Version and Metrics:

    • Added support for Go 1.22
    • Updated Go collector metrics for new versions
    • Added a script to automatically update supported Go versions
  2. Code Quality and Tests:

    • Improved test coverage and added new test cases
    • Refactored some existing tests for better clarity
    • Added linting improvements and fixed some linting issues
  3. New Features and Bug Fixes:

    • Added support for zstd compression in promhttp
    • Implemented exemplar support for native histograms
    • Fixed issues with process collector on Linux
    • Added new metrics and updated existing ones
  4. Dependencies and Build:

    • Updated various dependencies to newer versions
    • Introduced Dagger for build processes
    • Moved tutorial files to a new location
  5. Documentation:

    • Updated CHANGELOG.md with new features and bug fixes
    • Improved documentation in various parts of the code
  6. CI/CD:

    • Updated GitHub Actions workflows
    • Added new workflows for updating Go versions and Docker Hub descriptions

Possible Issues

  • The change in metric names and behaviors might cause backward compatibility issues for users relying on specific metric outputs.
  • The introduction of new dependencies (e.g., zstd) might increase the library's footprint.

Security Hotspots

No significant security issues are apparent in this change. However, the introduction of new dependencies and features (like zstd compression) should be monitored for potential vulnerabilities.

@renovate renovate bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 1c1cf4d to 608adce Compare August 27, 2024 19:45
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.1 Update module github.com/prometheus/client_golang to v1.20.2 Aug 27, 2024
Copy link

[puLL-Merge] - prometheus/[email protected]

Description

This PR introduces several significant changes to the client_golang repository, including updates to the Go version support, improvements to the test suite, additions to the collector metrics, and various other enhancements and bug fixes.

Changes

Changes

  1. .github/workflows/:

    • Updated several workflow files, including automerge-dependabot, codeql-analysis, and go.yml.
    • Added new workflows for container description, dagger-golangci-lint, and update-go-versions.
  2. dagger/:

    • Added new directory with Dagger-related files for CI/CD improvements.
  3. prometheus/:

    • Updated and added several test files for go collectors.
    • Modified go_collector.go and go_collector_latest.go with new metrics and improvements.
    • Updated histogram.go with support for exemplars in native histograms.
    • Modified promhttp/http.go to add support for zstd compression.
    • Updated various other files with bug fixes and improvements.
  4. Root directory:

    • Added supported_go_versions.txt file.
    • Added update-go-version.bash script for automating Go version updates.
    • Updated Makefile, go.mod, go.sum, and other configuration files.
  5. Moved tutorial directory to tutorials.

Possible Issues

  1. The changes to the Go collector metrics might require updates to existing monitoring configurations.
  2. The addition of zstd compression support may need testing in various environments to ensure compatibility.

Security Hotspots

No significant security issues were identified in this change. However, as with any major update, it's recommended to thoroughly test the changes, especially the new compression features and collector metrics, to ensure they don't introduce any unexpected vulnerabilities.

@renovate renovate bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 608adce to e51d5df Compare September 9, 2024 12:56
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.2 Update module github.com/prometheus/client_golang to v1.20.3 Sep 9, 2024
Copy link

github-actions bot commented Sep 9, 2024

[puLL-Merge] - prometheus/[email protected]

Description

This PR introduces several significant changes and updates to the prometheus/client_golang repository. The changes include updating Go versions, adding new features, improving existing functionality, and restructuring some parts of the codebase.

Changes

Changes

  1. .github/workflows/:

    • Updated various GitHub Actions workflows, including dependency updates and new workflows for container description and Go linting using Dagger.
  2. dagger/:

    • Added new Dagger configuration and Go files for build automation.
  3. prometheus/:

    • Updated Go collector metrics and tests for Go versions 1.20, 1.21, and 1.22.
    • Added support for exemplars in native histograms.
    • Improved error handling and logging in various parts of the code.
    • Updated dependencies and Go versions.
  4. prometheus/testutil/:

    • Added new test utility functions and improved existing ones.
  5. prometheus/promhttp/:

    • Added support for zstd compression in HTTP responses.
    • Improved handling of content encoding headers.
  6. Root directory:

    • Added supported_go_versions.txt file to manage supported Go versions.
    • Added update-go-version.bash script to automate Go version updates.
  7. Renamed tutorial/ directory to tutorials/.

  8. Various documentation updates and improvements throughout the codebase.

Possible Issues

  1. The renaming of the tutorial/ directory to tutorials/ may break existing references or imports in projects using this library.

  2. The changes to the Go collector metrics and tests for different Go versions might require users to update their code if they rely on specific metrics or behavior tied to Go versions.

Security Hotspots

  1. The addition of zstd compression support in prometheus/promhttp/ should be carefully reviewed to ensure it doesn't introduce any security vulnerabilities related to data compression or decompression.

  2. The changes to error handling and logging should be reviewed to ensure no sensitive information is accidentally exposed in logs or error messages.

@renovate renovate bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from e51d5df to 500fe28 Compare September 17, 2024 10:25
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.3 Update module github.com/prometheus/client_golang to v1.20.4 Sep 17, 2024
Copy link

[puLL-Merge] - prometheus/[email protected]

Description

This PR makes several significant changes to the codebase, including updating dependencies, adding new features, improving existing functionality, and restructuring some parts of the project. The main motivation appears to be keeping the project up-to-date with the latest Go versions and improving its overall functionality and maintainability.

Changes

Changes

  1. .github/workflows/:

    • Updated various GitHub Actions workflows, including automerge, CodeQL analysis, and Go testing.
    • Added new workflows for container description pushing and Dagger-based linting.
  2. dagger/:

    • Added Dagger configuration and Go files for build automation.
  3. prometheus/:

    • Updated Go collector metrics and tests for different Go versions.
    • Added support for exemplars in native histograms.
    • Improved error handling and logging in various parts of the code.
    • Updated promhttp package to support zstd compression.
    • Added new metrics and improved existing ones in the Go collector.
    • Updated process collector to include network usage metrics.
    • Added support for created timestamps in constant histograms and summaries.
  4. prometheus/testutil/:

    • Added new test utilities and improved existing ones.
  5. prometheus/promhttp/:

    • Added support for zstd compression in HTTP responses.
    • Improved content negotiation for compression.
  6. Root directory:

    • Updated go.mod and go.sum files with new dependencies.
    • Added supported_go_versions.txt and update-go-version.bash for managing supported Go versions.
  7. Renamed tutorial directory to tutorials.

Possible Issues

  1. The changes to compression support in promhttp might require careful testing to ensure compatibility with existing clients.
  2. The addition of new metrics and changes to existing ones might require updates to documentation and potentially affect users who rely on the current metric structure.

Security Hotspots

  1. The addition of zstd compression support in promhttp should be carefully reviewed to ensure it doesn't introduce any security vulnerabilities.
  2. The changes to the process collector, particularly the addition of network usage metrics, should be reviewed to ensure they don't expose sensitive information.

@renovate renovate bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 500fe28 to 17ebe1d Compare October 19, 2024 10:23
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.4 Update module github.com/prometheus/client_golang to v1.20.5 Oct 19, 2024
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.5 Update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Oct 29, 2024
@renovate renovate bot closed this Oct 29, 2024
@renovate renovate bot deleted the renovate/github.com-prometheus-client_golang-1.x branch October 29, 2024 05:12
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Update module github.com/prometheus/client_golang to v1.20.5 Oct 29, 2024
@renovate renovate bot reopened this Oct 29, 2024
@renovate renovate bot restored the renovate/github.com-prometheus-client_golang-1.x branch October 29, 2024 08:10
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.5 Update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Nov 9, 2024
@renovate renovate bot closed this Nov 9, 2024
@renovate renovate bot deleted the renovate/github.com-prometheus-client_golang-1.x branch November 9, 2024 13:37
@renovate renovate bot changed the title Update module github.com/prometheus/client_golang to v1.20.5 - autoclosed Update module github.com/prometheus/client_golang to v1.20.5 Nov 13, 2024
@renovate renovate bot reopened this Nov 13, 2024
@renovate renovate bot force-pushed the renovate/github.com-prometheus-client_golang-1.x branch from 94a4d54 to 17ebe1d Compare November 13, 2024 02:32
Copy link

[puLL-Merge] - prometheus/[email protected]

Description

This PR updates the client_golang repository with several changes, including updating dependencies, adding new features, improving existing functionality, and updating the project structure. The main motivations appear to be keeping the library up-to-date with the latest Go versions, improving performance, and adding new capabilities.

Changes

Changes

  1. .github/workflows/:

    • Updated and added several GitHub Actions workflows for automating tasks like dependency updates, linting, and testing.
    • Added a new workflow for updating Go versions automatically.
  2. dagger/:

    • Added a new directory for Dagger-related files, including configuration and Go files for build automation.
  3. prometheus/:

    • Updated various collector files, including improvements to the Go collector and process collector.
    • Added support for exemplars in native histograms.
    • Improved compression support in HTTP handlers.
    • Updated metric naming and descriptions.
    • Added new runtime metrics and default metrics.
  4. prometheus/testutil/:

    • Added new linting rules and improved existing ones.
    • Updated test utilities and comparison functions.
  5. Root directory:

    • Updated go.mod and go.sum files with new dependencies and versions.
    • Added supported_go_versions.txt file to manage supported Go versions.
    • Moved tutorial directory to tutorials.
  6. Documentation:

    • Updated CHANGELOG.md with new features and bug fixes.
    • Made minor updates to README.md and CONTRIBUTING.md.

Possible Issues

  1. The changes to the Go collector and process collector may require users to update their code if they rely on specific metric names or behaviors that have been modified.
  2. The addition of new default runtime metrics might increase the number of metrics exposed by default, potentially affecting existing monitoring setups.

Security Hotspots

No significant security issues were identified in this change. However, the addition of new compression formats (zstd) in the HTTP handlers should be carefully reviewed to ensure proper implementation and avoid potential vulnerabilities related to decompression attacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants