Day 73 - Setup Grafana on AWS EC2 Instance

Day 73 - Setup Grafana on AWS EC2 Instance

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

Open port 3000 in your EC2 instance's security group to allow external access to Grafana.

No alt text provided for this image

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

No alt text provided for this image

Then, follow the instructions provided by Grafana to install it on your system;

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

?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

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

sudo apt update        
No alt text provided for this image

Install Grafana using 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 can also configure Grafana to start automatically on boot by running:

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

Check the status of grafana by running following command:

sudo systemctl status grafana-server        
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).

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


No alt text provided for this image

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

No alt text provided for this image


Thank you for reading!

Sunita Sonawane

AWS Community Builder | Cloud DevOps Engineer | CKA Certified | 4x AWS Certified | Terraform Certified | 9+ Yrs experience in IT | Python | Linux | Kubernetes | Docker | Jenkins | Ansible |Git

1 年

Keep Going Sayali Shewale. Great work.

回复

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

Sayali Shewale的更多文章

  • 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…

    7 条评论
  • DevOps Project-2

    DevOps Project-2

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

    2 条评论
  • 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…

    4 条评论
  • Day 72 - Grafana

    Day 72 - Grafana

    What is Grafana? Grafana is an open-source data visualization and monitoring tool that allows you to query, visualize…

    3 条评论
  • 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 .

    2 条评论
  • 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…

    1 条评论
  • Day 68 - Scaling with Terraform

    Day 68 - Scaling with Terraform

    Understanding Scaling Scaling is the process of adding or removing resources to match the changing demands of your…

  • Day 67: AWS S3 Bucket Creation and Management using terraform

    Day 67: AWS S3 Bucket Creation and Management using terraform

    AWS S3 Bucket Amazon S3 (Simple Storage Service) is an object storage service that offers industry-leading scalability,…

    1 条评论
  • Day 66 - Terraform Hands-on Project - Build Your Own AWS Infrastructure with Ease using Infrastructure as Code (IaC)

    Day 66 - Terraform Hands-on Project - Build Your Own AWS Infrastructure with Ease using Infrastructure as Code (IaC)

    Task: 1.Create a VPC (Virtual Private Cloud) with CIDR block 10.

    3 条评论
  • Day 65 - Working with Terraform Resources

    Day 65 - Working with Terraform Resources

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

    4 条评论

社区洞察

其他会员也浏览了