DevOps Day 73: Setup Grafana on AWS EC2 Instance

DevOps Day 73: Setup Grafana on AWS EC2 Instance

Day 73:#90DaysOfDevOpsChallenge

ยท

3 min read

Table of contents

Dear Learner's in the Previous lecture we discussed the various definition used in the Grafana. In today topic we will discuss the how to set up Grafana on EC2 instance.

Table of Contents:

Setup Grafana in your local environment on AWS EC2.

Go to the AWS console and Launch an EC2 instance.

Access Grafana

Task:

Setup Grafana in your local environment on AWS EC2

Go to the AWS console and launch an EC2 instance.

No alt text provided for this image

Go to the AWS console and launch an EC2 instance Diagram.

Open the Port No 3000 in your EC2 instance with the help of Security groups to allow the External access to Grafana.

No alt text provided for this image

Open the Port No 3000 in your EC2 instance with the help of Security groups to allow the External access to Grafana Diagram.

Once the instance is launched you can SSH into the Instance.

No alt text provided for this image

Once the instance is launched you can SSH into the Instance Diagram.

Then, follow the instruction provided by Grafana to install it on your systems;

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

No alt text provided for this image

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

Now add it to the Grafana Repository.

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

No alt text provided for this image

Now add it to the Grafana Repository Diagram.

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

sudo apt update

No alt text provided for this image

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

Install the Grafana Using Commands

sudo apt install grafana

No alt text provided for this image

Install the Grafana Using Commands Diagram.

Start Grafana. After Grafana is installed, you can start it by running the following command.

sudo systemctl start grafana-server

No alt text provided for this image

Start Grafana. After Grafana is installed, you can start it by running the following command Diagram.

You can also configure Grafana to start the automatically on boot by running:

sudo systemctl enable grafana-server

No alt text provided for this image

You can also configure Grafana to start the automatically on boot by running Diagram.

Check the status of Grafana by running the following commands:

sudo systemctl status grafana-server

No alt text provided for this image

Check the status of Grafana by running the following commands Diagram.

Access Grafana: Finally you can access the Grafana web interface by navigating to the IP Address or domain name of your EC2 instance in your web browser, followed by the default Grafana port (3000).

For Example: http://<Ec2-instance-IP-address>:3000

No alt text provided for this image

Access Grafana: Finally you can access the Grafana web interface by navigating to the IP Address or domain name of your EC2 instance in your web browser, followed by the default Grafana port (3000) Diagram.

You should now be able to log in to Grafana using the default credentials (admin/admin) and start creating your 1st Dashboards.

No alt text provided for this image

You should now be able to log in to Grafana using the default credentials (admin/admin) Diagram.

No alt text provided for this image

You should now be able to log in to Grafana using the default credentials (admin/admin) Diagram.

Thank you for reading!! Hope you find this helpful.

#day73challenge#90daysofdevops

Always open to suggestions..!!

~ Manoj Bhamidipati ๐Ÿ™‚

ย