Raspberry Pi installation instructions

It seems there is some confusion around the Raspberry Pi installation:

  • use the arm_hf deb version (whose link is not really published anywhere?) or set a influx apt source or download/unpack/copy the tarred files?
  • is systemd supported out-of-the-box or are additional actions needed?

@noahcrowley was working on a post, but the relevant topic (Installing on a Raspberry Pi) was closed and I’m not sure where the post could be found.

I’m currently only looking at installing Telegraf, but this is probably relevant for all components.
Any pointers welcome (and congrats on an amazing product!)

For anyone who would be interested, the following seems to have worked just fine for me

wget https://dl.influxdata.com/telegraf/releases/telegraf_1.7.0-1_armhf.deb
sudo dpkg -i telegraf_1.7.0-1_armhf.deb
rm telegraf_1.7.0-1_armhf.deb
sudo systemctl status telegraf
1 Like

The easiest way to do this is to add the InfluxData repos:

curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/lsb-release
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

You may or may not need to also run sudo apt-get update && sudo apt-get install apt-transport-https in order to be able to read the https repo.
From then on a simple apt-get install telegraf (or whatever component you wish to install) will work, and as new releases become available they will be automatically updated via apt-get

Best regards,
dg

2 Likes

These instructions for adding the InfluxData repos won’t work on Raspbian, which is the OS most people use for the Raspberry Pi.

Instead, try this:

curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt-get update
sudo apt-get install telegraf

Where stretch is the codename for your version of Raspbian. “Stretch” is the code name for the latest version, which you can find on the Raspberry Pi org’s download page. To find out which version you’re running, you can check the /etc/os-releases file using the following command:

cat /etc/os-release
2 Likes

Excellent info, thanks!

Immaterial side notes:
The current download version on Raspberry Pi OS – Raspberry Pi is actually stretch (Debian 9), not wheezy (Debian 7)
The command is singular (at least on my machine):

cat /etc/os-release

Thanks @dirkdevriendt! Don’t have a rPi on hand to be able to test with :wink: I’ve updated my post.

It took me a while to sort out the correct installation procedure for the entire TICK stack. The documentation for each component was not consistent. Can’t remember which, but one of them offered a nice sequence for auto-detecting and auto-selecting the right package. The summary steps are similar to @noahcrowley, but figures out the correct OS for you and lends itself to copy-paste:

curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - 
source /etc/os-release
test $VERSION_ID = "7" && echo "deb https://repos.influxdata.com/debian wheezy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "8" && echo "deb https://repos.influxdata.com/debian jessie stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
test $VERSION_ID = "9" && echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

sudo apt-get update && sudo apt-get install influxdb
sudo systemctl start influxdb

Install rest of TICK Stack
sudo apt-get install chronograf
sudo apt-get install telegraf kapacitor
sudo systemctl start chronograf telegraf kapacitor

Then follow the rest of the setup instructions here:
https://docs.influxdata.com/chronograf/v1.4/introduction/getting-started/

I’ve successfully run this on a Raspberry Pi B - It is totally under powered for anything beyond a simple sandbox to play around. You’ll likely have better luck with a PI 3 B+.

1 Like

Thank you so much, for me it resolve!