Documentation

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

# 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?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: