node_exporter icon indicating copy to clipboard operation
node_exporter copied to clipboard

Feature request: metrics from /sys/class/watchdog

Open mirzak opened this issue 3 years ago • 3 comments

Documentation: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-watchdog

The most interesting metric would be:

What:		/sys/class/watchdog/watchdogn/bootstatus
Date:		August 2015
Contact:	Wim Van Sebroeck <[email protected]>
Description:
		It is a read only file. It contains status of the watchdog
		device at boot. It is equivalent to WDIOC_GETBOOTSTATUS of
		ioctl interface.

Which enables you determinate reboot/reset cause.

mirzak avatar Mar 04 '22 13:03 mirzak

How does the context look like? But yeah in general that sounds reasonable.

discordianfish avatar Mar 07 '22 14:03 discordianfish

As usual though, parsing should go into procfs. Or we use the ioctl interface if that can be done as non-root

discordianfish avatar Mar 07 '22 14:03 discordianfish

Hi all, I am adding watchdog stats to procfs. I am waiting for the pull request to be merged and included in a new procfs release.

prometheus/procfs#594

gavinkflam avatar Dec 03 '23 00:12 gavinkflam