Skip to content

Upgrade prometheus/procfs dependency, use Go1.21#296

Merged
ncabatoff merged 3 commits intoncabatoff:masterfrom
Maxi-Mega:upgrade-prometheus-procfs
Apr 28, 2024
Merged

Upgrade prometheus/procfs dependency, use Go1.21#296
ncabatoff merged 3 commits intoncabatoff:masterfrom
Maxi-Mega:upgrade-prometheus-procfs

Conversation

@Maxi-Mega
Copy link
Copy Markdown
Contributor

prometheus/procfs v0.14.0 introduced a (breaking) change to «Use kernel-compliant types for {U,G}IDs».
In summary, for what this PR addresses, the type of the UIDs field of procfs.ProcStatus changed from [4]string to [4]uint64.

Beside that, they also defined Go1.21 as the minimum required version.

@ncabatoff ncabatoff merged commit f6ae132 into ncabatoff:master Apr 28, 2024
@ncabatoff
Copy link
Copy Markdown
Owner

Thanks!

zviRosenfeldRedis added a commit to RedisLabs/process-exporter that referenced this pull request Jun 16, 2024
* update deps

* Finish updating to Go 1.22

* Update Dockerfile for Go 1.22

* Add -recheck-with-time-limit support (ncabatoff#223)

process-exporter already supports the -recheck flag which makes it run
the whole matching logic on each scrape. This is very useful when trying
to monitor processes which change their names shortly after start.

Sadly, -recheck carries a rather high performance penalty. At the same
time, process name changes are very common directly after start, are
seldomly expected during usage.

This commit introduces -recheck-with-time-limit which rechecks processes
N seconds after their start and stops doing so afterwards. This combines
the accuracy benefits of -recheck with the performance gains of not
using -recheck.

* Fix server start error (ncabatoff#295)

* Update release action to use newer actions.  Use latest goreleaser version.  Use CGO_ENABLED in its config instead of tags.

* Upgrade prometheus/procfs dependency, use Go1.21 (ncabatoff#296)

* Upgrade prometheus/procfs dependency and therefore set Go1.21 in go.mod

* Fix broken compatibility with prometheus/procfs

* Update README for Go1.21

---------

Co-authored-by: Thomas Delbende <thomas.delbende@bleemeo.com>

* split image workflow from build (ncabatoff#299)

Various GHA improvements.

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (ncabatoff#298)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](golang/net@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nick Cabatoff <nick.cabatoff@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: ncabatoff <ncabatoff@hashicorp.com>
Co-authored-by: Christian Hoffmann <christian@hoffie.info>
Co-authored-by: AiDaiP <43956964+AiDaiP@users.noreply.github.com>
Co-authored-by: Maxi_Mega <52792549+Maxi-Mega@users.noreply.github.com>
Co-authored-by: Thomas Delbende <thomas.delbende@bleemeo.com>
Co-authored-by: Nick Cabatoff <nick.cabatoff@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants