How to Install Grafana 8 on Ubuntu 20.04

You can install Grafana 8 on your Ubuntu 20.04 system with no hassle whatsoever. Keep reading and learn the exact approach.

Grafana is an open-source and cross-platform analytics and visualization application to get systems stats. By installing Grafana on your Ubuntu 20.04, you can keep an eye on CPU, Hard Drive, Memory, and Input or Output Devices utilization. To view graphs and charts about your system components, you need to attach supported data sources.

There are some notable things in Grafana. When you install Grafana on your Ubuntu OS, you get a beautiful and eye-catching dashboard. In that dashboard, you can access and use everything easily. You can see different matrices in your dashboard about your personal computer specification.

Grafana Features You Should Know About

Another significant advantage of having Grafana in your Ubuntu is you get to enjoy a lot of various features. If you have switched to Grafana enterprise, you can have the upper hand over other users and can access all of Grafana’s features.

    • Teams & Permission: Grafana has a multi-tenant mode that allows organizations to handle their teams efficiently and manage folders, dashboards, and other permissions.

    • Plugins: Adding custom plugins is a great way to extend the resources and possibilities in Grafana. So you can integrate the plugins add-on in your installed Grafana to fulfill your needs.

    • SQL database resources: Grafana provides support for SQL databases in their application. So if you are using a SQL database in Grafana instead of PostgreSQL or any other database, you can have a lot of benefits.  

    • Alerts: Users using Grafana can also enjoy the alerting and alert hooks. Grafana notifies you by using SMS and emails as well. Which is an excellent way of communication between a user and software.

    • Authentication: We don’t like when other people can view or have access to our data. We hesitate to share or feel unsafe when someone suddenly has access to our personal data. Grafana knows this and provides users with the authentication feature. 

With Two-Factor Authentication enabled, you have to enter a code in order to access your dashboard. This is an excellent way to keep your data secure.

Pre Requisites: Minimum Requirements for Grafana

Before installing Grafana, you have to make sure that your system meets these two basic requirements:

Memory – 255MB

CPU – 1

If your system does not meet these necessary requirements, you should refrain from upgrading it to avoid complications.

Methods of Installing Grafana on Ubuntu 20.04

There are two ways we can install Grafana on our Ubuntu OS.

    • Using Ubuntu Terminal

    • Using Ubuntu Software Center

So let’s move forward in our guide and install Grafana on your Ubuntu 20.04.

Installing Grafana 8 on Ubuntu 20.04 using Terminal

To install Grafana 8 on your Ubuntu OS, open the Terminal and follow the following steps below.

Step 1: Add Apt Repository for Grafana

Add the gpg key for Grafana. This will allow you to add the signed package.

Now install the APT repository for Grafana.

Input:

$ sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
INSTALL GRAFANA 8

Press “Enter” to continue.

Step 2: Update your system

After adding the repositories for Grafana, you have to update your system by adding the sudo apt update command in the Terminal.

Input:

$ sudo apt update
system update

Step 3: Install Grafana on Ubuntu 20.04

Now you only have to install Grafana to your system by adding the following command.

Input:

$ sudo apt-get -y install grafana
install grafana 8

Step 4: Start Grafana Services

After the successful installation, start the Grafana services by entering the following command:

$ sudo systemctl enable --now grafana-server

The services should be running now but let’s confirm the Grafana services status.

Input:

$ systemctl status grafana-server.service

As you can see from the screenshot that the Grafana services are running after executing the command.

working with grafana

Step 5: Launch Grafana

For the final step, you only have to launch Grafana; however, you can proceed further by entering this web address http://localhost:3000/ in your browser.

The default username and password are both “admin”. You can change them once you’ve logged In.

Installing Grafana 8 on Ubuntu 20.04 using Software Center

If you do not want to install Grafana using a terminal, the Ubuntu Software Center is the perfect option for you. Here in the Ubuntu Software Center, you only need to do a few things and everything will be done automatically. Installing from the software center is a super easy task for Ubuntu users. 

In the software center, you can have access to other things you might feel interested in, like Grafana Loki (Log aggregation system) and more. Additionally, you can also use other versions of Grafana like Grafana 8 and Grafana 9.

So let’s move further and see how things get done using the Ubuntu Software Center. Follow the installation steps below.

First, you have to open the Ubuntu Software Center. A pop-up as seen below will appear on your screen.

Now you have to find the search icon on the top left corner. Click on it and enter “Grafana”.

Next, you have to click on the first one on the list. It will take you to the installation page. Click on the install button. It’ll be installed shortly.

Now open your web browser and enter http://localhost:3000/ to run Grafana on your Ubuntu 20.04

And that is how you install Grafana 8 on our Ubuntu 20.04. We’ve shown you two amazing ways to complete the installation process. Both of which are easy to digest and will definitely help you get things done seamlessly.

If this guide helped you, please share it.

Leave a Reply
Related Posts