Skip to main content

Linux Hardware Sensors (libsensors)

Plugin: debugfs.plugin Module: libsensors

Overview

Collects hardware sensor readings (temperature, voltage, fan speed, current, power, energy, humidity and intrusion state) from all hardware monitoring chips exposed by the Linux hwmon subsystem. Every sensor gets its own chart, a cross-platform temperature histogram summarizes all temperature sensors in fixed bands, and a live sensors function lists every discovered sensor with its current reading and state.

Uses a bundled copy of the libsensors library (the same library behind the sensors command) to enumerate and read the hardware monitoring chips exposed under /sys/class/hwmon.

This collector is only supported on the following platforms:

  • Linux

This collector only supports collecting metrics from a single instance of this integration.

The hwmon sysfs attributes are generally world-readable, so no additional permissions beyond the ones the debugfs plugin already has are required.

Default Behavior

Auto-Detection

All hardware monitoring chips exposed by the hwmon subsystem are detected and collected automatically. The collection interval is automatically raised above the configured update every when reading the sensors is slow.

Limits

The default configuration for this integration does not impose any limits on data collection.

Performance Impact

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Setup

Prerequisites

No action required.

Configuration

Options

Config options
OptionDescriptionDefaultRequired
update everyData collection frequency.1no
command optionsAdditional parameters for collectorno

via File

The configuration file name for this integration is netdata.conf. Configuration for this specific integration is located in the [plugin:debugfs] section within that file.

The file format is a modified INI syntax. The general structure is:

[section1]
option1 = some value
option2 = some other value

[section2]
option3 = some third value

You can edit the configuration file using the edit-config script from the Netdata config directory.

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config netdata.conf
Examples

There are no configuration examples.

Alerts

There are no alerts configured by default for this integration.

Metrics

Metrics grouped by scope.

The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.

Per-sensor charts are created for every supported reading of every discovered sensor; the alarm charts expose only the states each sensor driver actually supports. The temperature histogram is a single host-wide chart with the same fixed bands on every operating system: each dimension is a DISJOINT band named after its EXCLUSIVE upper bound in degrees Celsius, and every temperature sensor is counted in exactly one band.

Per sensor

These metrics refer to a hardware sensor chip feature.

Labels:

LabelDescription
featureStable sensor feature identifier
labelHuman-readable sensor label
chip_idSensor chip identifier
pathThe hwmon sysfs path of the sensor chip
subsystemHardware subsystem the sensor chip belongs to
driverKernel driver providing the sensor

Metrics:

MetricDimensionsUnit
system.hw.sensor.temperature.inputinputdegrees Celsius
system.hw.sensor.temperature.alarmclear, warning, cap, alarm, critical, emergency, faultstatus
system.hw.sensor.voltage.inputinputVolts
system.hw.sensor.voltage.averageaverageVolts
system.hw.sensor.voltage.alarmclear, warning, cap, alarm, critical, emergency, faultstatus
system.hw.sensor.fan.inputinputrotations per minute
system.hw.sensor.fan.alarmclear, warning, cap, alarm, critical, emergency, faultstatus
system.hw.sensor.current.inputinputAmperes
system.hw.sensor.current.averageaverageAmperes
system.hw.sensor.current.alarmclear, warning, cap, alarm, critical, emergency, faultstatus
system.hw.sensor.power.inputinputWatts
system.hw.sensor.power.averageaverageWatts
system.hw.sensor.power.alarmclear, warning, cap, alarm, critical, emergency, faultstatus
system.hw.sensor.energy.inputinputJoules
system.hw.sensor.energy.alarmclear, warning, cap, alarm, critical, emergency, faultstatus
system.hw.sensor.humidity.inputinputpercentage
system.hw.sensor.humidity.alarmclear, warning, cap, alarm, critical, emergency, faultstatus
system.hw.sensor.intrusion.alarmclear, warning, cap, alarm, critical, emergency, faultstatus

Per Linux Hardware Sensors (libsensors) instance

Host-wide summary of all temperature sensors.

This scope has no labels.

Metrics:

MetricDimensionsUnit
system.hw.sensor.temperature.histogram40, 50, 60, 70, 80, 85, 90, 95, 100, +Infsensors

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.