InfluxDB Docs

influx telegrafs create

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

Usage

influx telegrafs create [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 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

# Create a new Telegraf configuration
influx telegrafs create \
  -n "Example configuration name" \
  -d "Example Telegraf configuration description" \
  -f /path/to/telegraf.conf

# Create a new Telegraf configuration with configuration settings
# provided via STDIN
cat /path/to/telegraf.conf | influx telegrafs create \
  -n "Example configuration name" \
  -d "Example Telegraf configuration description" \

New! Cloud or OSS?