InfluxDB Docs

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

influx telegrafs update [flags]

Flags

FlagDescriptionInput typeMaps to ?
--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

# Update a Telegraf configuration
influx telegrafs update \
  -i $ID \
  -n "Example configuration name" \
  -d "Example Telegraf configuration description" \
  -f /path/to/telegraf.conf

# Update a Telegraf configuration with configuration settings
# provided via STDIN
cat /path/to/telegraf.conf | influx telegrafs update \
  -i $ID \
  -n "Example configuration name" \
  -d "Example Telegraf configuration description" \

New! Cloud or OSS?