influx telegrafs update

The influx telegrafs update command updates a Telegraf configuration to match the specified parameters. If a name or description are not provided, they are set to an empty string.

Usage

  1. influx telegrafs update [flags]

Flags

FlagDescriptionInput typeMaps to ?
-c—active-configCLI configuration to use for commandstring
—configs-pathPath to influx CLI configurations (default ~/.influxdbv2/configs)stringINFLUX_CONFIGS_PATH
-d—descriptionTelegraf configuration descriptionstring
-f—filePath to Telegraf configurationstring
-h—helpHelp for the update command
—hide-headersHide table headersINFLUX_HIDE_HEADERS
—jsonOutput data as JSONINFLUX_OUTPUT_JSON
-n—nameTelegraf configuration namestring
-o—orgOrganization namestringINFLUX_ORG
—org-idOrganization IDstringINFLUX_ORG_ID

Examples

  1. # Update a Telegraf configuration
  2. influx telegrafs update \
  3. -i $ID \
  4. -n "Example configuration name" \
  5. -d "Example Telegraf configuration description" \
  6. -f /path/to/telegraf.conf
  7. # Update a Telegraf configuration with configuration settings
  8. # provided via STDIN
  9. cat /path/to/telegraf.conf | influx telegrafs update \
  10. -i $ID \
  11. -n "Example configuration name" \
  12. -d "Example Telegraf configuration description" \