Day 73 - Setup Grafana on AWS EC2 Instance ????

Day 73 - Setup Grafana on AWS EC2 Instance ????

Task:

Set up 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

To enable external access to Grafana, open port 3000 in the security group for your EC2 instance.

No alt text provided for this image

You can SSH into the instance after it has been launched.

No alt text provided for this image

Then, download the GPG keys and add them to the trusted keys list after installing Grafana according to its installation instructions.

wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add        
No alt text provided for this image

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

We must then update the system after it has been introduced.

sudo apt update        
No alt text provided for this image

Install Grafana using the command

sudo apt install grafana        
No alt text provided for this image

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

You may also set up Grafana to launch automatically when the computer boots by executing

sudo systemctl enable grafana-server        

Check the status of grafana by running the following command:

sudo systemctl status grafana-server        
No alt text provided for this image

Access Grafana: Lastly, you may access the Grafana web interface by going to your EC2 instance's IP address or domain name in your web browser and then selecting the standard Grafana port (3000).

For example:?https://<EC2-instance-IP-address>:3000

No alt text provided for this image

With the default login information (admin/admin), you should now be able to access Grafana and begin building your first dashboards.

No alt text provided for this image

Thank you! ????

要查看或添加评论,请登录

Vinay Kumar的更多文章

  • DevOps Project - 4 ????

    DevOps Project - 4 ????

    Project Description The project aims to deploy a web application using Docker Swarm, a container orchestration tool…

    7 条评论
  • DevOps Project 3 ????

    DevOps Project 3 ????

    Project Description The project involves hosting a static website using an AWS S3 bucket. Amazon S3 is an object…

    3 条评论
  • DevOps Project -2 ????

    DevOps Project -2 ????

    Project Description The project is about automating the deployment process of a web application using Jenkins and its…

  • Day 80: DevOps Project 1 ????

    Day 80: DevOps Project 1 ????

    Project Description The project aims to automate the building, testing, and deployment process of a web application…

    2 条评论
  • Day 72 - Grafana ????

    Day 72 - Grafana ????

    What is Grafana? No matter where your metrics are kept, Grafana is an open-source data visualization and monitoring…

    4 条评论
  • Day71 - Terraform Interview Questions ????

    Day71 - Terraform Interview Questions ????

    1. What is Terraform and how it is different from other IaaC tools? HashiCorp's Terraform is an Infrastructure as Code…

  • Day 70 - Terraform Modules ????

    Day 70 - Terraform Modules ????

    Modules are containers for multiple resources that are used together. A module consists of a collection of .

    4 条评论
  • Day 69 - Meta-Arguments in Terraform ???

    Day 69 - Meta-Arguments in Terraform ???

    When you define a resource block in Terraform, by default, this specifies one resource that will be created. To manage…

    4 条评论
  • Day 65 - Terraform Resources ????

    Day 65 - Terraform Resources ????

    Understanding Terraform Resources A resource in Terraform represents a component of your infrastructure, such as a…

    2 条评论

社区洞察

其他会员也浏览了