Documentation

Update a Telegraf configuration

Use the InfluxDB user interface (UI) or the influx CLI to update InfluxDB Telegraf configurations.

To update a Telegraf configuration, do one of the following:

Telegraf doesn’t detect changes to remote configurations. If you edit a remote configuration, you must restart Telegraf or send it a SIGHUP command for your changes to take effect.

Use the InfluxDB UI

Update the name or description of a configuration

  1. In the navigation menu on the left, select Data (Load Data) > Telegraf.

  2. Hover over the configuration you want to edit and click to update the name or description.

  3. Press Return or click out of the editable field to save your changes.

Edit the configuration file directly in the UI

  1. In the navigation menu on the left, select Data (Load Data) > Telegraf.

  2. To edit the configuration file: a. Click the name of the configuration. b. Add or update Telegraf plugin settings in the window that appears.

    The text editor window doesn’t detect if any plugins or settings are misconfigured. Any errors in your configuration that may cause Telegraf to fail when you restart it.

    c. Click Save Changes and then Save again to confirm.

  3. To apply the updated configuration, restart Telegraf. To find the exact command to start Telegraf, click Setup Instructions on the Telegraf page.

Download and verify the configuration file

  1. In the navigation menu on the left, select Data (Load Data) > Telegraf.

  2. Click the name of the Telegraf configuration to customize.

  3. Click Download Config to download the Telegraf configuration file to your local machine.

  4. Review the configuration file. Add or update Telegraf plugin settings and save your changes.

  5. Use the influx telegrafs update command to upload your modified Telegraf configuration to InfluxDB and replace the existing configuration.

  6. To apply the updated configuration, restart Telegraf. To find the exact command to start Telegraf, click Setup Instructions on the Telegraf page.

Use the influx CLI

Use the influx telegrafs update command to update an existing InfluxDB Telegraf configuration name, description, or settings from a Telegraf configuration file on your local machine.

Provide the following:

  • Telegraf configuration ID (shown in the output of influx telegrafs)
  • Telegraf configuration name
  • Telegraf configuration description
  • Telegraf configuration file

If a name and description are not provided, they are replaced with empty strings.

# Syntax
influx telegrafs update \
  -i <telegraf-config-id> \
  -n <telegraf-config-name> \
  -d <telegraf-config-description> \
  -f /path/to/telegraf.conf

# Example
influx telegrafs update \
  -i 12ab34de56fg78hi
  -n "Example Telegraf config"
  -d "This is a description for an example Telegraf configuration."
  -f /path/to/telegraf.conf

Was this page helpful?

Thank you for your feedback!


Introducing InfluxDB Clustered

A highly available InfluxDB 3.0 cluster on your own infrastructure.

InfluxDB Clustered is a highly available InfluxDB 3.0 cluster built for high write and query workloads on your own infrastructure.

InfluxDB Clustered is currently in limited availability and is only available to a limited group of InfluxData customers. If interested in being part of the limited access group, please contact the InfluxData Sales team.

Learn more
Contact InfluxData Sales

The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Flux is going into maintenance mode and will not be supported in InfluxDB 3.0. This was a decision based on the broad demand for SQL and the continued growth and adoption of InfluxQL. We are continuing to support Flux for users in 1.x and 2.x so you can continue using it with no changes to your code. If you are interested in transitioning to InfluxDB 3.0 and want to future-proof your code, we suggest using InfluxQL.

For information about the future of Flux, see the following:

InfluxDB Cloud powered by TSM