Install Grafana on a Raspberry Pi

As IT professionals, we always look for powerful and cost-effective tools to help us monitor and visualize data. Enter Grafana, an open-source platform that allows us to create interactive and customizable dashboards to display real-time metrics and analytics. And what’s even better? We can run Grafana on a Raspberry Pi, a small but mighty single-board computer perfect for running various applications.

In this article, we’ll dive into the world of Grafana and show you how to install it on a Raspberry Pi. We’ll provide you with step-by-step instructions and some valuable tips and tricks we’ve learned through our experience in the field. Whether you’re a seasoned IT pro or just getting started, this guide will equip you with the knowledge you need to get the most out of Grafana on your Raspberry Pi. So, let’s get started!

Yes, Grafana can run on a Raspberry Pi. I use a Pi V4 with 8GB RAM; even though these specs are overkill for Grafana, I have plenty of other tools running on my Pi. The Pi is running Raspbian OS.

How to Install Grafana?

Follow these quick steps:

sudo mkdir -p /etc/apt/keyrings/
sudo wget -q -O - | gpg --dearmor > /etc/apt/keyrings/grafana.gpg
sudo echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] stable main" | tee /etc/apt/sources.list.d/grafana.list

Note: If you experience any issues with the Grafana keys, check out their official documentation.

sudo apt update -y
sudo apt-get install -y grafana
sudo /bin/systemctl enable grafana-server
sudo /bin/systemctl start grafana-server

Need a Grafana SSL Certificate? – Learn how to create and install one now.

You should see output like this:

richard@raspberrypi:~ $ sudo su -
root@raspberrypi:~# mkdir -p /etc/apt/keyrings/
wget -q -O - | gpg --dearmor > /etc/apt/keyrings/grafana.gpg
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] stable main" | tee /etc/apt/sources.list.d/grafana.list
deb [signed-by=/etc/apt/keyrings/grafana.gpg] stable main
root@raspberrypi:~# sudo apt update -y
sudo apt-get install -y grafana
sudo /bin/systemctl enable grafana-server
sudo /bin/systemctl start grafana-server
Hit:1 bookworm InRelease
Hit:2 bookworm-security InRelease 
Hit:3 bookworm-updates InRelease           
Hit:4 bookworm InRelease          
Get:5 stable InRelease [5,983 B]                
Get:6 stable/main arm64 Packages [147 kB]
Get:7 stable/main armhf Packages [114 kB]
Fetched 266 kB in 2s (137 kB/s)                      
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
The following NEW packages will be installed:
  grafana musl
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 101 MB of archives.
After this operation, 384 MB of additional disk space will be used.
Get:1 bookworm/main arm64 musl arm64 1.2.3-1 [392 kB]
Get:2 stable/main arm64 grafana arm64 10.2.3 [100 MB]
Fetched 101 MB in 22s (4,656 kB/s)                                                                  
Selecting previously unselected package musl:arm64.
(Reading database ... 125810 files and directories currently installed.)
Preparing to unpack .../musl_1.2.3-1_arm64.deb ...
Unpacking musl:arm64 (1.2.3-1) ...
Selecting previously unselected package grafana.
Preparing to unpack .../grafana_10.2.3_arm64.deb ...
Unpacking grafana (10.2.3) ...
Setting up musl:arm64 (1.2.3-1) ...
Setting up grafana (10.2.3) ...
Adding system user `grafana' (UID 112) ...
Adding new user `grafana' (UID 112) with group `grafana' ...
Not creating home directory `/usr/share/grafana'.
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
 sudo /bin/systemctl daemon-reload
 sudo /bin/systemctl enable grafana-server
### You can start grafana-server by executing
 sudo /bin/systemctl start grafana-server
Processing triggers for man-db (2.11.2-2) ...
Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable grafana-server
Created symlink /etc/systemd/system/  /lib/systemd/system/grafana-server.service.

Now browse to your IP address at port 3000 to view Grafana.

Note: The default login details are admin / admin

Quick Video Guide to Install Grafana on a Raspberry Pi

Check out this YouTube video I created that shows how simple this process is.

Elsewhere On TurboGeek:  Grafana SSL - How to configure HTTPS


Richard Bailey, a seasoned tech enthusiast, combines a passion for innovation with a knack for simplifying complex concepts. With over a decade in the industry, he's pioneered transformative solutions, blending creativity with technical prowess. An avid writer, Richard's articles resonate with readers, offering insightful perspectives that bridge the gap between technology and everyday life. His commitment to excellence and tireless pursuit of knowledge continues to inspire and shape the tech landscape.

You may also like...

2 Responses

  1. 15/02/2023

    […] How do I install Grafana on a Raspberry Pi? […]

  2. 07/03/2023

    […] Dedicated server hardware (e.g., a home theatre PC or a Raspberry Pi) […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »