---
title: Telegraf Documentation
description: Telegraf plugin for collecting metrics from Temperature
url: https://docs.influxdata.com/telegraf/v1/input-plugins/temp/
estimated_tokens: 958
product: Telegraf
version: v1
---

-   Telegraf v1.8.0+

# Temperature Input Plugin

This plugin gathers metrics on system temperatures.

**Introduced in:** Telegraf v1.8.0 **Tags:** hardware, system **OS support:** linux, macos, windows

## Global configuration options

Plugins support additional global and plugin configuration settings for tasks such as modifying metrics, tags, and fields, creating aliases, and configuring plugin ordering. See [CONFIGURATION.md](/telegraf/v1/configuration/#plugins) for more details.

## Configuration

```toml
# Read metrics about temperature
[[inputs.temp]]
  ## Desired output format (Linux only)
  ## Available values are
  ##   v1 -- use pre-v1.22.4 sensor naming, e.g. coretemp_core0_input
  ##   v2 -- use v1.22.4+ sensor naming, e.g. coretemp_core_0_input
  # metric_format = "v2"

  ## Add device tag to distinguish devices with the same name (Linux only)
  # add_device_tag = false
```

## 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
```

If the result is “Not Supported” you may be running in a virtualized environment and not a physical machine. Additionally, if you still get this result your motherboard or system may not support querying these values. Finally, you may be required to run as admin to get the values.

## Metrics

-   temp
    -   tags:
        -   sensor
    -   fields:
        -   temp (float, celcius)

## Example Output

```text
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
```

#### Related

-   [Configure plugins](/telegraf/v1/configure_plugins/)
-   [Temperature Plugin Source](https://github.com/influxdata/telegraf/tree/v1.38.4/plugins/inputs/temp/README.md)
