These instructions assume that you have configured your Influx CLI to use configuration profiles. For more information, please see influx config -h
or the InfluxDB documentation.
Each template provides a manifest file and instructions for using the template. To import a template, use the following command:
influx pkg --file ~/path/to/template/manifest.yml
This imports the specified manifest.yml
into an instance of InfluxDB running on localhost
.
Manifest files can be YAML, JSON or Jsonnet.
If you don't want to download the manifest file locally, you can point to its remote location using the --url
flag, for example:
influx pkg --url https://raw.githubusercontent.com/influxdata/community-templates/master/template/manifest.yml
NOTE: Ensure that when pulling a file from Github, you will need to use the raw
content link from the Raw
button, not the URL of the file.
If you are using InfluxDB Cloud, ensure that your Influx CLI is configured with your cloud account credentials and that configuration is active. See influx config -h
or the InfluxDB documentation for more details.
influx pkg --file ~/path/to/template/manifest.yml
Your default organization name in InfluxDB Cloud will be your email address.
To apply templates and download Telegraf configurations from InfluxDB Cloud, create an All Access Token. You can create this token from the Load Data
-> Tokens
section of the UI.
If running InfluxDB on a remote server, provide the URL of your InfluxDB instance using the --host
flag and provide your InfluxDB authentication token using the --token
flag:
influx pkg --file ~/path/to/template/manifest.yml
Need help? You can find support information at the bottom of the main page.