Grafana is a multi-platform open-source visualization tool with an online web-based interface allowing users to monitor their system metrics on their Raspberry Pi device. It has a built-in alert manager that keeps you updated whenever the server receives data. It also includes visualization options like charts and graphs which are generated from data source and you can view them directly onto your browser tab. With the inclusion of different built-in plugins, you can also use Grafana service on a cloud environment.

This article provides a detailed guideline to install Grafana on Raspberry Pi.

Install Grafana on Raspberry Pi

The installation of Grafana on Raspberry Pi is super easy as it doesn’t require any additional dependencies to operate on your device. Follow the below-given steps to install Grafana on your device.

Step 1: Update Packages

First, you are advised to update packages on your Raspberry Pi device through the following command:

$ sudo apt update && sudo apt upgrade -y

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-1.png" data-lazy- height="464" src="data:image/svg xml,” width=”836″>

Step 2: Adding GPG Key on Raspberry Pi

Next, add the GPG key through below-mentioned command:

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-2.png" data-lazy- height="145" src="data:image/svg xml,” width=”806″>

Step 3: Adding Grafana Repository

After adding the key, use the following command to add Grafana repository to the Raspberry Pi list.

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

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-3.png" data-lazy- height="139" src="data:image/svg xml,” width=”809″>

Step 4: Update Repository

After adding the Grafana repository, execute the below-given command to update Raspberry Pi packages list.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-4.png" data-lazy- height="242" src="data:image/svg xml,” width=”810″>

Step 5: Installing Grafana on Raspberry Pi

Once the repository is added, you are now set to install Grafana on Raspberry Pi through following command:

$ sudo apt install grafana

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-5.png" data-lazy- height="308" src="data:image/svg xml,” width=”808″>

Step 6: Enable Grafana Service

After completing the above steps, enable Grafana service on your Raspberry Pi through the following command:

$ sudo systemctl enable grafana-server

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-6.png" data-lazy- height="162" src="data:image/svg xml,” width=”807″>

Step 7: Start Grafana Service

Then use the following command to start Grafana service on your Raspberry Pi device:

$ sudo systemctl start grafana-server

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-7.png" data-lazy- height="60" src="data:image/svg xml,” width=”809″>

You can check the status through following command:

$ sudo systemctl status grafana-server

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-8.png" data-lazy- height="447" src="data:image/svg xml,” width=”806″>

Step 8: Running Grafana

Now that Grafana service is running fine on Raspberry Pi, you are good to access its dashboard on your browser tab. However, before that, you will need to find the Raspberry Pi host address through following command:

Then use the address https://192.168.18.218:3000 in your browser to open the Grafana GUI interface.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-9.png" data-lazy- height="732" src="data:image/svg xml,” width=”1206″>

Type “admin” as your default email/username and password. Then choose the“Log in” option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-10.png" data-lazy- height="723" src="data:image/svg xml,” width=”1173″>

As the default password is insecure, you will need to change it in the next step.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-11.png" data-lazy- height="707" src="data:image/svg xml,” width=”1169″>

As soon as you click on the “Submit” button, you will be able to see the Grafana dashboard on your browser.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/How-to-Install-Grafana-Visualization-Tool-on-Raspberry-Pi-12.png" data-lazy- height="731" src="data:image/svg xml,” width=”1204″>

This completes the Grafana installation on your Raspberry Pi device. In case you need assistance, go to the Grafana documentation to acquire the basic understanding of using this tool.

Conclusion

Grafana is a robust web-based application designed specially to visualize time-series data. It includes an online dashboard where you can see different options to view your Raspberry Pi board’s performance. It can easily be installed on Raspberry Pi using the source key and repository that needs to be added to the system packages list. Afterwards, you can access its dashboard on your browser’s tab through the device IP address.

About the author

<img data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2022/06/echo/unnamesadadsasdd-150×150.jpg629985797cbd7.jpg" height="112" src="data:image/svg xml,” width=”112″>

Awais Khan

I’m an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.