In this article, we will have explained the necessary steps to install Grafana on Debian 11. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Grafana is an open-source data visualization and monitoring suite. It offers support for Graphite, Elasticsearch, Included, Prometheus, and many more databases. Grafana provides a lot of complex monitoring dashboards depending on the connected data sources.
Install Grafana on Debian 11
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo apt update sudo apt upgradesudoapt install software-properties-common wget
Step 2. Install Grafana on Debian Bullseye system.
First, you need to import the signing key and add the repository:
wget -q -O - https://packages.grafana.com/gpg.key | sudoapt-key add -echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
Then, update the repository and install Grafana using the following command:
sudoapt updatesudoapt installgrafana
To verify the installation and version run:
grafana-cli -v grafana-server -v
So, after the Grafana installation, we need to reload
systemd manager configuration, in order to start the Grafana service:
sudo systemctl daemon-reload sudo systemctl start grafana-server sudo systemctl enable grafana-server
Step 3. Configure Firewall.
If you have the UFW firewall installed on the server, open the ssh service port, Grafana port 3000, and then start the firewall using the following commands:
ufw allow ssh ufw allow 3000/tcp ufw enable
Step 4. Accessing Grafana Web Interface.
To open the Grafana Dashboard, you need to first open your favorite Browser and then use the default URL
http://your-IP-address:3000/. Log in to the Grafana Dashboard using default user ‘admin‘ and password ‘admin‘.
That’s all you need to do to install Grafana on Debian (Bullseye). I hope you find this quick tip helpful. For further reading Grafana open-source analytics & monitoring on Debian’s system, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.