Setup Grafana in your local environment on AWS EC2 (01) : Day 56
Table of contents
step 1 : Go to the AWS console, and create an EC2 instance named “Grafana”.
step 2 : Now, allow the inbound port 3000 from the “Security Group”.
step 3 : Now, login into the machine.
step 4 : Now, Run the below commands to Install Grafana on Ubuntu.
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
step 5 : For the Stable release :
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
step 6 : run update command:
sudo apt-get update
step 7 : install Grafana :
sudo apt-get install grafana
step 8 : Start Grafana-server:
sudo /bin/systemctl start grafana-server
step 9 : The installation of the Grafana repo is finished and ready to use.
step 10 : Now, check the status.
sudo systemctl status grafana-server
step 11 : Now, check public_IP_of_EC2:3000 on new tab, that takes you to the Grafana dashboard.
step 12 : Enter your username & password as - admin, and later set your new password.
This will take you to the Grafana Dashboard.
I hope you find the blog post helpful! If you do, don't forget to like 👍, comment 💬, and share 📢 it with your friends and colleagues.