influx telegrafs create

The influx telegrafs create command creates a new Telegraf configuration in InfluxDB using a provided Telegraf configuration file.

Usage

  1. influx telegrafs create [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 create 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. # Create a new Telegraf configuration
  2. influx telegrafs create \
  3. -n "Example configuration name" \
  4. -d "Example Telegraf configuration description" \
  5. -f /path/to/telegraf.conf
  6. # Create a new Telegraf configuration with configuration settings
  7. # provided via STDIN
  8. cat /path/to/telegraf.conf | influx telegrafs create \
  9. -n "Example configuration name" \
  10. -d "Example Telegraf configuration description" \