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:
- 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
- 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
- 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
- Run the following command to update the list of available packages:
sudo apt-get update
- To install Grafana OSS, run the following command:
sudo apt-get install grafana
- Start Grafana Server and enable it.
sudo systemctl start grafana-server
sudo systemctl enable grafana-server
You should see a message indicating that Grafana is active and running.
Accessing Grafana Web Interface
- Open a web browser and enter the following URL:
http://public-ip:3000
Replace public-ip
with the public IP address of your EC2 instance.
You should now see the Grafana login page. Enter the default credentials:
Username: admin
Password: admin
- After logging in, Grafana will prompt you to change the password. Follow the instructions to set a new password.
- 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.
Happy monitoring with Grafana!
Day 73 task is complete!
90DaysOfDevOps Tasks๐
ย