Skip to content

Commit e18b51a

Browse files
Merge branch 'master' into master
2 parents 4edb9d9 + b306b63 commit e18b51a

File tree

191 files changed

+3902
-587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+3902
-587
lines changed

.github/workflows/bsd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
GO_VERSION_DRAGONFLY: "1.25.1"
1717
GO_VERSION_FREEBSD: "125"
1818
GO_VERSION_NETBSD: "1.25.1"
19-
GO_VERSION_OPENBSD: "1.24.1"
19+
GO_VERSION_OPENBSD: "1.25.1"
2020
GO_VERSION_SOLARIS: "1.25.1"
2121

2222
# To spin up one of the VMs below, see the "Debug Shell" section here: https://github.com/vmactions
@@ -30,7 +30,7 @@ jobs:
3030
- name: test-e2e
3131
uses: vmactions/freebsd-vm@487ce35b96fae3e60d45b521735f5aa436ecfade # v1.2.4
3232
with:
33-
release: "15.0"
33+
release: "14.3"
3434
copyback: false
3535
envs: 'GO_VERSION_FREEBSD GNU_TAR_VERSION'
3636
usesh: true
@@ -76,7 +76,7 @@ jobs:
7676
- name: Checkout the repository
7777
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7878
- name: test-e2e
79-
uses: vmactions/openbsd-vm@1e7cc4fa7727646d3cf5921289b1f5c9d1a88f3c # v1.2.0
79+
uses: vmactions/openbsd-vm@a254d784d6fad46e22ef73c6ecbb1dc310b04777 # v1.2.3
8080
with:
8181
copyback: false
8282
envs: 'GO_VERSION_OPENBSD GNU_TAR_VERSION'
@@ -90,7 +90,7 @@ jobs:
9090
gmake \
9191
go-${GO_VERSION_OPENBSD} \
9292
gsed \
93-
gtar-${GNU_TAR_VERSION}p0-static \
93+
gtar-${GNU_TAR_VERSION}p1-static \
9494
python \
9595
wget
9696
run: |
@@ -122,7 +122,7 @@ jobs:
122122
- name: Checkout the repository
123123
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
124124
- name: test-e2e
125-
uses: vmactions/netbsd-vm@d0228be27fbaba19418cc1b332609a895cf16561 # v1.1.9
125+
uses: vmactions/netbsd-vm@7aea50f9eb16df034be5d71eb81fea9804505c28 # v1.2.0
126126
with:
127127
copyback: false
128128
envs: 'GO_VERSION_NETBSD GNU_TAR_VERSION'
@@ -271,7 +271,7 @@ jobs:
271271
echo "::endgroup::"
272272
273273
test_macos:
274-
name: Run end-to-end tests on macOS
274+
name: Run end-to-end tests on Darwin/MacOS
275275
runs-on: macos-latest
276276
steps:
277277
- name: Checkout the repository
@@ -308,5 +308,5 @@ jobs:
308308
309309
echo "::group::Run End-to-End Tests"
310310
git config --global --add safe.directory $(pwd)
311-
make test-e2e
311+
make test-e2e E2E_EXTRA_FLAGS='--collector.diskstats.device-include=disk[04]'
312312
echo "::endgroup::"

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ jobs:
2828
with:
2929
persist-credentials: false
3030
- name: Install Go
31-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
31+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3232
with:
3333
go-version: 1.25.x
3434
- name: Install snmp_exporter/generator dependencies
3535
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
3636
if: github.repository == 'prometheus/snmp_exporter'
37+
- name: Get golangci-lint version
38+
id: golangci-lint-version
39+
run: echo "version=$(make print-golangci-lint-version)" >> $GITHUB_OUTPUT
3740
- name: Lint
3841
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
3942
with:
4043
args: --verbose
41-
version: v2.2.1
44+
version: ${{ steps.golangci-lint-version.outputs.version }}

.golangci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,12 @@ linters:
3333
- linters:
3434
- errcheck
3535
path: _test.go
36-
paths:
37-
- third_party$
38-
- builtin$
39-
- examples$
4036
formatters:
4137
enable:
4238
- goimports
4339
exclusions:
4440
generated: lax
45-
paths:
46-
- third_party$
47-
- builtin$
48-
- examples$
41+
settings:
42+
goimports:
43+
local-prefixes:
44+
- github.com/prometheus/node_exporter

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,44 @@
55
* [ENHANCEMENT]
66
* [BUGFIX]
77

