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>
2 years ago
Abbey Woodyear
eaacb2e3c7
exposing softirq metrics ( #2294 )
...
Signed-off-by: abbeywoodyear <abbey.woodyear@thehutgroup.com>
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago
Josh Bradley
26c7ed5d26
Update Go module for ema/qdisc ( #2700 )
...
* Update Go module for ema/qdisc
---------
Signed-off-by: jbradleynh <jbradley@fastly.com>
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago
Nitin Shelke
b36a2a3663
Fix CVE-2022-41723 by upgrading x/net to v0.10.0 ( #2694 )
...
Signed-off-by: Nitin Shelke <nshelke@cloudera.com>
2 years ago
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>
2 years ago
cui fliter
287414bc65
collector: fix comment and remove redundant parentheses ( #2691 )
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2 years ago
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>
2 years ago
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>
2 years ago
Jonathan Davies
29c97c2197
collector/netisr_freebsd.go: Added collector for netisr subsystem. ( #2668 )
...
Signed-off-by: Jonathan Davies <jpds@protonmail.com>
2 years ago
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>
2 years ago
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>
2 years ago
Johannes Ziemke
180879e1c4
Use go-runit fork, mark collector as deprecated
...
Signed-off-by: Johannes Ziemke <github@5pi.de>
2 years ago
Maximilian Wilhelm
c8129fadd6
Expose administrative state of network interfaces as 'adminstate'. ( #2515 )
...
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2 years ago
David Calvert
a7f92756d3
doc: added undocumented include and exclude flags ( #2670 )
...
* doc: added undocumented exclude flags
Signed-off-by: David Calvert <david@0xdc.me>
2 years ago
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>
2 years ago
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>
2 years ago
Pablo Caderno
d31af1d1e5
feat: added suspended as a node_zfs_zpool_state ( #2449 )
...
Signed-off-by: Pablo Caderno <kaderno@gmail.com>
2 years ago
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>
2 years ago
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
2 years ago
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>
2 years ago
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
2 years ago
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>
2 years ago
prombot
6a42c0b0a8
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2 years ago
Ben Kochie
e608850dd0
Merge pull request #2634 from leth/btrfs-without-root
...
Reduce privileges needed for btrfs device stats
2 years ago
Marcus Cobden
ec8f58009f
Reduce priviliges needed for btrfs device stats
...
Signed-off-by: Marcus Cobden <leth@users.noreply.github.com>
2 years ago
Lukas Coppens
1724b28d27
feat: add support for cpu freq governor metrics
...
Signed-off-by: Lukas Coppens <lukas.coppens@be-mobile.com>
2 years ago
Lukas Coppens
fe19fdd1e8
feat: add support for cpu freq governor metrics
...
Signed-off-by: Lukas Coppens <lukas.coppens@be-mobile.com>
2 years ago
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>
2 years ago
Ben Kochie
1d8693766f
Merge pull request #2630 from prometheus/superq/fix_spell
...
Fix spelling issues
2 years ago
Ben Kochie
7f07462913
Fix spelling issues
...
Minor typo fixup.
Signed-off-by: Ben Kochie <superq@gmail.com>
2 years ago
LamGC
c13f808619
Allow root path as metrics path. ( #2590 )
...
Signed-off-by: LamGC <lam827@lamgc.net>
2 years ago
Ben Kochie
bb5ecb73d7
Merge pull request #2627 from prometheus/superq/bump_toolkit
...
Bump exporter-toolkit
2 years ago
Ben Kochie
8daf3e7c4c
Merge pull request #2625 from prometheus/superq/update_build
...
Update build
2 years ago
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>
2 years ago
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>
2 years ago
Ben Kochie
2f20a9bb3c
Merge pull request #2603 from prometheus/superq/deprecate_ntp
...
Deprecate ntp collector
2 years ago
Ben Kochie
c42d046564
Merge pull request #2622 from prometheus/superq/update_exporter-toolkit
...
Update exporter-toolkit
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago
Haoyu Sun
37d49746bc
Remove metrics of offline CPUs in CPU collector
...
Signed-off-by: Haoyu Sun <hasun@redhat.com>
2 years ago
Ben Kochie
c914f00526
Merge pull request #2587 from prometheus/superq/cpufreq_common
...
Optimize cpufreq collector
2 years ago
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
2 years ago