Day 73 — Setting up Grafana
As we delve into the 73rd day of our 90-day journey, this installment focuses on the crucial process of setting up Grafana, a pivotal step towards harnessing the full potential of data visualization and monitoring. Whether you’re an IT professional, a data scientist, or an enthusiast eager to gain insights into your systems’ performance, this guide will serve as a valuable starting point for leveraging Grafana’s capabilities.
Setup Grafana in your local environment on AWS EC2.
1. Goto 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
You can now proceed with the installation:
sudo apt install grafana
6. Once Grafana is installed, use systemctl
to start the Grafana server:
sudo systemctl start grafana-server
Next, verify that Grafana is running by checking the service’s status:
sudo systemctl status grafana-server
Here, our grafana has been successfully installed.
Now, Let’s go the browser and search with,
“IPofEC2:3000”
Here, We can see the welcome screen of grafana
Use credentials as follows for initial login
Username: admin
Password: admin
Here, we can see the dashboard of grafana.