Commit Graph

8 Commits

Author SHA1 Message Date
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: .

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2023-08-21 16:00:00 +02:00
Marcus Cobden
936368d217
Fix btrfs device stats always being zero ()
* 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
Ben Kochie
7da1321761
Release 1.4.0 ()
* [CHANGE] Merge metrics descriptions in textfile collector 
* [FEATURE] [node-mixin] Add darwin dashboard to mixin 
* [FEATURE] Add "isolated" metric on cpu collector on linux 
* [FEATURE] Add cgroup summary collector 
* [FEATURE] Add selinux collector 
* [FEATURE] Add slab info collector 
* [FEATURE] Add sysctl collector 
* [FEATURE] Also track the CPU Spin time for OpenBSD systems 
* [FEATURE] Add support for MacOS version 
* [ENHANCEMENT] [node-mixin] Add missing selectors 
* [ENHANCEMENT] [node-mixin] Change current datasource to grafana's default 
* [ENHANCEMENT] [node-mixin] Change disk graph to disk table 
* [ENHANCEMENT] [node-mixin] Change io time units to %util 
* [ENHANCEMENT] Ad user_wired_bytes and laundry_bytes on *bsd 
* [ENHANCEMENT] Add additional vm_stat memory metrics for darwin 
* [ENHANCEMENT] Add device filter flags to arp collector 
* [ENHANCEMENT] Add diskstats include and exclude device flags 
* [ENHANCEMENT] Add node_softirqs_total metric 
* [ENHANCEMENT] Add rapl zone name label option 
* [ENHANCEMENT] Add slabinfo collector 
* [ENHANCEMENT] Allow user to select port on NTP server to query 
* [ENHANCEMENT] collector/diskstats: Add labels and metrics from udev 
* [ENHANCEMENT] Enable builds against older macOS SDK 
* [ENHANCEMENT] qdisk-linux: Add exclude and include flags for interface name 
* [ENHANCEMENT] systemd: Expose systemd minor version 
* [ENHANCEMENT] Use netlink for tcpstat collector 
* [ENHANCEMENT] Use netlink to get netdev stats 
* [ENHANCEMENT] Add additional perf counters for stalled frontend/backend cycles 
* [ENHANCEMENT] Add btrfs device error stats 
* [BUGFIX] [node-mixin] Fix fsSpaceAvailableCriticalThreshold and fsSpaceAvailableWarning 
* [BUGFIX] Fix concurrency issue in ethtool collector 
* [BUGFIX] Fix concurrency issue in netdev collector 
* [BUGFIX] Fix diskstat reads and write metrics for disks with different sector sizes 
* [BUGFIX] Fix iostat on macos broken by deprecation warning 
* [BUGFIX] Fix NodeFileDescriptorLimit alerts 
* [BUGFIX] Sanitize rapl zone names 
* [BUGFIX] Add file descriptor close safely in test 
* [BUGFIX] Fix race condition in os_release.go 
* [BUGFIX] Skip ZFS IO metrics if their paths are missing 

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

Signed-off-by: Ben Kochie <superq@gmail.com>
2022-09-26 14:30:51 +02:00
Marcus Cobden
135710d8b5
Add btrfs device error stats ()
* Improve metrics filesystem scanning logic
* Makes ioctl syscalls to load the device error stats.
* Adds filesystem mountpoint labels to existing metrics for ease of use.

Signed-off-by: Marcus Cobden <leth@users.noreply.github.com>
2022-09-24 08:25:15 +02:00
Julien Pivotto
68a6c78c0d
Update go to 1.17 ()
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-10-03 13:35:24 +02:00
Ben Kochie
3bc9a93c20
Add ErrorLog plumbing to promhttp
Fix the error logging of the promhttp handler by connecting it to the
promlog setup.
* Switch to go-kit/log.
* Cleanup CHANGELOG.

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

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-06-03 10:47:41 +02:00
Ben Kochie
dfa53f835a
Use Go 1.13 error features
* Use `errors.Is()` for unwrapping errors.
* Use `%w` error verb in internal error formatting.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-06-16 14:47:03 +02:00
Silke Hofstra
8faa843fc4
Add Btrfs collector ()
* Add procfs/btrfs to vendor folder
* Add Btrfs collector

Resolves 

Signed-off-by: Silke Hofstra <silke@slxh.eu>
2020-02-19 15:48:51 +01:00