2016-06-24 08:18:02 +00:00
|
|
|
# sensors Input Plugin
|
|
|
|
|
|
|
|
Collect [lm-sensors](https://en.wikipedia.org/wiki/Lm_sensors) metrics - requires the lm-sensors
|
|
|
|
package installed.
|
|
|
|
|
|
|
|
This plugin collects sensor metrics with the `sensors` executable from the lm-sensor package.
|
|
|
|
|
|
|
|
### Configuration:
|
|
|
|
```
|
|
|
|
# Monitor sensors, requires lm-sensors package
|
|
|
|
[[inputs.sensors]]
|
|
|
|
## Remove numbers from field names.
|
|
|
|
## If true, a field name like 'temp1_input' will be changed to 'temp_input'.
|
|
|
|
# remove_numbers = true
|
2018-05-22 20:59:59 +00:00
|
|
|
|
|
|
|
## Timeout is the maximum amount of time that the sensors command can run.
|
|
|
|
# timeout = "5s"
|
2016-06-24 08:18:02 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Measurements & Fields:
|
|
|
|
Fields are created dynamicaly depending on the sensors. All fields are float.
|
|
|
|
|
|
|
|
### Tags:
|
|
|
|
|
|
|
|
- All measurements have the following tags:
|
|
|
|
- chip
|
|
|
|
- feature
|
|
|
|
|
|
|
|
### Example Output:
|
|
|
|
|
|
|
|
#### Default
|
|
|
|
```
|
2017-05-12 22:22:29 +00:00
|
|
|
$ telegraf --config telegraf.conf --input-filter sensors --test
|
2016-06-24 08:18:02 +00:00
|
|
|
* Plugin: sensors, Collection 1
|
|
|
|
> sensors,chip=power_meter-acpi-0,feature=power1 power_average=0,power_average_interval=300 1466751326000000000
|
|
|
|
> sensors,chip=k10temp-pci-00c3,feature=temp1 temp_crit=70,temp_crit_hyst=65,temp_input=29,temp_max=70 1466751326000000000
|
|
|
|
> sensors,chip=k10temp-pci-00cb,feature=temp1 temp_input=29,temp_max=70 1466751326000000000
|
|
|
|
> sensors,chip=k10temp-pci-00d3,feature=temp1 temp_input=27.5,temp_max=70 1466751326000000000
|
|
|
|
> sensors,chip=k10temp-pci-00db,feature=temp1 temp_crit=70,temp_crit_hyst=65,temp_input=29.5,temp_max=70 1466751326000000000
|
|
|
|
```
|
|
|
|
|
|
|
|
#### With remove_numbers=false
|
|
|
|
```
|
|
|
|
* Plugin: sensors, Collection 1
|
|
|
|
> sensors,chip=power_meter-acpi-0,feature=power1 power1_average=0,power1_average_interval=300 1466753424000000000
|
|
|
|
> sensors,chip=k10temp-pci-00c3,feature=temp1 temp1_crit=70,temp1_crit_hyst=65,temp1_input=29.125,temp1_max=70 1466753424000000000
|
|
|
|
> sensors,chip=k10temp-pci-00cb,feature=temp1 temp1_input=29,temp1_max=70 1466753424000000000
|
|
|
|
> sensors,chip=k10temp-pci-00d3,feature=temp1 temp1_input=29.5,temp1_max=70 1466753424000000000
|
|
|
|
> sensors,chip=k10temp-pci-00db,feature=temp1 temp1_crit=70,temp1_crit_hyst=65,temp1_input=30,temp1_max=70 1466753424000000000
|
|
|
|
```
|