1
0
mirror of https://github.com/prometheus/node_exporter.git synced 2026-02-06 00:45:19 +01:00
Commit Graph

2347 Commits

Author SHA1 Message Date
Bryan Boreham
745faacd9d Detect when user supplies invalid profiler name
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-10-02 19:02:37 +00:00
Bryan Boreham
7c56028f5f Perf collector: print errors from perf initialization
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-10-01 14:29:26 +00:00
Ben Kochie
b6112eac8a Update Go version (#3429)
* Update default builds to Go 1.25.x.
* Bump Go modules.
* Bump FreeBSD action.
* Fixup MacOS e2e test.
* Fixup FreeBSD e2e test.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-09-27 15:14:56 +02:00
Nemric
b959d48df9 Add erofs in default excluded fs type
Signed-off-by: Nemric <56299157+Nemric@users.noreply.github.com>
2025-09-17 14:50:38 +02:00
v-zhuravlev
a7ab16bb29 Fix NodeBondingDegraded alert
Signed-off-by: v-zhuravlev <v-zhuravlev@users.noreply.github.com>
2025-09-17 14:43:49 +02:00
PrometheusBot
8da4825e48 Update common Prometheus files (#3419)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2025-09-09 21:46:46 +02:00
dependabot[bot]
249eb85805 build(deps): bump golang.org/x/sys from 0.35.0 to 0.36.0 (#3409)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/sys/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.36.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-09-09 11:36:24 +02:00
dependabot[bot]
3c1c506d6c build(deps): bump github.com/prometheus/client_golang (#3410)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.23.1 to 1.23.2.
- [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.23.1...v1.23.2)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.23.2
  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-09-09 10:49:10 +02:00
dependabot[bot]
d14f393db9 build(deps): bump vmactions/solaris-vm from 1.1.1 to 1.1.5 (#3415)
* build(deps): bump vmactions/solaris-vm from 1.1.1 to 1.1.5

Bumps [vmactions/solaris-vm](https://github.com/vmactions/solaris-vm) from 1.1.1 to 1.1.5.
- [Release notes](https://github.com/vmactions/solaris-vm/releases)
- [Commits](cc8f82fa1a...58cbd70c6e)

---
updated-dependencies:
- dependency-name: vmactions/solaris-vm
  dependency-version: 1.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Don't pkg update in solaris.

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-09-09 09:55:08 +02:00
dependabot[bot]
63a219f75c build(deps): bump vmactions/netbsd-vm from 1.1.8 to 1.1.9 (#3417)
* build(deps): bump vmactions/netbsd-vm from 1.1.8 to 1.1.9

Bumps [vmactions/netbsd-vm](https://github.com/vmactions/netbsd-vm) from 1.1.8 to 1.1.9.
- [Release notes](https://github.com/vmactions/netbsd-vm/releases)
- [Commits](46a58bbf03...d0228be27f)

---
updated-dependencies:
- dependency-name: vmactions/netbsd-vm
  dependency-version: 1.1.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Fix netbsd setup

Do install and update in a single command.

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-09-09 07:29:32 +02:00
dependabot[bot]
4566369ded build(deps): bump vmactions/dragonflybsd-vm from 1.1.0 to 1.1.1 (#3416)
Bumps [vmactions/dragonflybsd-vm](https://github.com/vmactions/dragonflybsd-vm) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/vmactions/dragonflybsd-vm/releases)
- [Commits](e3c420e8a2...ff1f01c32b)

---
updated-dependencies:
- dependency-name: vmactions/dragonflybsd-vm
  dependency-version: 1.1.1
  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-09-09 07:10:20 +02:00
dependabot[bot]
3bd5f50305 build(deps): bump vmactions/freebsd-vm from 1.1.9 to 1.2.3 (#3418)
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 1.1.9 to 1.2.3.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](8873d98fd1...05856381fa)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-version: 1.2.3
  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-09-09 07:08:42 +02:00
dependabot[bot]
ae59e263c2 build(deps): bump actions/checkout from 4.2.2 to 5.0.0 (#3411)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](11bd71901b...08c6903cd8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 22:31:03 +02:00
Kemal Akkoyun
18f95ce16a chore: Upgrade golangci-lint to v2 (#3303)
* chore: Upgrade golangci-lint to v2

- Migrate the configuration file
- Update the tooling version and CI
- Apply auto-fixes

Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>

* chore: Upgrade golangci-lint to v2

- Migrate the configuration file
- Update the tooling version and CI
- Apply auto-fixes

Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>

---------

Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
2025-09-08 22:29:08 +02:00
dependabot[bot]
5fcd80addc build(deps): bump vmactions/openbsd-vm from 1.1.6 to 1.2.0 (#3414)
* build(deps): bump vmactions/openbsd-vm from 1.1.6 to 1.2.0

Bumps [vmactions/openbsd-vm](https://github.com/vmactions/openbsd-vm) from 1.1.6 to 1.2.0.
- [Release notes](https://github.com/vmactions/openbsd-vm/releases)
- [Commits](7ac70b6de6...1e7cc4fa77)

---
updated-dependencies:
- dependency-name: vmactions/openbsd-vm
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump OpenBSD Go version.

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-09-08 22:14:36 +02:00
Ben Kochie
2a79d5e800 Enable dependabot for actions (#3406)
Update GitHub actions with dependabot.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-09-08 20:08:21 +02:00
Ben Kochie
2f980160aa Update Prometheus libraries (#3405)
* Bump Prometheus client_golang/common/exporter-toolkit libraries.
* Adapt textfile parser to the new validation scheme.

Signed-off-by: Ben Kochie <superq@gmail.com>
2025-09-05 16:18:25 +02:00
dependabot[bot]
e2161fea58 build(deps): bump github.com/coreos/go-systemd/v22 from 22.5.0 to 22.6.0 (#3395)
Bumps [github.com/coreos/go-systemd/v22](https://github.com/coreos/go-systemd) from 22.5.0 to 22.6.0.
- [Release notes](https://github.com/coreos/go-systemd/releases)
- [Commits](https://github.com/coreos/go-systemd/compare/v22.5.0...v22.6.0)

---
updated-dependencies:
- dependency-name: github.com/coreos/go-systemd/v22
  dependency-version: 22.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-09-05 15:34:14 +02:00
dependabot[bot]
222cccd603 build(deps): bump github.com/mdlayher/ethtool from 0.4.0 to 0.4.1 (#3394)
Bumps [github.com/mdlayher/ethtool](https://github.com/mdlayher/ethtool) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/mdlayher/ethtool/releases)
- [Commits](https://github.com/mdlayher/ethtool/compare/v0.4.0...v0.4.1)

---
updated-dependencies:
- dependency-name: github.com/mdlayher/ethtool
  dependency-version: 0.4.1
  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-09-05 15:34:03 +02:00
Ahmed Khaled
6471fa313e fix dupblicate cgo import, use double instead of Float64 in C function return (#3391)
Signed-off-by: Ahmed Abdulraziq <ahmed.khaled.abdulraziq@gmail.com>
2025-08-31 08:53:40 +02:00
nicbaz
434fb7d864 filesystem: take super options into account for read-only (#3387)
* filesystem: take super options into account for read-only

With the latest change implemented to use `mountinfo` instead of
`mounts` there was a regression in filesystem readonly detection
due to super options not taken into account: filesystems that would
previously be marked a "read-only" would not anymore because that
information had moved to super options instead of mount options on
certain occasions.

fixes #3157

Signed-off-by: nicbaz <932244+nicbaz@users.noreply.github.com>

* filesystem: use faster integer to string implementation

Signed-off-by: nicbaz <932244+nicbaz@users.noreply.github.com>

---------

Signed-off-by: nicbaz <932244+nicbaz@users.noreply.github.com>
2025-08-27 16:22:23 +02:00
Daniel Swarbrick
b4c3b68ee1 Merge pull request #3386 from dswarbrick/native
tcpstat: use std lib binary.NativeEndian instead of third-party package
2025-08-25 19:13:49 +02:00
Daniel Swarbrick
9caf48f9fa tcpstat: use std lib binary.NativeEndian
Use standard lib binary.NativeEndian instead of third-party package.
Supported since Go 1.21.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2025-08-25 08:55:23 +02:00
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