Commit Graph

1959 Commits

Author SHA1 Message Date
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
dependabot[bot]
bb0a293eb2
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 10:19:55 +00:00
Ben Kochie
591a6b2306
Merge pull request #2589 from prometheus/dependabot/go_modules/github.com/hodgesds/perf-utils-0.7.0
build(deps): bump github.com/hodgesds/perf-utils from 0.6.0 to 0.7.0
2023-02-25 11:19:16 +01:00
Ben Kochie
97ceada161
Merge pull request #2606 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2023-02-20 19:44:05 +01:00
prombot
36001d0bdf Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-02-20 17:48:40 +00:00
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
dependabot[bot]
d586562934
build(deps): bump github.com/hodgesds/perf-utils from 0.6.0 to 0.7.0
Bumps [github.com/hodgesds/perf-utils](https://github.com/hodgesds/perf-utils) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/hodgesds/perf-utils/releases)
- [Commits](https://github.com/hodgesds/perf-utils/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/hodgesds/perf-utils
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 16:03:52 +00:00
Ben Kochie
3cd9b163e6
Optimize cpufreq collector
Move metric descriptiions to package vars to avoid allocating them every
time `NewCPUFreqCollector()` is called.

Signed-off-by: Ben Kochie <superq@gmail.com>
2023-01-28 11:42:02 +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