8+
## 1.10.2 / 2025-10-25
9+
10+
* [BUGFIX] meminfo: Fix typo in Zswap metric name #3455
11+
12+
## 1.10.1 / 2025-10-25
13+
14+
* [BUGFIX] filesystem: Fix mount points being collected multiple times #3376
15+
* [BUGFIX] filesystem: Refactor mountinfo parsing #3452
16+
* [BUGFIX] meminfo: Add Zswap/Zswapped metrics #3453
17+
18+
## 1.10.0 / 2025-10-24
19+
20+
* [CHANGE] mdadm: Use sysfs for RAID metrics #3031
21+
* [CHANGE] filesystem: Add erofs in default excluded fs #3313
22+
* [CHANGE] tcpstat: Use std lib binary.NativeEndian #3386
23+
* [FEATURE] pcidevice: Add new collector for PCIe devices #3339
24+
* [FEATURE] AIX: Add more metrics #3338
25+
* [FEATURE] systemd: Add Virtualization metrics #3254
26+
* [FEATURE] swaps: Add new collector #3428
27+
* [ENHANCEMENT] wifi: Add packet received and transmitted metrics #3382
28+
* [ENHANCEMENT] filesystem: Take super options into account for read-only #3387
29+
* [ENHANCEMENT] pcidevice: Add additional metrics #3425
30+
* [ENHANCEMENT] perf: Add `tlb_data` metrics #3436
31+
* [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing #3288
32+
* [BUGFIX] diskstats: Simplify condition #3290
33+
* [BUGFIX] thermal: Sanitize darwin thermal strings #3294
34+
* [BUGFIX] filesystem: Fix Darwin collector cgo memory leak #3315
35+
* [BUGFIX] cpufreq: Fix: collector enable #3318
36+
* [BUGFIX] ethtool: Fix returning 0 for sanitized metrics #3335
37+
* [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric #3336
38+
* [BUGFIX] systemd: Fix logging race #3364
39+
* [BUGFIX] filesystem: Fix duplicate Darwin CGO import #3391
40+
41+
## 1.9.1 / 2025-04-01
42+
43+
* [BUGFIX] pressure: Fix missing IRQ on older kernels #3263
44+
* [BUGFIX] Fix Darwin memory leak #3277
45+
846
## 1.9.0 / 2025-02-17
947

1048
* [CHANGE] meminfo: Convert linux implementation to use procfs lib #3049

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ include Makefile.common
2222
PROMTOOL_VERSION ?= 2.30.0
2323
PROMTOOL_URL ?= https://github.com/prometheus/prometheus/releases/download/v$(PROMTOOL_VERSION)/prometheus-$(PROMTOOL_VERSION).$(GO_BUILD_PLATFORM).tar.gz
2424
PROMTOOL ?= $(FIRST_GOPATH)/bin/promtool
25+
E2E_EXTRA_FLAGS ?=
2526

2627
DOCKER_IMAGE_NAME ?= node-exporter
2728
MACH ?= $(shell uname -m)
@@ -121,7 +122,7 @@ tools:
121122
.PHONY: test-e2e
122123
test-e2e: build collector/fixtures/sys/.unpacked collector/fixtures/udev/.unpacked tools
123124
@echo ">> running end-to-end tests"
124-
./end-to-end-test.sh
125+
./end-to-end-test.sh -e "$(E2E_EXTRA_FLAGS)"
125126

126127
.PHONY: skip-test-e2e
127128
skip-test-e2e:

Makefile.common

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_
6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v2.2.1
64+
GOLANGCI_LINT_VERSION ?= v2.6.0
6565
GOLANGCI_FMT_OPTS ?=
6666
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
6767
# windows isn't included here because of the path separator being different.
@@ -266,6 +266,10 @@ $(GOLANGCI_LINT):
266266
| sh -s -- -b $(FIRST_GOPATH)/bin $(GOLANGCI_LINT_VERSION)
267267
endif
268268

269+
.PHONY: common-print-golangci-lint-version
270+
common-print-golangci-lint-version:
271+
@echo $(GOLANGCI_LINT_VERSION)
272+
269273
.PHONY: precheck
270274
precheck::
271275

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ drm | Expose GPU metrics using sysfs / DRM, `amdgpu` is the only driver which ex
195195
drbd | Exposes Distributed Replicated Block Device statistics (to version 8.4) | Linux
196196
ethtool | Exposes network interface information and network driver statistics equivalent to `ethtool`, `ethtool -S`, and `ethtool -i`. | Linux
197197
interrupts | Exposes detailed interrupts statistics. | Linux, OpenBSD
198+
kernel_hung | Exposes number of tasks that have been detected as hung from `/proc/sys/kernel/hung_task_detect_count`. | Linux
198199
ksmd | Exposes kernel and system statistics from `/sys/kernel/mm/ksm`. | Linux
199200
lnstat | Exposes stats from `/proc/net/stat/`. | Linux
200201
logind | Exposes session counts from [logind](http://www.freedesktop.org/wiki/Software/systemd/logind/). | Linux
@@ -208,6 +209,7 @@ qdisc | Exposes [queuing discipline](https://en.wikipedia.org/wiki/Network_sched
208209
slabinfo | Exposes slab statistics from `/proc/slabinfo`. Note that permission of `/proc/slabinfo` is usually 0400, so set it appropriately. | Linux
209210
softirqs | Exposes detailed softirq statistics from `/proc/softirqs`. | Linux
210211
sysctl | Expose sysctl values from `/proc/sys`. Use `--collector.sysctl.include(-info)` to configure. | Linux
212+
swap | Expose swap information from `/proc/swaps`. | Linux
211213
systemd | Exposes service and system status from [systemd](http://www.freedesktop.org/wiki/Software/systemd/). | Linux
212214
tcpstat | Exposes TCP connection status information from `/proc/net/tcp` and `/proc/net/tcp6`. (Warning: the current version has potential performance issues in high load situations.) | Linux
213215
wifi | Exposes WiFi device and station statistics. | Linux

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.0
1+
1.10.2

collector/arp_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// limitations under the License.
1313

1414
//go:build !noarp
15-
// +build !noarp
1615

1716
package collector
1817

collector/bcache_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// limitations under the License.
1313

1414
//go:build !nobcache
15-
// +build !nobcache
1615

1716
package collector
1817

0 commit comments

Comments
 (0)