DevOps (Day-78): Monitoring with Grafana Cloud

DevOps (Day-78): Monitoring with Grafana Cloud

Day 78:#90DaysOfDevOpsChallenge

Dear DevOps Learner's in my previous article we will explain the Grafana Cloud Alerting. In today's lecture we will explain the Monitoring with Grafana Cloud.

Table of Contents:

Pre-requisties

Setup Grafana Monitoring for EC2 instance.

Setup Grafana alert for AWS Billing

Pre-requisities

1 Create an EC2 instance.

No alt text provided for this image

1 Create an EC2 instance.

2 We can install docker and run an image to view the EC2 usage of CPU, Memory, network connections etc.

No alt text provided for this image

We can install docker and run an image to view the EC2 usage of CPU,Memory, network connections etc.

No alt text provided for this image

We can install docker and run an image to view the EC2 usage of CPU,Memory,network connections etc.

No alt text provided for this image

No alt text provided for this image

Setup Grafana Monitoring for EC2 instance.

1.Go to Google and search for “Grafana.com” Click on create a free account.

No alt text provided for this image

Go to Google and search for “Grafana.com” Click on create a free account. Diagram.

2 In the dashboard install the Linux Server connection to connect the EC2 instance to Grafana Cloud.

No alt text provided for this image

In the dashboard install the Linux Server connection to connect the EC2 instance to Grafana Cloud Diagram.

3 Set up the connection settings. Run the Grafana agent.

No alt text provided for this image

Set up the connection settings. Run the Grafana agent. Diagram

4 Choose the OS and architecture. Create an API token and run it in the EC2 instance.

No alt text provided for this image

Choose the OS and architecture. Create an API token and run it in the EC2 instance Diagram.

No alt text provided for this image

Choose the OS and architecture. Create an API token and run it in the EC2 instance Diagram.

Finally proceed to install integration as shown in the above screenshot.

5 You can test agent configuration if it is collecting the data.

No alt text provided for this image

You can test agent configuration if it is collecting the data Diagram.

6 Navigate to the dashboard in the Grafana cloud home Page and add Amazon EC2 to view the complete monitoring of the AWS instance.

No alt text provided for this image

Navigate to the dashboard in the Grafana cloud home Page and add Amazon EC2 to view the complete monitoring of the AWS instance Diagram.

7 We can organize the dashboard now to see all the real-time statuses in the server.

No alt text provided for this image

We can organize the dashboard now to see all the real-time statuses in the server Diagram.

Setup Grafana Alert for AWS Billing

1. We will be using AWS CloudWatch, In this case to integrate it with Grafana Cloud to monitor the AWS Billing of the resources and set up the alert.

2. We can set up the billing alert in the AWS management console. Navigate to the AWS CloudWatch and select Metric.

No alt text provided for this image

We can set up the billing alert in the AWS management console. Navigate to the AWS CloudWatch and select Metric Diagram.

3. Select the Billing and Total Estimated chrge to USD.

No alt text provided for this image

Select the Billing and Total Estimated chrge to USD Diagram.

4. We can now see the filled details and can modify the field required Select the threshold for 1 USD.

No alt text provided for this image

We can now see the filled details and can modify the field required Select the threshold for 1 USD Diagram.

No alt text provided for this image

We can now see the filled details and can modify the field required Select the threshold for 1 USD diagram.

5. Choose the SNS making sure it is created already or we can create freshly to attach the email id to trigger the mail if the Billing exceeds the threshold.

No alt text provided for this image

Choose the SNS making sure it is created already or we can create freshly to attach the email id to trigger the mail if the Billing exceeds the thresh

6. We can review and create the alarm. We can view the final board for the alert Created.

No alt text provided for this image

We can review and create the alarm. We can view the final board for the alert Created Diagram.

No alt text provided for this image

We can review and create the alarm. We can view the final board for the alert Created Diagram.

7. We can add the connection form cloudwatch to Grafana cloud.

No alt text provided for this image

We can add the connection form cloudwatch to Grafana cloud Diagram.

8. Add the AWS resources to integrate with Grafana Cloud.

No alt text provided for this image

Add the AWS resources to integrate with Grafana Cloud Diagram.

9. Navigate the Grafana cloud dashboard and add the Billing/usage to view the billing alert that we set up above.

No alt text provided for this image

Navigate the Grafana cloud dashboard and add the Billing/usage to view the billing alert that we set up above Diagram.

10. We can now view the Billing dashboard on Grafana cloud.

No alt text provided for this image

We can now view the Billing dashboard on Grafana cloud Diagram.

11. We can set up the Alert rules by navigating to Alerts & IRM on the console. Click on the alert rules.

No alt text provided for this image

We can set up the Alert rules by navigating to Alerts & IRM on the console. Click on the alert rules Diagram.

12. Select the Cloudwatch option and then create an alert.

No alt text provided for this image

Select the Cloudwatch option and then create an alert Diagram.

No alt text provided for this image

Select the Cloudwatch option and then create an alert Diagram.

13. Modify the alert rule to create the AWS Billing alert.

No alt text provided for this image

Modify the alert rule to create the AWS Billing alert Diagram.

No alt text provided for this image

We can get the alert when the billing of AWS resources usage increases Diagram.

14. We can get the alert when the billing of AWS resources usage increases.

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

#day78challenge#90daysofdevops

Always open to suggestions..!!

~ Manoj Bhamidipati 🙂