Commit graph

1950 commits

Author SHA1 Message Date
Ben Kochie 7f05e312ac
Merge pull request #2584 from phyber/20230126-fix_freebsd_meminfo_user_wired_count
memory_bsd: Fix a problem fetching the user wire count on FreeBSD
2023-02-13 16:33:40 +01:00
David O'Rourke 9232df7237 memory_bsd: Fix a problem fetching the user wire count on FreeBSD
Signed-off-by: David O'Rourke <david.orourke@gmail.com>
2023-01-26 02:55:32 +00:00
Ben Kochie 6a0598e563
Merge pull request #2570 from bsiegert/meminfo_netbsd
NetBSD support for the meminfo collector
2023-01-24 18:18:46 +01:00
Benny Siegert 131ff8a042 NetBSD support for the meminfo collector
This depends on a recent change to golang.org/x/sys that adds a
unix.SysctlUvmexp function.

Signed-off-by: Benny Siegert <bsiegert@gmail.com>
2023-01-23 16:54:35 +00:00
Ben Kochie 5bc8e9e28f
Merge pull request #2580 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2023-01-20 19:57:47 +01:00
prombot ff79170fe4 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-01-20 17:48:24 +00:00
Ben Kochie aaf7f583f6
Merge pull request #2563 from prometheus/dependabot/go_modules/github.com/prometheus/common-0.39.0
build(deps): bump github.com/prometheus/common from 0.37.0 to 0.39.0
2023-01-20 10:52:00 +01:00
Ben Kochie 2d77d8c562
Update e2e output for new common version.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-01-20 10:38:19 +01:00
dependabot[bot] 10a944efb9
build(deps): bump github.com/prometheus/common from 0.37.0 to 0.39.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.37.0 to 0.39.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.37.0...v0.39.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-01-20 09:17:02 +00:00
Ben Kochie 2ae17acf5b
Merge pull request #2562 from prometheus/dependabot/go_modules/github.com/mdlayher/netlink-1.7.1
build(deps): bump github.com/mdlayher/netlink from 1.7.0 to 1.7.1
2023-01-20 10:15:07 +01:00
Ben Kochie 2739c79c85
Merge pull request #2564 from prometheus/dependabot/go_modules/github.com/josharian/native-1.1.0
build(deps): bump github.com/josharian/native from 1.0.0 to 1.1.0
2023-01-20 10:14:24 +01:00
Ben Kochie 93a7f70c84
Merge pull request #2318 from alexjx/topic/pick-up-new-procfs
fix cpustat when some cpus are offline
2023-01-20 10:12:55 +01:00
Jia Xin 39b4556b5b fix cpustat when some cpus are offline
Signed-off-by: Jia Xin <alexjx@gmail.com>
2023-01-20 01:24:06 +00:00
dependabot[bot] f9a4d04c00
build(deps): bump github.com/josharian/native from 1.0.0 to 1.1.0
Bumps [github.com/josharian/native](https://github.com/josharian/native) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/josharian/native/releases)
- [Commits](https://github.com/josharian/native/compare/v1.0.0...v1.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 16:02:17 +00:00
dependabot[bot] feaa2a7927
build(deps): bump github.com/mdlayher/netlink from 1.7.0 to 1.7.1
Bumps [github.com/mdlayher/netlink](https://github.com/mdlayher/netlink) from 1.7.0 to 1.7.1.
- [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.0...v1.7.1)

---
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-01-01 16:02:04 +00:00
Ben Kochie a3bd2e1305
Merge pull request #2559 from bsiegert/netbsd-uname
Enable uname collector on NetBSD too
2022-12-31 13:03:41 +01:00
Benny Siegert 701912b5e7 Enable uname collector on NetBSD too
This collector works just fine without any further changes.

Signed-off-by: Benny Siegert <bsiegert@gmail.com>
2022-12-31 12:02:00 +01:00
Ben Kochie b9eef570d5
Merge pull request #2554 from prometheus/superq/fix_thermal_missing
Fix thermal_zone collector noise
2022-12-29 14:27:13 +01:00
prombot d647e2a01b Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-12-29 11:20:41 +01:00
Ben Kochie efa7f24698
Fix thermal_zone collector noise
Add a check for missing/unreadable thermal zone stats and ignore if not
availlable.

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

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-12-22 12:30:20 +01:00
Ben Kochie 4484f18566
Merge pull request #2542 from mchtech/add-perf-profiler-options
Add profiler options for perf collector
2022-12-22 10:29:03 +01:00
Ben Kochie edc33af8ed
Merge pull request #2553 from hodgesds/perf-bump
Bump perf-utils version to 0.6.0
2022-12-22 10:23:08 +01:00
Daniel Hodges b5259fe16f
Bump perf-utils version to 0.6.0
This change updates the perf-utils library to 0.6.0 which has some fixes
for automatically detecting the correct tracefs mountpoint if available.

Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
2022-12-21 20:57:17 -05:00
jalev 22e5dd2f0d Fix lint issues
Signed-off-by: jalev <qweet.ing@gmail.com>
2022-12-18 14:49:53 +01:00
James Bach a177412d06 Change var name to match previous
Signed-off-by: James Bach <james.bach@wise.com>
Signed-off-by: jalev <qweet.ing@gmail.com>
2022-12-18 14:49:53 +01:00
James Bach 5538773089 Migrate arp_linux.go to procfs
Signed-off-by: James Bach <qweet.ing@gmail.com>
Signed-off-by: James Bach <james.bach@wise.com>
Signed-off-by: jalev <qweet.ing@gmail.com>
2022-12-18 14:49:53 +01:00
prombot da08a2959f Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-12-13 13:46:20 +01:00
Ben Kochie 1e82c57931 Update v1.5.0 release notes
Add note about the change to the experimental web flag.

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

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-12-13 13:36:44 +01:00
Ryan J. Geyer 5e552bac02 Replace mistaken ) with }, resulting in parsable promql
Signed-off-by: Ryan J. Geyer <me@ryangeyer.com>
2022-12-13 13:30:42 +01:00
Ben Kochie 8cbe5cda8b
Merge pull request #2543 from adeptg/master
fix the docker link in the ISSUE_TEMPLATE
2022-12-08 08:26:18 +01:00
Yury Vidineev 56554f3a8a fix the docker link in the ISSUE_TEMPLATE
Signed-off-by: Yury Vidineev <adeptg@gmail.com>
2022-12-07 16:11:28 -08:00
mchtech f934f9cb0f add options for perf profilers
Signed-off-by: mchtech <michu_an@126.com>
2022-12-07 12:52:46 +08:00
Ben Kochie 9869d34a24
Merge pull request #2537 from simonpasquier/log-current-gomaxprocs
Log current value of GOMAXPROCS
2022-11-30 09:53:39 -08:00
Simon Pasquier 2d05f2e0c3 Log current value of GOMAXPROCS
With `--runtime.gomaxprocs=0`, the GOMAXPROXS value will default to the
number of logical CPUs. In this case, it is more useful to log the
actual value than the value set by the user via the command-line.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-11-30 17:16:49 +01:00
Ben Kochie 219744f97d
Merge pull request #2534 from frebib/frebib/web.config.file
Correct documentation for --web.config.file flag
2022-11-29 12:37:06 -08:00
Joe Groocock a5df170905
Correct documentation for --web.config.file flag
The --web.config flag changed to --web.config.file in
440a132c38 and was realised in the recent
v1.5.0 release.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-11-29 19:37:41 +00:00
Ben Kochie 1b48970ffc
Merge pull request #2532 from prometheus/superq/1.5.0
Release v1.5.0
2022-11-29 10:57:50 -08:00
Ben Kochie 3db05cfb3d
Release v1.5.0
NOTE: This changes the Go runtime "GOMAXPROCS" to 1. This is done to limit the
  concurrency of the exporter to 1 CPU thread at a time in order to avoid a
  race condition problem in the Linux kernel (#2500) and parallel IO issues
  on nodes with high numbers of CPUs/CPU threads (#1880).

* [CHANGE] Default GOMAXPROCS to 1 #2530
* [FEATURE] Add multiple listeners and systemd socket listener activation #2393
* [ENHANCEMENT] Add RTNL version of netclass collector #2492, #2528
* [BUGFIX] Fix diskstats exclude flags #2487
* [BUGFIX] Bump go/x/crypt and go/x/net #2488
* [BUGFIX] Fix hwmon label sanitizer #2504
* [BUGFIX] Use native endianness when encoding InetDiagMsg #2508
* [BUGFIX] Fix btrfs device stats always being zero #2516
* [BUGFIX] Security: Update exporter-toolkit (CVE-2022-46146) #2531

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-11-29 19:44:19 +01:00
Ben Kochie 8ece6336d9
Bump Go modules (#2531)
* Update all Go modules to latest.
* Update Go minimum version to 1.18.
Signed-off-by: Ben Kochie <superq@gmail.com>
2022-11-29 12:02:48 +01:00
Ben Kochie fb26b9fc72
Default GOMAXPROCS to 1 (#2530)
Avoid running on all CPUs by limiting the Go runtime to one CPU by
default. Avoids having Go routines schedule on every CPU, driving up the
visible run queue length on high CPU count systems.

This also helps workaround a kernel deadlock issue with reading from
sysfs concurrently.

See:
* https://github.com/prometheus/node_exporter/issues/1880
* https://github.com/prometheus/node_exporter/issues/2500

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-11-29 12:01:58 +01:00
Ben Kochie 13a5cc1f74
Refactor netclass_rtnl collector (#2528)
* Refactor netclass_rtnl collector

Merge the netclass_rtnl collector into the netclass collector.
* Disabled by default
* Followup to #2492

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-11-29 11:22:25 +01:00
manu 956a3f8d47
update to golang.org/x/sys v0.1.0 (#2524)
Signed-off-by: Manuel Stausberg <stausberg@denic.de>
2022-11-21 17:25:58 +01:00
SUN Haoyu bba0e2e557
add RTNL version of netclass collector (#2492)
* update rtnetlink package to v1.2.3
* add RTNL version of netclass collector that have all the metrics that netdev collector provides, too.

Signed-off-by: Haoyu Sun <hasun@redhat.com>
2022-11-21 16:38:04 +01:00
Sabart Otto 26e82af8a2
readme: remove RHEL/CentOS/Fedora installation info (#2525)
Copr community prometheus-exporters repository is obsoleted.

Signed-off-by: Otto Sabart <seberm@seberm.com>

Signed-off-by: Otto Sabart <seberm@seberm.com>
2022-11-14 17:57:01 +01:00
Marcus Cobden 936368d217
Fix btrfs device stats always being zero (#2516)
* Respect rootfs path config option in btrfs ioctl
* Fix btrfs device stats always being zero

Signed-off-by: Marcus Cobden <leth@users.noreply.github.com>
2022-11-08 16:09:39 +01:00
dependabot[bot] fd14fb04c7 build(deps): bump github.com/jsimonetti/rtnetlink from 1.2.2 to 1.2.3
Bumps [github.com/jsimonetti/rtnetlink](https://github.com/jsimonetti/rtnetlink) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/jsimonetti/rtnetlink/releases)
- [Commits](https://github.com/jsimonetti/rtnetlink/compare/v1.2.2...v1.2.3)

---
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>
2022-11-03 13:22:46 +01:00
dependabot[bot] fb5229e3b1 build(deps): bump github.com/prometheus/client_model from 0.2.0 to 0.3.0
Bumps [github.com/prometheus/client_model](https://github.com/prometheus/client_model) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/prometheus/client_model/releases)
- [Commits](https://github.com/prometheus/client_model/compare/v0.2.0...v0.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 13:22:36 +01:00
Ben Kochie ba8c043079
Add procfs fallback to netdev collector (#2509)
Some systems have broken netlink messages due to patched kernels. Since
these messages can not be parsed, add a flag to fall back to parsing
from `/proc/net/dev`.

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

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

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-10-24 10:30:32 +02:00
Perry Naseck 440a132c38
Add multiple listeners and systemd socket listener activation (#2393)
Update exporter-toolkit to v0.8.1 to enable new listener support.

Signed-off-by: Perry Naseck <git@perrynaseck.com>
2022-10-23 12:45:29 +02:00
Daniel Swarbrick 34a498e132
Use native endianness when encoding InetDiagMsg (#2508)
Note however that the InetDiagMsg struct contains a InetDiagSockID
member, which itself contains some members which are explicitly
specified as big-endian in Linux kernel source:

struct inet_diag_sockid {
	__be16	idiag_sport;
	__be16	idiag_dport;
	__be32	idiag_src[4];
	__be32	idiag_dst[4];
	__u32	idiag_if;
	__u32	idiag_cookie[2];
};

node_exporter currently does not use these members for anything, so this
is acceptable (for now).

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2022-10-22 11:05:47 +02:00