Grafana Cloud Day - 78


3 min read


  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.

Setup Grafana Monitoring for EC2 instance

  1. We have learnt how to set up the Grafana cloud on my last blog. Navigate to the home page and click to connect data.

  2. In the dashboard install the Linux server conection to connect the EC2 instance to Grafana Cloud.

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

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

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

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

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

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

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 he AWS CloudWatch and select Metric.

  3. Select the Billing and Total estimated charge of USD.

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

  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.

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

  7. We can add the connection from CloudWatch to Grafana Cloud.

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

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

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

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

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

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

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

Thanks for reading my article. Have a nice day.