Hey Learners! Welcome back. We understood the basic concept of Grafana. In this challenge, we'll learn how to set up Grafana on AWS EC2 instances. Let's start...
Task 1- Set up Grafana in your local environment on AWS EC2
Prerequisites:-
- AWS EC2 instance with SSH access
Steps:-
Log in to the AWS console
-
SSH in to EC2 instance
Download the GPG keys and add them to the trusted keys list. use
wget -q -O -
https://packages.grafana.com/gpg.key
| sudo apt-key add
command.Update the system and Add the Grafana Repository using the
sudo apt-add-repository "deb https://packages.grafana.com/oss/deb stable main"
command.Update the system using the
sudo apt update
command and install Grafana using thesudo apt install grafana
command.Allow port number 3000 in the EC2 instance's security group.
-
Now first restart the service using the
sudo /bin/systemctl start grafana-server
command. Check the status of the same service. -
Go to the browser and hit the public IP of the EC2 Instance with port 3000
Use admin as username and admin as password as well to log in
Great! We successfully installed Grafana on the EC2 instance.
Thank you so much for taking the time to read till the end! Hope you found this blog informative.
Feel free to explore more of my content, and don't hesitate to reach out if need any assistance from me or in case of you have any questions.
Find me on:- Hashnode LinkedIn Github
Happy Learning!