2020-08-12 04:10:41 +08:00
|
|
|
# Temperature Input Plugin
|
2018-09-11 02:52:15 +08:00
|
|
|
|
2018-09-27 10:05:55 +08:00
|
|
|
The temp input plugin gather metrics on system temperature. This plugin is
|
|
|
|
|
meant to be multi platform and uses platform specific collection methods.
|
|
|
|
|
|
|
|
|
|
Currently supports Linux and Windows.
|
2018-09-11 02:52:15 +08:00
|
|
|
|
2021-11-25 02:50:13 +08:00
|
|
|
## Configuration
|
2018-09-11 02:52:15 +08:00
|
|
|
|
2019-12-05 06:32:54 +08:00
|
|
|
```toml
|
2022-04-12 05:32:25 +08:00
|
|
|
# Read metrics about temperature
|
2018-09-11 02:52:15 +08:00
|
|
|
[[inputs.temp]]
|
2019-12-05 06:32:54 +08:00
|
|
|
# no configuration
|
2018-09-11 02:52:15 +08:00
|
|
|
```
|
|
|
|
|
|
2021-11-25 02:50:13 +08:00
|
|
|
## Metrics
|
2018-09-11 02:52:15 +08:00
|
|
|
|
2018-09-27 10:05:55 +08:00
|
|
|
- temp
|
|
|
|
|
- tags:
|
2018-09-11 02:52:15 +08:00
|
|
|
- sensor
|
2018-09-27 10:05:55 +08:00
|
|
|
- fields:
|
|
|
|
|
- temp (float, celcius)
|
2018-09-11 02:52:15 +08:00
|
|
|
|
2021-11-25 02:50:13 +08:00
|
|
|
## Troubleshooting
|
2019-12-05 06:32:54 +08:00
|
|
|
|
|
|
|
|
On **Windows**, the plugin uses a WMI call that is can be replicated with the
|
|
|
|
|
following command:
|
2021-11-25 02:50:13 +08:00
|
|
|
|
|
|
|
|
```shell
|
2019-12-05 06:32:54 +08:00
|
|
|
wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature
|
|
|
|
|
```
|
|
|
|
|
|
2021-11-25 02:50:13 +08:00
|
|
|
## Example Output
|
2018-09-11 02:52:15 +08:00
|
|
|
|
2021-11-25 02:50:13 +08:00
|
|
|
```shell
|
2018-09-27 10:05:55 +08:00
|
|
|
temp,sensor=coretemp_physicalid0_crit temp=100 1531298763000000000
|
|
|
|
|
temp,sensor=coretemp_physicalid0_critalarm temp=0 1531298763000000000
|
|
|
|
|
temp,sensor=coretemp_physicalid0_input temp=100 1531298763000000000
|
|
|
|
|
temp,sensor=coretemp_physicalid0_max temp=100 1531298763000000000
|
2018-09-11 02:52:15 +08:00
|
|
|
```
|