- Add the APT key used to authenticate packages:
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
- Add the Grafana APT repository:
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
- Install Grafana:
sudo apt-get update
sudo apt-get install -y grafana
- Enable the Grafana server:
sudo /bin/systemctl enable grafana-server
- Start the Grafana server:
sudo /bin/systemctl start grafana-server
- Open a browser and go to http://"ip-address">:3000, (IP-address is the address of the Raspberry Pi). You get the ip with the following command
ifconfig
- Log in to Grafana with the default username admin, and the default password admin
- Add the InfluxDB repository key to yozr Raspberry Pi. Adding the key will allow the package manager on Raspbian to search the repository and verify the packages its installing.
wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
- Now enter the following command to add the InfluxDB repository to the sources list.
echo "deb https://repos.influxdata.com/debian buster stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
- Run the following command on your Raspberry Pi to update the package list.
sudo apt update
- To install InfluxDB to our Raspberry Pi, all we need to do is run the command below.
sudo apt install influxdb
- Run the following two commands to enable InfluxDB to start at boot on your Raspberry Pi.
sudo systemctl unmask influxdb
sudo systemctl enable influxdb
- To start up the InfluxDB server, we will need to run the following command. The service manager will then start up the service and begin monitoring it.
sudo systemctl start influxdb
- start de DB
influx
- create DB
create database <name>