---
title: Use Telegraf to write data
description: Use Telegraf to collect and write data to InfluxDB v2.0. Create Telegraf configurations in the InfluxDB UI or manually configure Telegraf.
url: https://docs.influxdata.com/influxdb/cloud/write-data/no-code/use-telegraf/
estimated_tokens: 491
product: InfluxDB Cloud (TSM)
version: cloud
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/cloud/write-data/no-code/use-telegraf/
date: '2025-01-13T07:21:11-07:00'
lastmod: '2025-01-13T07:21:11-07:00'
---

[Telegraf](https://www.influxdata.com/time-series-platform/telegraf/) is InfluxData’s
data collection agent for collecting and reporting metrics.
Its vast library of input plugins and “plug-and-play” architecture lets you quickly
and easily collect metrics from many different sources.
This article describes how to use Telegraf to collect and store data in InfluxDB v2.0.

For a list of available plugins, see [Telegraf plugins](/telegraf/v1/plugins//).

#### Requirements

* **Telegraf 1.9.2 or greater**.*For information about installing Telegraf, see the[Telegraf Installation instructions](/telegraf/v1/install/).*

## Configure Telegraf

Telegraf input and output plugins are enabled and configured in Telegraf’s configuration file (`telegraf.conf`).
You have the following options for configuring Telegraf:

### [Automatically configure Telegraf](/influxdb/cloud/write-data/no-code/use-telegraf/auto-config/)

Use the InfluxDB UI to automatically generate a Telegraf configuration, then start Telegraf using the generated configuration file.

### [Dual write to InfluxDB OSS and InfluxDB Cloud](/influxdb/cloud/write-data/no-code/use-telegraf/dual-write/)

Write data to both OSS and Cloud simultaneously.

### [Manually configure Telegraf](/influxdb/cloud/write-data/no-code/use-telegraf/manual-config/)

Update existing or create new Telegraf configurations to use the `influxdb_v2` output plugin to write to InfluxDB v2.0. Start Telegraf using the custom configuration.

### [Use Telegraf plugins](/influxdb/cloud/write-data/no-code/use-telegraf/use-telegraf-plugins/)

Use Telegraf plugins to capture and write metrics to InfluxDB.

![InfluxDB University](/svgs/influxdbu-full-white.svg)

#### Data Collection with Telegraf

Learn how to use Telegraf to make data time series data collection easy in this **free** InfluxDB University course.

[Take the course](https://university.influxdata.com/courses/data-collection-with-telegraf-tutorial/)
