matt durham
a372120527
I have no idea how the code in node_exporter prometheus compiles.
2023-10-04 10:17:16 -04:00
matt durham
f491eb14df
Fix changes with node_exporter on bsd.
2023-10-04 10:13:11 -04:00
matt durham
26e058a40f
Fix bug with systemd config not being set.
2023-10-03 15:42:28 -04:00
matt durham
af0fe37ac4
Fix bug with ntp config not being set.
2023-10-03 15:25:22 -04:00
matt durham
69c6eb312f
Remove caching of collectors.
2023-10-03 14:59:48 -04:00
matt durham
d4879a5e87
Rearrange kingpin
2023-10-03 09:53:36 -04:00
matt durham
5bc1573cc4
Allow the passing in of enabled collectors.
2023-10-03 09:30:15 -04:00
matt durham
e78bc3045a
Merge branch 'refactor_collectors' of github.com:grafana/node_exporter into refactor_collectors
2023-10-02 15:51:42 -04:00
matt durham
7bc164fbe7
Fix global ref
2023-10-02 15:51:27 -04:00
matt durham
d9683215e7
Add filtering for available collectors
2023-10-02 15:47:19 -04:00
mattdurham
4a5fa78e97
Merge pull request #26 from grafana/update_configs
...
Merging config changes to the working branch
2023-09-28 07:06:03 -07:00
matt durham
bc2b7b4dc0
fix filesystem on other archs
2023-09-28 09:56:24 -04:00
matt durham
302c8c8176
Fix netdev signature
2023-09-28 09:38:11 -04:00
matt durham
dfd66e0c97
Finish config changes
2023-09-28 09:29:52 -04:00
matt durham
33af25f572
Merge refactor changes merge
2023-09-28 09:27:55 -04:00
matt durham
508bd94ac9
Merge config changes
2023-09-28 09:26:52 -04:00
matt durham
2f4d563976
Merge config changes
2023-09-28 09:26:34 -04:00
Marc Tuduri
399ce78c36
Fix defaults
2023-09-27 18:26:51 +02:00
matt durham
2e027c850e
fix issues
2023-09-27 12:24:00 -04:00
matt durham
e7bf2f8579
update amd openbsd
2023-09-27 12:10:39 -04:00
matt durham
dde374e68a
spceific arch configs
2023-09-27 12:01:37 -04:00
Marc Tuduri
c01a7c2c57
use pointers
2023-09-27 18:00:19 +02:00
Marc Tuduri
d59d6568c6
Rename fields
2023-09-27 17:29:41 +02:00
Marc Tuduri
fbff3bb21a
Remove comment
2023-09-27 15:47:39 +02:00
Marc Tuduri
5b2b1412b7
Fix unneded logger
2023-09-27 15:42:10 +02:00
Marc Tuduri
507871a192
Fix build
2023-09-27 15:22:15 +02:00
Marc Tuduri
58bc86d2a6
Merge branch 'master' into marctc/refactor_kingpin
2023-09-27 15:06:40 +02:00
Marc Tuduri
97ddc9b40b
Fix tests - part 1
2023-09-27 12:37:12 +02:00
Marc Tuduri
26fc637aed
Fix more stuff
2023-09-27 10:55:06 +02:00
Marc Tuduri
96f13a2e27
Refactor collectors - part 3
2023-09-26 16:41:39 +02:00
Marc Tuduri
ed7a10dde2
Refactor collectors - part 2
2023-09-26 15:17:45 +02:00
Marc Tuduri
58a99510d2
Refactor collectors - part 1
2023-09-25 17:41:34 +02:00
dongjiang
e8c5110ada
fix(zfs) zfs arcstats.p
on FreeBSD 14.0+ ( #2754 )
...
* dongjiang, fix zfs arcstats.p
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
* dongjiang, fix gofmt -s
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
* change warn log to debug log by code review
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
---------
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
2023-09-20 11:49:56 +02:00
prombot
446b3e64ff
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-09-20 11:28:40 +02:00
Metbog
e387997e4c
Move RO status before error return
...
Signed-off-by: Metbog <metbog@gmail.com>
2023-09-20 11:26:39 +02:00
Conall O'Brien
f34aaa6109
Add ZFS freebsd per dataset stats ( #2753 )
...
* Rename parsePoolObjsetFile to parseLinuxPoolObjsetFile to better reflect
it's scope
* Create a new parseFreeBSDPoolObjsetStats function, to generate a list
of per pool metrics to be queried via sysctl
---------
Signed-off-by: Conall O'Brien <conall@conall.net>
2023-09-11 06:33:21 +02:00
PrometheusBot
5ae22fa2c0
Update common Prometheus files ( #2798 )
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-09-09 20:42:39 +02:00
dependabot[bot]
e590476dc7
build(deps): bump golang.org/x/sys from 0.10.0 to 0.12.0 ( #2797 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.10.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.12.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-09 17:09:30 +02:00
Daniel Swarbrick
685b98ec7f
Optionally fetch ARP stats via rtnetlink instead of procfs ( #2777 )
...
* Optionally fetch ARP stats via rtnetlink instead of procfs
Implement collection of ARP stats via rtnetlink to work around
shortcomings in the output of /proc/net/arp, which truncates InfiniBand
link-layer addresses.
Fixes : #2776
---------
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
2023-09-09 16:41:09 +02:00
Ben Kochie
cda1d820bb
Update to Go 1.21 ( #2796 )
...
* Update Go build to 1.21.
* Update machine images to Ubuntu 22.04 current.
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-09-09 15:44:48 +02:00
Marc Tuduri
fe42dec972
Separate config structs
2023-08-30 12:48:27 +02:00
Daniel Swarbrick
381f32b1c5
btrfs: close btrfs.FS handle after use
...
Despite being quite hard to provoke (< 10% in my testing), the btrfs
collector would occasionally leave stale FDs relating to btrfs
mountpoints, making the filesystems unable to be unmounted.
Fixes : #2772 .
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2023-08-21 16:00:00 +02:00
Josh Bradley
f2b274350a
fix(qdisc) flag naming corrected for consistency ( #2782 )
...
* fix collector qdisc flag naming for consistency
---------
Signed-off-by: jbradleynh <jbradley@fastly.com>
2023-08-21 07:48:09 +02:00
John Kordich
e120d958f5
Change log message from Warn to Debug
...
Signed-off-by: John Kordich <jkordich@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: John Kordich <jkordich@gmail.com>
2023-08-20 13:38:47 +02:00
John Kordich
933b1c1797
Add new node_cpu_frequency_hertz metric
...
Revert changes to node_cpu_info and add new node_cpu_frequency_hertz
metric for measuring CPU frequency from /proc/cpuinfo
Signed-off-by: John Kordich <jkordich@gmail.com>
2023-08-20 13:38:47 +02:00
John Kordich
e84c278107
Update e2e-output.txt with new expected metric values
...
Changes the e2e-output.txt file to have the expected CPU MHz values
for the node_cpu_info metric.
Signed-off-by: John Kordich <jkordich@gmail.com>
2023-08-20 13:38:47 +02:00
John Kordich
223ebbd50c
Add CPU MHz as the value for "node_cpu_info" metric
...
For CPUs which don't have an available (or insertable) cpufreq driver,
the /proc/cpuinfo file can sometimes have accurate CPU core frequency
measurements. This change replaces the constant value of "1" for the
"node_cpu_info" metric with the parsed CPU MHz value from
/proc/cpuinfo for each core.
Signed-off-by: John Kordich <jkordich@gmail.com>
2023-08-20 13:38:47 +02:00
takt
6225435677
Upgrade github.com/ema/qdisc to v1.0.0 to improve qdisc collector ( #2779 )
...
performance
Signed-off-by: Oliver Geiselhardt-Herms <ogh@deepl.com>
Co-authored-by: Oliver Geiselhardt-Herms <ogh@deepl.com>
2023-08-18 15:20:22 +02:00
Daniel Swarbrick
37ce0bab8c
Sync build tags in *_test.go ( #2767 )
...
Ensure that unwanted tests are correctly excluded when various build
tags are specified, i.e. when the code that they test would be excluded
from compilation.
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2023-08-15 11:38:13 +02:00
Daniel Swarbrick
3fb5f70b0c
Drop redundant GOOS build tags if already in filename
...
Drop redundant GOOS build tags at start of file if the constraint is
already specified by the filename, e.g. foo_GOOS.go or
foo_GOOS_GOARCH.go, avoiding potential confusion in future.
cf. https://pkg.go.dev/cmd/go#hdr-Build_constraints
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2023-08-08 14:30:39 +02:00