Install Grafana on Brainy Pi

by aaditya04gupta in Circuits > Raspberry Pi

436 Views, 1 Favorites, 0 Comments

Install Grafana on Brainy Pi

FINAL GRAFANA.png

In this blog we are going to install the Grafana on Brainy Pi

Grafana is a visualizing tool with a dashboard that provides a lot of options with graphs to see the data and understand them is called Grafana. It is an open-source tool to view the metrics, do queries, and get alerts of logs being generated. Charts and graphs are generated from data sources and are available through a web browser.

When someone would require the entire chunk of data to be brought under a single umbrella, Grafana is the tool to be looked upon. It provides customized graphs and charts so that users could view the data in their expected templates and know the variance.

Supplies

Screenshot 2023-01-12 114534.png

Brainy Pi

Ethernet / Wifi

sd card

Update Software

Before installing in any new software it is very important to update the system software

To update use the command

sudo apt update 

To upgrade use the command

sudo apt upgrade


Installing Grafana

 1. To install Grafana to the Brainy Pi, we need to add the Grafana package repository.You can do that by the command

curl https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/grafana-archive-keyrings.gpg >/dev/null

2. we can now safely add the Grafana repository to our Pi’s list of package sources.

echo "deb [signed-by=/usr/share/keyrings/grafana-archive-keyrings.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list

3. As we have made changes to our package list, we need to run an update.

sudo apt update

4. Finally we can install the latest version of Grafana by running the following command on your device.

sudo apt install grafana

5. To start Grafana we have to enable it and then start it by the commands

sudo systemctl enable grafana-server
sudo systemctl start grafana-server

Web Interface

To access the web interface, we have to get the IP address of brainy pi. To get the IP address of the Brainy Pi use

hostname -I

After getting the ip address of your brainy pi go to any browser of you choice and search

http://<IPADDRESS>:3000



Web Setup

e7796670-531e-479f-ac5c-e15c427b4530.jpg
6f1a850e-77b2-46b3-95b4-5bec915559d7.jpg

The first thing you will see when loading up Grafana is a login screen.

 username - admin

password - admin

After this, it will give the option to change the password

Now you are ready to use the Grafana dashboard