2019-06-06 03:47:17 +08:00
|
|
|
# HDDtemp Input Plugin
|
2016-07-22 00:00:54 +08:00
|
|
|
|
2019-06-06 03:47:17 +08:00
|
|
|
This plugin reads data from hddtemp daemon.
|
2016-07-22 00:00:54 +08:00
|
|
|
|
2019-06-06 03:47:17 +08:00
|
|
|
Hddtemp should be installed and its daemon running.
|
2016-07-22 00:00:54 +08:00
|
|
|
|
2022-10-27 03:58:36 +08:00
|
|
|
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
|
|
|
|
|
|
|
|
|
In addition to the plugin-specific configuration settings, plugins support
|
|
|
|
|
additional global and plugin configuration settings. These settings are used to
|
|
|
|
|
modify metrics, tags, and field or create aliases and configure ordering, etc.
|
|
|
|
|
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
|
|
|
|
|
|
2023-01-12 23:55:21 +08:00
|
|
|
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md#plugins
|
2022-10-27 03:58:36 +08:00
|
|
|
|
2021-11-25 02:56:55 +08:00
|
|
|
## Configuration
|
2016-07-22 00:00:54 +08:00
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
2022-04-08 06:01:21 +08:00
|
|
|
# Monitor disks' temperatures using hddtemp
|
2016-07-22 00:00:54 +08:00
|
|
|
[[inputs.hddtemp]]
|
2019-06-06 03:47:17 +08: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-22 00:00:54 +08:00
|
|
|
```
|
2016-12-14 03:40:55 +08:00
|
|
|
|
2021-11-25 02:56:55 +08:00
|
|
|
## Metrics
|
2016-12-14 03:40:55 +08:00
|
|
|
|
|
|
|
|
- hddtemp
|
2019-06-06 03:47:17 +08:00
|
|
|
- tags:
|
|
|
|
|
- device
|
|
|
|
|
- model
|
|
|
|
|
- unit
|
|
|
|
|
- status
|
|
|
|
|
- source
|
|
|
|
|
- fields:
|
|
|
|
|
- temperature
|
2016-12-14 03:40:55 +08:00
|
|
|
|
2023-02-09 18:04:41 +08:00
|
|
|
## Example Output
|
2016-12-14 03:40:55 +08:00
|
|
|
|
2023-04-04 19:43:49 +08:00
|
|
|
```text
|
2019-06-06 03:47:17 +08: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-14 03:40:55 +08:00
|
|
|
```
|