How to Install Grafana on Ubuntu 20.04

Install Grafana on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Grafana on Ubuntu 20.04 LTS. 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 a feature-rich metrics dashboard and graph editor monitoring that integrates with complex data from sources like Prometheus, ElasticSearch. Grafana lets you create alerts, notifications, and ad-hoc filters for your data while also making collaboration with your teammates easier through built-in sharing features.

Install Grafana on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

Step 2. Install Grafana on Ubuntu system.

Installation of Grafana is actually quite easy. First, dd Grafana gpg key which allows you to install signed packages:

Next, add the Grafana repository to your APT sources:

Once the repository is added, proceed to update your Apt repositories and install Grafana:

When the installation completes, start and enable Grafana with the commands:

Step 3. Configure Firewall.

You’ll need to allow access to port 3000 on the firewall. Ubuntu comes with ufw firewall:

Step 4. Accessing Grafana Web Interface.

Once installation complete, point a web browser to http://SERVER_IP:3000 (where SERVER_IP is the IP address of the hosting Grafana server) or http://Your-Domain:3000. You’ll be prompted for the default login credentials, which are: admin/admin.

That’s all you need to do to install Grafana on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.