![]() ![]() With InfluxDB now installed to our Raspberry Pi, let’s now get it to start at boot. To install InfluxDB to our Raspberry Pi, all we need to do is run the command below. Now that we have set up the repository, we can now move on to installing the InfluxDB software. Run the following command on your Raspberry Pi to update the package list. The operating system does not automatically do this. We need to do this so that the apt package manager searches the repository that we just added for packages. With the repository added, we now need to go ahead and update the package list again. Ubuntu (or Ubuntu Mate) echo "deb $(lsb_release -cs) stable" | sudo tee /etc/apt//influxdb.listĤ. ![]() Raspbian / Raspberry Pi OS echo "deb $(lsb_release -cs) stable" | sudo tee /etc/apt//influxdb.list Most users running on new installations of Raspbian will likely be running Raspbian Buster. Make sure you pick the right command for the version of Raspbian that you are running. Now enter the following command to add the InfluxDB repository to the sources list. Now that we have the InfluxDB repository key installed to our Raspberry Pi, we will need to go ahead and add its repository to the sources list. Once the keyring has been de-armored it gets saved into the “ /usr/share/keyrings/” directory.ģ. This command will download the key using curl and pass it directly into the “ gpg” program by using a pipe “ |“. curl | gpg -dearmor | sudo tee /usr/share/keyrings/influxdb-archive-keyring.gpg >/dev/null We can add the InfluxDB key by running the following command. Our next step is to add the InfluxDB repository key to our Raspberry Pi.Īdding the key will allow the package manager on Raspbian to search the repository and verify the packages its installing. With everything now up to date, we can now proceed with installing InfluxDB to the Raspberry Pi. We can upgrade all installed packages by running the following two commands. The first thing we should do before installing InfluxDB to the Raspberry Pi is making sure that all the currently installed packages are up to date. Equipmentīelow is all the equipment that you will need to set up InfluxDB on your Raspberry Pi. Grafana has inbuilt support for displaying data from an InfluxDB database. ![]() InfluxDB is the perfect database software to go alongside the popular visualization tool Grafana. You can easily use InfluxDB to store information like the temperature in a room or the CPU usage of a system. This means that each data point in the database will contain a timestamp.īeing time series based makes InfluxDB one of the best databases for monitoring metrics and events. We will also be showing you how to enable authentication on your InfluxDB server to improve its security, as well as showing you how to interact with the database through the command line.įor those who are wondering what InfluxDB is, it is a time series based database system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |