Commit graph

2324 commits

Author SHA1 Message Date
Ben Kochie be19d537cd
Fix Go minimum version (#3378)
Update `github.com/safchain/ethtool` to fix Go 1.23.x backwards
compatibility.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-08-07 12:34:08 +02:00
dependabot[bot] e2f4986c64
build(deps): bump github.com/opencontainers/selinux (#3300)
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.11.1 to 1.12.0.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.11.1...v1.12.0)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/selinux
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 18:53:09 +02:00
dependabot[bot] 7a62ec931e
build(deps): bump github.com/prometheus/client_golang (#3370)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.21.1 to 1.23.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.21.1...v1.23.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 18:15:11 +02:00
dependabot[bot] 2a25c1f8f8
build(deps): bump github.com/mdlayher/wifi from 0.5.0 to 0.6.0 (#3372)
Bumps [github.com/mdlayher/wifi](https://github.com/mdlayher/wifi) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/mdlayher/wifi/releases)
- [Commits](https://github.com/mdlayher/wifi/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/mdlayher/wifi
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 18:14:57 +02:00
dependabot[bot] 744cee7e19
build(deps): bump github.com/prometheus/common from 0.64.0 to 0.65.0 (#3369)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.64.0 to 0.65.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/common/compare/v0.64.0...v0.65.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-version: 0.65.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 17:52:32 +02:00
dependabot[bot] a8ec35353f
build(deps): bump golang.org/x/sys from 0.33.0 to 0.34.0 (#3371)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/sys/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 17:51:21 +02:00
Bryan Boreham b57f5bab2d
Fix logging race in systemd_linux.go (#3364)
The same variable was used for timing every parallel operation.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-07-26 19:35:01 +02:00
Naoki MATSUMOTO 05c68e2040
Add collector for PCIe devices with link information (#3339)
* Add collector for PCIe devices with link information

The link status of PCIe devices sometimes changes,
like link or speed downgrades, and devices disappear.
This patch collects PCIe devices' link infromation  to detect such failures.

As a first step, this collector exports PCIe devices'
- Device information (vendor_id, device_id, etc.)
- Parent PCIe device (e.g. PCIe bridge, PCIe switch)
- Link status (max_link_{transfers_per_second|width}, current_link_{transfers_per_second|width})

---------

Signed-off-by: Naoki MATSUMOTO <m.naoki9911@gmail.com>
2025-07-25 15:58:50 +02:00
dependabot[bot] 581a9090e4
build(deps): bump github.com/jsimonetti/rtnetlink/v2 from 2.0.2 to 2.0.5 (#3353)
Bumps [github.com/jsimonetti/rtnetlink/v2](https://github.com/jsimonetti/rtnetlink) from 2.0.2 to 2.0.5.
- [Release notes](https://github.com/jsimonetti/rtnetlink/releases)
- [Commits](https://github.com/jsimonetti/rtnetlink/compare/v2.0.2...v2.0.5)

---
updated-dependencies:
- dependency-name: github.com/jsimonetti/rtnetlink/v2
  dependency-version: 2.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-07 15:17:10 +02:00
dependabot[bot] ac8754aa82
build(deps): bump github.com/safchain/ethtool from 0.5.10 to 0.6.1 (#3342)
Bumps [github.com/safchain/ethtool](https://github.com/safchain/ethtool) from 0.5.10 to 0.6.1.
- [Release notes](https://github.com/safchain/ethtool/releases)
- [Commits](https://github.com/safchain/ethtool/compare/v0.5.10...v0.6.1)

---
updated-dependencies:
- dependency-name: github.com/safchain/ethtool
  dependency-version: 0.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-07 15:15:46 +02:00
dependabot[bot] d704ad2886
build(deps): bump github.com/mdlayher/ethtool from 0.2.0 to 0.4.0 (#3343)
Bumps [github.com/mdlayher/ethtool](https://github.com/mdlayher/ethtool) from 0.2.0 to 0.4.0.
- [Release notes](https://github.com/mdlayher/ethtool/releases)
- [Commits](https://github.com/mdlayher/ethtool/compare/v0.2.0...v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/mdlayher/ethtool
  dependency-version: 0.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-07 15:03:07 +02:00
Ben Kochie 6588cc636b
Update procfs library (#3355)
Update procfs library and adjust fixtures for update.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-07-07 15:02:39 +02:00
mengxun 2179f0a34d
fix:use %w to wrap error (#3345)
Signed-off-by: mengxun <mengxun1122@163.com>
2025-06-11 17:00:43 +02:00
Manuel Rüger 2a2f16cd28
chore: Lint with golangci-lint v2 (#3301)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2025-05-31 08:08:50 +02:00
Michael Fuller 3c96dfb981 go.mod: bump procfs to 0.16.1, go mod tidy
Signed-off-by: Michael Fuller <mfuller@lambdal.com>
2025-05-30 12:47:42 +02:00
dependabot[bot] c8e1789774 build(deps): bump github.com/prometheus/common from 0.62.0 to 0.63.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.62.0 to 0.63.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](https://github.com/prometheus/common/compare/v0.62.0...v0.63.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-version: 0.63.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-30 12:45:42 +02:00
Johannes Ziemke 7e801c90c3 AIX: Add netinterface collector
While having overlap with NetAdpter metrics, the metrics are slightly different
so need to be exposed as well.

Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 709388ed15 AIX: Fix disk blocks to bytes conversion
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 4d053b94a9 AIX: Remove redundant disk blocks metric, fix times
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 0e8817612a AIX: Fix physical cpu usage calculation
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 940e73b895 AIX: Add context switches to cpu collector
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 0cb7b61fd6 AIX: Add partition stats
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 430023e7e2 AIX: Add netadapter collision counters
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 481b824b08 AIX: Add transmit_queue_overflow metric to netdev collector
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 65d2538f14 AIX: Add paging memory metrics
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 2c33bc58ea AIX: Add more disk metrics
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Johannes Ziemke 853af0cec0 AIX: Add physical cpu, runqueue and flag metrics
Signed-off-by: Johannes Ziemke <github@5pi.de>
2025-05-28 19:19:02 +02:00
Nabil e942bae99f
chore: fix some typos (#3316)
Signed-off-by: Nabil <nabilcharaf37@gmail.com>
2025-05-21 19:53:59 +02:00
dependabot[bot] 467d1f3d7d
build(deps): bump golang.org/x/sys from 0.30.0 to 0.32.0 (#3324)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.30.0 to 0.32.0.
- [Commits](https://github.com/golang/sys/compare/v0.30.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 11:48:03 +02:00
Guillaume E. 45eb59d29e
Fix ethtool returning 0 for sanitized metrics (#3335)
The ethtool_linux looks for ethtool stats with their sanitized name
which might be different from the name provisioned by ethtool.

This caused node-exporter to return a 0-value for sanitized metrics.

This patch works-around the missing key by copying ethtool stats
to another map under their sanitized name.

Signed-off-by: Guillaume Espanel <guillaume.espanel@ovhcloud.com>
Co-authored-by: Guillaume Espanel <guillaume.espanel@ovhcloud.com>
2025-05-19 11:41:17 +02:00
dependabot[bot] 67ebd4c4ff
build(deps): bump github.com/mdlayher/wifi from 0.3.1 to 0.5.0 (#3323)
Bumps [github.com/mdlayher/wifi](https://github.com/mdlayher/wifi) from 0.3.1 to 0.5.0.
- [Release notes](https://github.com/mdlayher/wifi/releases)
- [Commits](https://github.com/mdlayher/wifi/compare/v0.3.1...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/mdlayher/wifi
  dependency-version: 0.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-18 11:54:03 +02:00
Siavash Safi 979a349637
fix: darwin netdev i/o bytes metric (#3336)
There is a bug in darwin kernel since macOS Ventura 13.2.1,
which results in interface i/o bytes values to be truncated at 4GiB.
This change uses a workaround to collect the same metrics,
taking advantage of another bug.

fixes #3333

Signed-off-by: Siavash Safi <git@hosted.run>
2025-05-18 11:53:48 +02:00
Charlie Chiang 43fb05c81d
Fix macos filesystem collector cgo memory leak (#3315)
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
2025-05-15 08:41:20 +02:00
Ben Kochie 38d32a3977
pressure: Fix missing IRQ on older kernels (#3263)
Fix "no data" error on kernels that support some PSI status, but don't
yet have IRQ presure metrics. Only report "no data" error if `pressure`
is enabled and no PSI metrics were found.

Fixes: https://github.com/prometheus/node_exporter/issues/3259

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-03-31 17:52:53 +02:00
dependabot[bot] 2401158dd7
build(deps): bump golang.org/x/net from 0.33.0 to 0.36.0 (#3266)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.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>
2025-03-31 12:47:56 +02:00
dependabot[bot] e44309c825
build(deps): bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0 (#3262)
* build(deps): bump github.com/prometheus/client_golang

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.5 to 1.21.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.20.5...v1.21.0)

Signed-off-by: Ben Kochie <superq@gmail.com>

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update e2e fixtures for new client_golang.

Signed-off-by: Ben Kochie <superq@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ben Kochie <superq@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
2025-03-31 12:47:39 +02:00
Manuel Rüger 8804ce1551
diskstats: Simplify condition (#3290)
As the comment says, this can be simplified now.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2025-03-31 12:47:22 +02:00
Ben Kochie e5caa394c8
Sanitize darwin thermal strings (#3294)
Use `utils.SafeBytesToString()` to sanitize C strings the Darwin
thermal collector.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-03-31 12:46:39 +02:00
PrometheusBot 8c3f1a2da3
Update common Prometheus files (#3291)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-03-31 11:00:53 +02:00
Ben Kochie 729a03136f
Fix OpenBSD interrupt device parsing (#3288)
Sanitize zero terminated strings from OpenBSD device name parsing.
* Add byte-to-string util function.

Fixes: https://github.com/prometheus/node_exporter/issues/3287

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-03-31 11:00:34 +02:00
Ben Kochie e768aad83d
Fix flaky Solaris test (#3289)
Ignore `node_cpu_frequency_max_hertz` to fix flaky Solaris end-to-end
test.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-03-28 10:48:44 +01:00
PrometheusBot 93b79b44bd
Update common Prometheus files (#3286)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-03-27 18:56:08 +01:00
PrometheusBot 9b898b8df4
Update common Prometheus files (#3264)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
2025-03-27 11:45:52 +01:00
Ben Kochie 58ac08e216
Fix linter warning (#3280)
Fix S1009: should omit nil check; len() for nil maps is defined as zero (gosimple)

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-03-27 09:57:33 +01:00
Rolf Klemenz 47e2bb34ce
Avoid memory leak by using value rather than reference. (#3277)
Signed-off-by: Rolf Klemenz <tickez@madnet.ch>
2025-03-26 15:30:46 +01:00
Ben Kochie 5d458955be
Update Go to 1.24 (#3273)
* Update Go to 1.24 for all builds.
* Update minimum Go version to 1.23.
* Bump procfs library.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-03-26 09:46:27 +01:00
Pranshu Srivastava 0c10545e8d
collector/mdadm: Support RAID metrics (#3031)
Use `sysfs` for RAID stats.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2025-02-24 10:19:48 +01:00
Ibrahim Awwad 6cfb6437fc
feat: add SystemdVirtualization type (#3254)
* feat: add SystemdVirtualization type
---------

Signed-off-by: IbraAoad <Ibrahim.Awwad@canonical.com>
Signed-off-by: Ibrahim Awwad <ibraaoad@gmail.com>
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
Signed-off-by: Alexander Soelberg Heidarsson <89837986+alex5517@users.noreply.github.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
Co-authored-by: Alexander Soelberg Heidarsson <89837986+alex5517@users.noreply.github.com>
2025-02-23 13:26:37 +01:00
Alexander Soelberg Heidarsson ae746c8b1d bugfix: 🐛 remove invalid variable from cluster use dashboards
Signed-off-by: Alexander Soelberg Heidarsson <89837986+alex5517@users.noreply.github.com>
2025-02-20 08:25:48 +01:00
Mikel Olasagasti Uranga 7c69600661
build(deps): remove leftover from #3160 (#3255)
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
2025-02-19 12:34:16 +01:00