Dan Williams
8c5847bd94
netlink: read missing attributes from sysfs ( #2669 )
...
Read missing dev_id, name_assign_type, and addr_assign_type
from sysfs, since they only take a device-specific lock and
not the whole RTNL lock. This means reading them is much less
impactful on other system processes than many of the other
attributes in sysfs that do take the RTNL lock.
Signed-off-by: Dan Williams <dcbw@redhat.com>
2023-05-25 15:10:39 +02:00
Abbey Woodyear
eaacb2e3c7
exposing softirq metrics ( #2294 )
...
Signed-off-by: abbeywoodyear <abbey.woodyear@thehutgroup.com>
2023-05-25 15:09:32 +02:00
Remi Jouannet
df1b53bee2
softnet: additionals metrics from softnet_data, ( #2592 )
...
* softnet: additionals metrics from softnet_data, https://github.com/prometheus/procfs/pull/473
---------
Signed-off-by: remi <remijouannet@gmail.com>
Signed-off-by: Rémi Jouannet <remijouannet@gmail.com>
2023-05-24 17:23:13 +02:00
Benoît Knecht
c05b97ce32
collector/diskstats: Use SCSI_IDENT_SERIAL as serial ( #2612 )
...
On most hard drives, `ID_SERIAL_SHORT` and `SCSI_IDENT_SERIAL` are identical,
but on some SAS drives they do differ. In that case, `SCSI_IDENT_SERIAL`
corresponds to the serial number printed on the drive label, and to the value
returned by `smartctl -i`.
So use that value by default for the `serial` label on the `node_disk_info`
metric, and fallback to `ID_SERIAL_SHORT` only if it's undefined.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
2023-05-24 10:19:18 +02:00
Ben Kochie
da0b2ca3c2
Deprecate supervisord collector
...
Mark the `supervisord` as deprecated. This process
supevisor, like `runit`, is of scope for the node_exporter.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-05-23 18:10:42 +02:00
Josh Bradley
26c7ed5d26
Update Go module for ema/qdisc ( #2700 )
...
* Update Go module for ema/qdisc
---------
Signed-off-by: jbradleynh <jbradley@fastly.com>
2023-05-23 17:38:05 +02:00
dongjiang
1bbb2a94c0
fix(zfs): add memory_available_bytes
, fix dbufstats
filename on Linux ( #2687 )
...
* Fix zfs memory_available_bytes collector
* Fix zfs dbufstats collector
---------
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2023-05-23 11:13:48 +02:00
Ben Kochie
3f64e91b0d
Update Go modules ( #2695 )
...
Update Prometheus modules to latest releases.
* Add missing fixtures for cpus online/offline.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-05-23 06:14:58 +02:00
Ben Kochie
d2dd793e39
Update e2e output fixtures ( #2696 )
...
Fix up correct e2e output for node_power_supply_info.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-05-22 17:28:45 +02:00
Nitin Shelke
b36a2a3663
Fix CVE-2022-41723 by upgrading x/net to v0.10.0 ( #2694 )
...
Signed-off-by: Nitin Shelke <nshelke@cloudera.com>
2023-05-22 14:45:10 +02:00
Sal Sal
dcb10ff291
bcache: remove cache_readaheads_totals metrics #2103 ( #2583 )
...
* bcache: remove cache_readaheads_totals metrics #2103
Signed-off-by: Saleh Sal <0xack13@gmail.com>
* Append bcacheReadaheadMetrics when CacheReadaheads value exists
Signed-off-by: Saleh Sal <0xack13@gmail.com>
* Update test cases for cachereadahead greater than zero
Signed-off-by: Saleh Sal <0xack13@gmail.com>
---------
Signed-off-by: Saleh Sal <0xack13@gmail.com>
2023-05-20 14:13:07 +02:00
cui fliter
287414bc65
collector: fix comment and remove redundant parentheses ( #2691 )
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-05-17 18:04:50 +02:00
Claudio Jeker
184a4e0893
Fix filesystem collector for OpenBSD to not print loads of zero bytes in name ( #2637 )
...
Use the filesystem collector for all OpenBSD archs, there is no reason to
only use it on amd64 systems.
Signed-off-by: Claudio Jeker <claudio@openbsd.org>
2023-05-11 10:40:38 +02:00
Claudio Jeker
6251cc7b6c
Do not hand define struct clockinfo here. Instead use the version from ( #2663 )
...
x/sys/unix. The clockinfo struct was altered beginning of 2021 and this
code was not adjusted.
Signed-off-by: Claudio Jeker <claudio@openbsd.org>
2023-05-11 10:39:51 +02:00
Jonathan Davies
29c97c2197
collector/netisr_freebsd.go: Added collector for netisr subsystem. ( #2668 )
...
Signed-off-by: Jonathan Davies <jpds@protonmail.com>
2023-05-11 10:34:26 +02:00
Will Bollock
0a17e17718
docs (node/mixin): fix annotation for Skew alert ( #2671 )
...
This updates the annotation for the NodeClockSkewDetected mixin alert to
match the new threshold set.
Original discussion was in this PR: https://github.com/prometheus/node_exporter/pull/1480
I spent an embarrassingly large amount of time trying to figure out how
the heck that alert would mean 300s of clock skew. Turns out the
annotation was just left the same after the threshold change.
Signed-off-by: Will Bollock <wbollock@linode.com>
2023-05-11 10:33:10 +02:00
dependabot[bot]
d3a0156cfa
build(deps): bump github.com/jsimonetti/rtnetlink from 1.3.1 to 1.3.2 ( #2673 )
...
Bumps [github.com/jsimonetti/rtnetlink](https://github.com/jsimonetti/rtnetlink ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jsimonetti/rtnetlink/releases )
- [Commits](https://github.com/jsimonetti/rtnetlink/compare/v1.3.1...v1.3.2 )
---
updated-dependencies:
- dependency-name: github.com/jsimonetti/rtnetlink
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>
2023-05-11 10:10:26 +02:00
Johannes Ziemke
180879e1c4
Use go-runit fork, mark collector as deprecated
...
Signed-off-by: Johannes Ziemke <github@5pi.de>
2023-05-09 11:42:21 +02:00
Maximilian Wilhelm
c8129fadd6
Expose administrative state of network interfaces as 'adminstate'. ( #2515 )
...
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2023-05-02 15:25:05 +02:00
David Calvert
a7f92756d3
doc: added undocumented include and exclude flags ( #2670 )
...
* doc: added undocumented exclude flags
Signed-off-by: David Calvert <david@0xdc.me>
2023-05-02 15:23:06 +02:00
dependabot[bot]
67ca103d1d
build(deps): bump github.com/prometheus/client_golang
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.14.0 to 1.15.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.14.0...v1.15.0 )
---
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>
2023-05-02 13:33:26 +02:00
dependabot[bot]
2e152a37ab
build(deps): bump github.com/mdlayher/netlink from 1.7.1 to 1.7.2
...
Bumps [github.com/mdlayher/netlink](https://github.com/mdlayher/netlink ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/mdlayher/netlink/releases )
- [Changelog](https://github.com/mdlayher/netlink/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mdlayher/netlink/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: github.com/mdlayher/netlink
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02 13:33:17 +02:00
Pablo Caderno
d31af1d1e5
feat: added suspended as a node_zfs_zpool_state ( #2449 )
...
Signed-off-by: Pablo Caderno <kaderno@gmail.com>
2023-04-26 18:12:54 +02:00
Matthias Petermann
b87c6a8826
NetBSD support for CPU collector ( #2626 )
...
* Added CPU collector for NetBSD to provide load and temperature statistics
---------
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-04-07 13:35:33 +02:00
Ben Kochie
c91a8bcee1
Merge pull request #2646 from prometheus/dependabot/go_modules/github.com/prometheus/common-0.42.0
...
build(deps): bump github.com/prometheus/common from 0.41.0 to 0.42.0
2023-04-01 22:43:37 +02:00
dependabot[bot]
5095df7df6
build(deps): bump github.com/prometheus/common from 0.41.0 to 0.42.0
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.41.0 to 0.42.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.41.0...v0.42.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/common
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-01 20:29:35 +00:00
Ben Kochie
a347ad6b82
Merge pull request #2647 from prometheus/dependabot/go_modules/github.com/safchain/ethtool-0.3.0
...
build(deps): bump github.com/safchain/ethtool from 0.2.0 to 0.3.0
2023-04-01 22:28:25 +02:00
dependabot[bot]
d8d6f32b13
build(deps): bump github.com/safchain/ethtool from 0.2.0 to 0.3.0
...
Bumps [github.com/safchain/ethtool](https://github.com/safchain/ethtool ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/safchain/ethtool/releases )
- [Commits](https://github.com/safchain/ethtool/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/safchain/ethtool
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-01 16:59:11 +00:00
prombot
6a42c0b0a8
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-03-24 13:59:39 +01:00
Ben Kochie
e608850dd0
Merge pull request #2634 from leth/btrfs-without-root
...
Reduce privileges needed for btrfs device stats
2023-03-14 08:25:43 +01:00
Marcus Cobden
ec8f58009f
Reduce priviliges needed for btrfs device stats
...
Signed-off-by: Marcus Cobden <leth@users.noreply.github.com>
2023-03-12 21:27:52 +00:00
Lukas Coppens
1724b28d27
feat: add support for cpu freq governor metrics
...
Signed-off-by: Lukas Coppens <lukas.coppens@be-mobile.com>
2023-03-10 18:19:33 +01:00
Lukas Coppens
fe19fdd1e8
feat: add support for cpu freq governor metrics
...
Signed-off-by: Lukas Coppens <lukas.coppens@be-mobile.com>
2023-03-10 18:19:33 +01:00
Daniël van Eeden
8d3c594346
interrupts_linux: Fix fields on aarch64 ( #2631 )
...
* interrupts_linux: Fix fields on aarch64
Fixes #2557
---------
Signed-off-by: Daniël van Eeden <git@myname.nl>
2023-03-10 13:02:33 +01:00
Ben Kochie
1d8693766f
Merge pull request #2630 from prometheus/superq/fix_spell
...
Fix spelling issues
2023-03-10 11:55:26 +01:00
Ben Kochie
7f07462913
Fix spelling issues
...
Minor typo fixup.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-03-10 11:20:22 +01:00
LamGC
c13f808619
Allow root path as metrics path. ( #2590 )
...
Signed-off-by: LamGC <lam827@lamgc.net>
2023-03-08 17:15:39 +01:00
Ben Kochie
bb5ecb73d7
Merge pull request #2627 from prometheus/superq/bump_toolkit
...
Bump exporter-toolkit
2023-03-08 17:12:36 +01:00
Ben Kochie
8daf3e7c4c
Merge pull request #2625 from prometheus/superq/update_build
...
Update build
2023-03-08 16:26:29 +01:00
Ben Kochie
3691cb9faf
Update build
...
* Update Go to 1.20
* Update golangci-lint.
* Update CI orb.
* Fix staticcheck issue in perf collector.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-03-08 11:16:10 +01:00
Ben Kochie
b4133c22ce
Bump exporter-toolkit
...
Pick up the fixes for 32-bit mode and updated HTML template.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-03-08 11:00:59 +01:00
Ben Kochie
2f20a9bb3c
Merge pull request #2603 from prometheus/superq/deprecate_ntp
...
Deprecate ntp collector
2023-03-07 17:37:19 +01:00
Ben Kochie
c42d046564
Merge pull request #2622 from prometheus/superq/update_exporter-toolkit
...
Update exporter-toolkit
2023-03-07 17:36:08 +01:00
Ben Kochie
c23b76bfbb
Update exporter-toolkit
...
* Bump exporter-toolkit to the latest release.
* Use new toolkit landing page function.
* Update kingpin flags.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-03-07 15:18:38 +01:00
dependabot[bot]
4a780126c6
build(deps): bump golang.org/x/sys from 0.5.0 to 0.6.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 14:27:44 +01:00
dependabot[bot]
4a85756062
build(deps): bump github.com/opencontainers/selinux
...
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux ) from 1.10.2 to 1.11.0.
- [Release notes](https://github.com/opencontainers/selinux/releases )
- [Commits](https://github.com/opencontainers/selinux/compare/v1.10.2...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/opencontainers/selinux
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 14:18:29 +01:00
dependabot[bot]
1026cac532
build(deps): bump github.com/jsimonetti/rtnetlink from 1.3.0 to 1.3.1
...
Bumps [github.com/jsimonetti/rtnetlink](https://github.com/jsimonetti/rtnetlink ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/jsimonetti/rtnetlink/releases )
- [Commits](https://github.com/jsimonetti/rtnetlink/compare/v1.3.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: github.com/jsimonetti/rtnetlink
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 14:18:18 +01:00
Haoyu Sun
37d49746bc
Remove metrics of offline CPUs in CPU collector
...
Signed-off-by: Haoyu Sun <hasun@redhat.com>
2023-03-07 14:01:02 +01:00
Ben Kochie
c914f00526
Merge pull request #2587 from prometheus/superq/cpufreq_common
...
Optimize cpufreq collector
2023-02-25 20:18:24 +01:00
Ben Kochie
9658b8768b
Merge pull request #2610 from prometheus/dependabot/go_modules/golang.org/x/net-0.7.0
...
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
2023-02-25 18:40:28 +01:00