Grafana Cloud Day - 78

Vishal ShekokarVishal Shekokar
3 min read

Pre-requisites

  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.

0
Subscribe to my newsletter

Read articles from Vishal Shekokar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Vishal Shekokar
Vishal Shekokar

๐Ÿ‘‹ Hello, I'm Vishal, an aspiring Information Technology enthusiast currently embarking on a journey towards a Bachelor's degree in Engineering. My passion lies in exploring the dynamic realms of cloud computing and DevOps technologies, where I constantly strive to bridge the gap between innovation and practical implementation. ๐Ÿ’ก As a student of Information Technology, I'm on a mission to absorb knowledge, solve real-world problems, and contribute to the tech community. My academic pursuits fuel my curiosity, and my hands-on experience with cloud and DevOps tools empowers me to navigate the evolving landscape of modern technology. ๐Ÿš€ Join me as I share insights, discoveries, and challenges encountered on this exciting educational and professional adventure. Let's connect, collaborate, and grow together in the ever-expanding world of IT. ๐Ÿ”— Connect with me on social media and let's build a network that fosters learning, sharing, and innovation. Happy coding! ๐ŸŒŸ