Day 73 - Setup Grafana on AWS EC2 Instance

Day 73 - Setup Grafana on AWS EC2 
                                         Instance

Hope you are now clear with the basics of grafana, like why we use, where we use, what can we do with this and so on.

Now, let's do some practical stuff.

Setup Grafana in your local environment on AWS EC2.

1. Go to the AWS console, and create an EC2 instance named “grafana”.

2. Allow the inbound port 3000 from the “Security Group”.

3. Download the GPG keys and add them to the trusted keys list

wget -q -O - https://packages.grafana.com/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/grafana.gpg > /dev/null

4. Add the Grafana repository to your APT sources:

echo "deb [signed-by=/usr/share/keyrings/grafana.gpg] https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

5. Refresh your APT cache to update your package lists:

sudo apt update

6. You can now proceed with the installation:

sudo apt install grafana

7. Once Grafana is installed, use systemctl to start the Grafana server:

sudo systemctl start grafana-server

8. Next, verify that Grafana is running by checking the service’s status:

sudo systemctl status grafana-server

9. Now, goto the browser and search with “http:<public-ip-of-ec2>:3000”

10. Login using default login-id`and password`as admin` and admin` then you can change this default password as you wish.

Here, we can see the dashboard of Grafana.