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! ๐๐จโ๐ป