How To Install Grafana on Linux Mint 20

Install Grafana on Linux Mint 20

In this tutorial, we will show you how to install Grafana on Linux Mint 20. 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 and metric analytics on a Linux Mint 20 (Ulyana).

Install Grafana on Linux Mint 20 Ulyana

Step 1. Before running the tutorial below, 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 install apt-transport-https software-properties-common wget

Step 2. Installing Grafana on Debian 10.

  • Install from the official Grafana repository.

Now we add the Grafana GPG key and apt repository:

wget -qO- https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

Next, installation of Grafana by making use of the following command:

sudo apt update
sudo apt install grafana

Once done, now we enable and start the Grafana service:

sudo systemctl daemon-reload
sudo systemctl enable grafana-server
sudo systemctl start grafana-server
  • Install Grafana via Snap.

Run the following command to install Snap packages:

sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update
sudo apt install snapd

To install Grafana, simply use the following command:

sudo snap install grafana-ijohnson

Step 3. Configure Firewall.

Grafana’s default HTTP port is 3000, unblock TCP port 3000 in your firewall to allow access to the web interface. For the ufw firewall, use:

sudo ufw enable
sudo ufw allow ssh
sudo ufw allow 3000/tcp

Step 4. Accessing Grafana on Linux Mint.

Grafana will be available on HTTP port 3000 by default. Open your favorite browser and navigate to http://your-ip-address:3000 and complete the required steps to finish the installation. Log in with the default username “admin”, with password “admin”. Grafana prompts you to change the default password.

Congratulations! You have successfully installed Grafana. Thanks for using this tutorial for installing the latest version of the Grafana monitoring and metric analytics on the Linux Mint system. For additional help or useful information, we recommend you check the official Grafana website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!