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.
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.
We can install docker and run an image to view the EC2 usage of CPU,Memory, network connections etc.
We can install docker and run an image to view the EC2 usage of CPU,Memory,network connections etc.
Setup Grafana Monitoring for EC2 instance.
1.Go to Google and search for “Grafana.com” Click on create a free account.
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.
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.
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.
Choose the OS and architecture. Create an API token and run it in the EC2 instance Diagram.
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.
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.
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.
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.
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.
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.
We can now see the filled details and can modify the field required Select the threshold for 1 USD Diagram.
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.
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.
We can review and create the alarm. We can view the final board for the alert Created Diagram.
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.
We can add the connection form cloudwatch to Grafana cloud Diagram.
8. Add the AWS resources to integrate with Grafana Cloud.
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.
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.
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.
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.
Select the Cloudwatch option and then create an alert Diagram.
Select the Cloudwatch option and then create an alert Diagram.
13. Modify the alert rule to create the AWS Billing alert.
Modify the alert rule to create the AWS Billing alert Diagram.
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 🙂