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
| Option | Description | Default | Required |
|---|---|---|---|
| update every | Data collection frequency. | 1 | no |
| command options | Additional parameters for collector | no |
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:
| Label | Description |
|---|---|
| feature | Stable sensor feature identifier |
| label | Human-readable sensor label |
| chip_id | Sensor chip identifier |
| path | The hwmon sysfs path of the sensor chip |
| subsystem | Hardware subsystem the sensor chip belongs to |
| driver | Kernel driver providing the sensor |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| system.hw.sensor.temperature.input | input | degrees Celsius |
| system.hw.sensor.temperature.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
| system.hw.sensor.voltage.input | input | Volts |
| system.hw.sensor.voltage.average | average | Volts |
| system.hw.sensor.voltage.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
| system.hw.sensor.fan.input | input | rotations per minute |
| system.hw.sensor.fan.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
| system.hw.sensor.current.input | input | Amperes |
| system.hw.sensor.current.average | average | Amperes |
| system.hw.sensor.current.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
| system.hw.sensor.power.input | input | Watts |
| system.hw.sensor.power.average | average | Watts |
| system.hw.sensor.power.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
| system.hw.sensor.energy.input | input | Joules |
| system.hw.sensor.energy.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
| system.hw.sensor.humidity.input | input | percentage |
| system.hw.sensor.humidity.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
| system.hw.sensor.intrusion.alarm | clear, warning, cap, alarm, critical, emergency, fault | status |
Per Linux Hardware Sensors (libsensors) instance
Host-wide summary of all temperature sensors.
This scope has no labels.
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| system.hw.sensor.temperature.histogram | 40, 50, 60, 70, 80, 85, 90, 95, 100, +Inf | sensors |
Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.