Day 73 : Grafana Setup

Grafana is a powerful open-source tool for data visualization and monitoring. Whether you're keeping an eye on infrastructure performance or analyzing business metrics, Grafana provides a dynamic and intuitive interface. Setting it up on AWS EC2 can be straightforward if you follow these steps. This guide will walk you through the process of setting up Grafana on an AWS EC2 instance, from initial configuration to accessing your Grafana dashboard.

Task:

Setup grafana in your local environment on AWS EC2.

Navigate to the AWS console, and create an EC2 instance named “grafana”

Now, allow the inbound port 3000 from the “Security Group”.

Now, take the ssh console and login into the machine.

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

wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add

Now, add it to the Grafana repository.

sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"

Once it has been added, we need to update the system.

sudo apt-get update

Now, we need to install the Grafana.

sudo apt install grafana

After installation, add Grafana to auto-start and start the Grafana daemon itself.

sudo systemctl enable grafana-server
sudo systemctl start grafana-server

The installation of the Grafana repo is finished and ready to use.

Now, check the status. As

sudo systemctl status grafana-server

Now, goto the browser and search with,

“<IP_of_EC2:3000>”

Use,

Username: admin

Password: admin

after default login you can change your Grafana password or skip password

You will be entered in the Garfana dashboard.

Conclusion

Setting up Grafana on an AWS EC2 instance provides a scalable and robust environment for all your monitoring and data visualization needs. This guide covered the essentials to get you started, from launching your EC2 instance to accessing and configuring Grafana. With Grafana up and running, you can now begin to explore its powerful features and integrate various data sources to create insightful dashboards.

I'm confident that this article will prove to be valuable, helping you discover new insights and learn something enriching .

thank you : )

0
Subscribe to my newsletter

Read articles from Prathmesh Vibhute directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Prathmesh Vibhute
Prathmesh Vibhute