In this tutorial, we will show you how to install Grafana on Debian 10. For those of you who didn’t know, Grafana is an open-source data visualization and monitoring suite. It offers help for Graphite, Elasticsearch, Included, Prometheus, and much more databases. The application offers a stunning dashboard and metric analytics, with the potential to manage and create your personal dashboard to possess apps or infrastructure performance monitoring.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you through the step-by-step installation of the Grafana monitoring system on a Debian 10 (Buster).
Prerequisites
- A server running one of the following operating systems: Debian 10 (Buster).
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Grafana on Debian 10 Buster
Step 1. Before we install any software, it’s important to make sure your system is up to date by running the following apt
commands in the terminal:
sudo apt update sudo apt upgrade
Step 2. Installing Grafana on Debian 10.
Now we add the Grafana gpg
a key that allows you to install signed packages:
sudo apt-get install -y gnupg2 curl software-properties-common curl https://packages.grafana.com/gpg.key | sudo apt-key add -
Next, we add the Grafana APT repository:
sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
Here, we will use the apt command to install the package:
sudo apt update sudo apt install grafana
After you successfully install Grafana on Ubuntu, you need to start the service. We will use systemctl
a command with the start keyword to start the Grafana service. Let’s have a look at the command below:
sudo systemctl start grafana-server sudo systemctl enable grafana-server
Step 3. Configure Firewall.
Grafana default HTTP port is 3000, you’ll need to allow access to this port on the firewall:
sudo ufw enable sudo ufw allow ssh sudo ufw allow 3000/tcp
Step 4. Accessing Grafana Web Interface on Debian.
Grafana will be available on HTTP port 3000 by default. Open your favorite browser and navigate to http://my-ip-address:3000
and complete the required steps to finish the installation. Enter your admin credentials (username and password) for Grafana, in this case, use “admin” in both cases, then press the login.
Congratulations! You have successfully installed Grafana. Thanks for using this tutorial for installing the Grafana monitoring system on Debian 10 Buster. For additional help or useful information, we recommend you check the official Grafana website.