telegraf/plugins/inputs/temp/README.md

50 lines
1.3 KiB
Markdown
Raw Normal View History

# Temperature Input Plugin
2018-09-11 02:52:15 +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
## 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.
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md
## Configuration
2018-09-11 02:52:15 +08:00
```toml @sample.conf
# Read metrics about temperature
2018-09-11 02:52:15 +08:00
[[inputs.temp]]
# no configuration
2018-09-11 02:52:15 +08:00
```
## Metrics
2018-09-11 02:52:15 +08:00
- temp
- tags:
2018-09-11 02:52:15 +08:00
- sensor
- fields:
- temp (float, celcius)
2018-09-11 02:52:15 +08:00
## Troubleshooting
On **Windows**, the plugin uses a WMI call that is can be replicated with the
following command:
```shell
wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature
```
## Example Output
2018-09-11 02:52:15 +08:00
```shell
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
```