2019-06-05 19:47:17 +00:00
|
|
|
# HDDtemp Input Plugin
|
2016-07-21 16:00:54 +00:00
|
|
|
|
2019-06-05 19:47:17 +00:00
|
|
|
This plugin reads data from hddtemp daemon.
|
2016-07-21 16:00:54 +00:00
|
|
|
|
2019-06-05 19:47:17 +00:00
|
|
|
Hddtemp should be installed and its daemon running.
|
2016-07-21 16:00:54 +00:00
|
|
|
|
2019-06-05 19:47:17 +00:00
|
|
|
### Configuration
|
2016-07-21 16:00:54 +00:00
|
|
|
|
2016-12-13 19:40:55 +00:00
|
|
|
```toml
|
2016-07-21 16:00:54 +00:00
|
|
|
[[inputs.hddtemp]]
|
2019-06-05 19:47:17 +00:00
|
|
|
## By default, telegraf gathers temps data from all disks detected by the
|
|
|
|
## hddtemp.
|
|
|
|
##
|
|
|
|
## Only collect temps from the selected disks.
|
|
|
|
##
|
|
|
|
## A * as the device name will return the temperature values of all disks.
|
|
|
|
##
|
|
|
|
# address = "127.0.0.1:7634"
|
|
|
|
# devices = ["sda", "*"]
|
2016-07-21 16:00:54 +00:00
|
|
|
```
|
2016-12-13 19:40:55 +00:00
|
|
|
|
2019-06-05 19:47:17 +00:00
|
|
|
### Metrics
|
2016-12-13 19:40:55 +00:00
|
|
|
|
|
|
|
- hddtemp
|
2019-06-05 19:47:17 +00:00
|
|
|
- tags:
|
|
|
|
- device
|
|
|
|
- model
|
|
|
|
- unit
|
|
|
|
- status
|
|
|
|
- source
|
|
|
|
- fields:
|
|
|
|
- temperature
|
2016-12-13 19:40:55 +00:00
|
|
|
|
|
|
|
|
2019-06-05 19:47:17 +00:00
|
|
|
### Example output
|
2016-12-13 19:40:55 +00:00
|
|
|
|
|
|
|
```
|
2019-06-05 19:47:17 +00:00
|
|
|
hddtemp,source=server1,unit=C,status=,device=sdb,model=WDC\ WD740GD-00FLA1 temperature=43i 1481655647000000000
|
|
|
|
hddtemp,device=sdc,model=SAMSUNG\ HD103UI,unit=C,source=server1,status= temperature=38i 148165564700000000
|
|
|
|
hddtemp,device=sdd,model=SAMSUNG\ HD103UI,unit=C,source=server1,status= temperature=36i 1481655647000000000
|
2016-12-13 19:40:55 +00:00
|
|
|
```
|