

Run the following commands sequentially to install Telegraf: wget -q echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c & cat influxdata-archive_compat.key | gpg -dearmor | sudo tee /etc/apt//influxdata-archive_compat.gpg > /dev/null echo 'deb stable main' | sudo tee /etc/apt//influxdata.list sudo apt-get update & sudo apt-get install telegraf Now, run the following command to apply the Raspberry Pi template. active Applying the Raspberry Pi Template token v_od_mG-9_srf_OnaaODihPDX34suToP7XEH47v6x77CMxakZaoYHzF7Ec9mLT-CuXXXXXXXXXXXXXXXXXvQCSSw= \ Replace the with the API token you got in the previous step.įor example, in my case, the command looks as follows: influx config create -config-name influx-config \.Replace with your InfluxDB organization name.Replace YOUR_RASPBERRY_PI_IP_ADDRESS with your Pi’s IP address.host-url YOUR_RASPBERRY_PI_IP_ADDRESS:8086 \ For that, you need to use the influx config create command and pass your information.įirst, edit the following command with your information: influx config create -config-name influx-config \ To avoid having to pass your InfluxDB host, API token, and organization with each command, you can store them in an influx CLI configuration (config). Provide required authentication credentials It should be automatically installed when you install InfluxDB. Influx CLI is InfluxDB command line interface that contains commands to manage many aspects of InfluxDB, including buckets, organizations, users, tasks, etc. The new API Token should be on the list of API tokens. Click on the + Generate API Token to generate a new API Token. Once you’re on InfluxDB, on the left sidebar click on Data/Load Data and then, select the API Tokens tab. Go to your InfluxDB Interface: Your_RPi_IP_address:8086 You need to get an InfluxDB token to be able to install the Raspberry Pi Monitoring template using Influx CLI (command line interface). labels: raspberry-pi + Telegraf plugin labelsįollow the next instructions to install the Raspberry Pi Monitoring template.We’ll use the Raspberry Pi Monitoring template that includes the following: To learn more about InfluxDB templates, you can check the following link: In this case, you’ll get a set of configurations that are ready to use to monitor your Raspberry Pi.

Templates reduce the setup time by giving you resources that are already configured for your use case. An InfluxDB template is a prepackaged set of InfluxDB configurations that contain everything from dashboards and Telegraf configurations to notifications and alerts. There is an InfluxDB template that can be used to monitor your Raspberry Pi Linux system. Before proceeding you must have InfluxDB installed on your Raspberry Pi.
