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
|
|
|
|
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:50:13 +08:00
|
|
|
## Configuration
|
2018-09-11 02:52:15 +08:00
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
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
|
|
|
```
|