Day73 ---> 90DaysOfDevOps Challenge @TWS

Day73 ---> 90DaysOfDevOps Challenge @TWS

ยท

2 min read

Setting Up Grafana on Local Environment ๐Ÿ”ฅ

Today, we will go through the process of setting up Grafana in our local environment on an Ubuntu EC2 instance. Grafana is a powerful open-source metric analytics and visualization suite that enables you to query, visualize, and gain insights from your metrics data. So let's dive in and get Grafana up and running!

Let's start with Installing Grafana on Linux

(Linux--->Ubuntu 22.04 LTS in this case)

Steps to install Grafana from the APT repository:

  1. To install the required packages and download the Grafana repository signing key, 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

image

image

image

  1. To add a repository for stable releases, 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

image

  1. To add a repository for beta releases, run the following command:
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

image

  1. Run the following command to update the list of available packages:
sudo apt-get update
  1. To install Grafana OSS, run the following command:
sudo apt-get install grafana

image

image

  1. Start Grafana Server and enable it.
sudo systemctl start grafana-server
sudo systemctl enable grafana-server

image

image

You should see a message indicating that Grafana is active and running.

Accessing Grafana Web Interface

  1. Open a web browser and enter the following URL:
http://public-ip:3000

image

Replace public-ip with the public IP address of your EC2 instance.

  1. You should now see the Grafana login page. Enter the default credentials:

    • Username: admin

    • Password: admin

image

  1. After logging in, Grafana will prompt you to change the password. Follow the instructions to set a new password.

image

  1. Congratulations! You have successfully set up Grafana on your Ubuntu EC2 instance. Now you can start exploring its features, creating dashboards, and visualizing your metrics data.

image

Happy monitoring with Grafana!

Day 73 task is complete!

90DaysOfDevOps Tasks๐Ÿ‘‡

github.com/Chaitannyaa/90DaysOfDevOps.git

Chaitannyaa Gaikwad | LinkedIn

ย