Day 73 - Grafana π₯
1 min read
Task 1
Setting up the Grafana environment in AWS EC2.
Go to the AWS console, and create an EC2 instance.
SSH/ec2 instance connect to your EC2 machine & Download the GPG keys and add them to the trusted keys list.
sudo wget -q -O - https://packages.grafana.com/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/grafana-archive-keyring.gpg
After importing the key, you can add the Grafana APT repository to your system by creating a sources list file:
echo "deb [signed-by=/usr/share/keyrings/grafana-archive-keyring.gpg] https://packages.grafana.com/oss/deb stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
run
sudo apt-get update
then, run
sudo apt install grafana
sudo systemctl start grafana-server
connect to public ipv4 address at port 3000(make sure to allow access from anywhere 0.0.0.0/0 in the security group)
login : admin
password: admin
Congratulation!! it's Doneππ