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:

Use the InfluxDB UI

The InfluxDB UI lets you update the name or description of a Telegraf configuration.

You cannot modify Telegraf settings in existing Telegraf configurations directly through the InfluxDB UI. To modify existing Telegraf configuration settings, use the influx CLI to update the Telegraf configuration.

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

    Data

    Load Data

  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.

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.

  1. # Syntax
  2. influx telegrafs update \
  3. -i <telegraf-config-id> \
  4. -n <telegraf-config-name> \
  5. -d <telegraf-config-description> \
  6. -f /path/to/telegraf.conf
  7. # Example
  8. influx telegrafs update \
  9. -i 12ab34de56fg78hi
  10. -n "Example Telegraf config"
  11. -d "This is a description for an example Telegraf configuration."
  12. -f /path/to/telegraf.conf

Customize an existing Telegraf configuration

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

    Data

    Load Data

  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. 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.