Day : 73 - Setup Grafana in Your Local Environment on Ubuntu EC2 Instance
Step 1: Launch an Ubuntu EC2 Instance Begin by launching an Ubuntu EC2 instance in your AWS account. Choose an instance type that suits your needs and ensure it has the Ubuntu operating system.

Step 2: Connect to the EC2 Instance Once the instance is running, connect to it using SSH. You can use a tool like PuTTY (Windows) or the terminal (macOS/Linux) to establish a secure connection.

Step 3: Install Grafana On the EC2 instance, update the package lists and install Grafana. Open the terminal and execute the following commands:
sudo apt update
sudo apt install -y apt-transport-https
sudo apt install -y software-properties-common wget
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
sudo apt update
sudo apt install -y grafana
sudo systemctl start grafana-server
sudo systemctl enable grafana-server

Step 4: Configure Security Groups To access Grafana's web interface, configure the security group associated with your EC2 instance. Add an inbound rule to allow incoming traffic on port 3000 (default Grafana port).
Step 5: Access Grafana Web Interface Once Grafana is installed and running, you can access the web interface by entering your EC2 instance's public IP address followed by port 3000 in your web browser. For example, http://<EC2_INSTANCE_PUBLIC_IP>:3000. Set up a username and password for the admin user when prompted.


That was all for today's task. If you have any queries/suggestions please write in comment. See you another day with another challenge.



