Telegraf configurations

This page documents an earlier version of InfluxDB. InfluxDB v2.7 is the latest stable version. View this page in the v2.7 documentation.

InfluxDB lets you automatically generate Telegraf configurations or upload custom Telegraf configurations that collect metrics and write them to InfluxDB. Telegraf retrieves configurations from InfluxDB on startup.

Use InfluxDB Telegraf configurations

With a Telegraf configuration stored in InfluxDB, the telegraf agent can retrieve the configuration from an InfluxDB HTTP(S) endpoint.

  • Ensure Telegraf has network access to InfluxDB (OSS or Cloud).

  • Start the telegraf agent using the --config flag to provide the URL of the InfluxDB Telegraf configuration. For example:

    telegraf --config http://localhost:8086/api/v2/telegrafs/<telegraf-config-id>

Setup instructions for each Telegraf configuration are provided in the InfluxDB UI.

Manage Telegraf configurations

Was this page helpful?

Thank you for your feedback!

Set your InfluxDB URL

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.