๐Ÿš€ Grafana Setup ๐Ÿ“ˆ

๐Ÿš€ Grafana Setup ๐Ÿ“ˆ

Day 73 : #90DaysOfDevOps Challange

ยท

2 min read

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

Now, let's get our hands dirty and perform some practical tasks.

๐Ÿ“ˆSet up Grafana in your local environment on AWS EC2. Create an EC2 instance in the AWS management console. ๐Ÿ–ฅ๏ธ

๐Ÿ”’ Step 1: Install Dependencies Login to the server and install the following dependencies for Grafana.

sudo apt-get install -y apt-transport-https
sudo apt-get install -y software-properties-common wget

๐Ÿ”‘ Step 2: Download the Key Download the key required to set up Grafana on the server.

sudo wget -q -O /usr/share/keyrings/grafana.key https://packages.grafana.com/gpg.key

โš™๏ธ Step 3: Install Grafana Install the stable version of Grafana on the server.

Stable release

echo "deb [signed-by=/usr/share/keyrings/grafana.key] apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update
sudo apt-get install grafana

๐Ÿš€ Step 4: Start and Enable Grafana Start and enable the Grafana server using the following commands.

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

๐Ÿ” Step 5: Check Grafana Status You can check the current status of Grafana using the following command.

sudo systemctl status grafana-server

๐Ÿ”’ Step 6: Open Port 3000 Grafana by default runs on port 3000. Therefore, open port 3000 for the EC2 instance.

๐ŸŒ Step 7: Access Grafana Navigate through the public URL of the instance using the port number (e.g., http://<public_ip>:3000) to access the Grafana webpage.

๐Ÿ” Step 8: Login to Grafana Login to Grafana using the default ID and password, i.e., admin/admin. Then change the password upon the first login for security purposes.

๐ŸŽ‰ Step 9: Welcome to Grafana Finally, you have successfully entered the Grafana web application! ๐ŸŽ‰

Grafana provides a powerful platform for visualizing and analyzing your data. With its intuitive interface and rich set of features, you can create stunning dashboards, set up alerts, and gain valuable insights from your metrics and logs.

Stay tuned for more exciting DevOps adventures! ๐Ÿš€๐Ÿ‘จโ€๐Ÿ’ป

Did you find this article valuable?

Support Dhananjay Kulkarni by becoming a sponsor. Any amount is appreciated!

ย