How to install and configure Grafana on Ubuntu 22.04

In this article, we will see How to install and configure Grafana on Ubuntu 22.04 step by step.

Grafana is an open-source data visualization and monitoring tool that integrates with complex data from sources like Prometheus, InfluxDB, Graphite, and 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 and configure Grafana on Ubuntu 22.04

1. To install required packages and download the Grafana repository signing key, we have to run the following commands:

sudo apt-get install -y apt-transport-https sudo apt-get install -y software-properties-common wget sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key

How to install and configure Grafana on Ubuntu 22.04

2. To add a repository for stable releases, we have to run the following command:

echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

3. Nest we have to update the list of repositories.

sudo apt-get update

4. Now install Grafana, using below command:

sudo apt-get install grafana

Configure Grafan on Ubuntu

1. Enable Grafana to start automatically whenever OS restats.

sudo systemctl enable grafana-server.service

2. Start and check the status of Grafana on Ubuntu using below command:

sudo systemctl daemon-reload sudo systemctl start grafana-server sudo systemctl status grafana-server

3. Login to grafana dashboard using the link . Then, provide username and password(both are admin and amdin).

For the same grafana installation on Ubunut Linux OS, please watch below video:

Leave a Reply

Your email address will not be published. Required fields are marked *