Setting up Grafana

Day 73 - Grafana 🔥

Setting up Grafana

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.


Thank you for enjoying my DevOps blog! Your positive response fuels my passion to dive deeper into technology and innovation.

Stay tuned for more captivating DevOps articles, where we'll explore this dynamic field together. Follow me on Hashnode and connect on LinkedIn (https://www.linkedin.com/in/som-shanker-pandey/) for the latest updates and discussions.

Did you find this article valuable?

Support Som Pandey's blog by becoming a sponsor. Any amount is appreciated!

Â