3

I want to create alerts in aws to notify when the service quota utilization has crossed the threshold value for service quotas for which the Utilization field is disabled

I am trying to create Infrastructure quota monitoring alerts in aws , but for few service quotas I am unable to create it .

For example, Internet gateways per Region from Amazon VPC has utilization field disabled, no create alarm option available under it along with usage graph , and there is no metrics for that under CloudWatch All metrics then All->Usage->By AWS Resource , which is needed to create usage alarms .(https://i.stack.imgur.com/5yjsZ.png)

What is the reason that some of the service quotas doesn't have the utilization details available? and how to create usage quota alarm for those?

Jatin Mehrotra
  • 9,286
  • 4
  • 28
  • 67

1 Answers1

0

I haven't tried this but as I can see In docs that service quotas is integrated with cloudtrail, so you can create a cloudwatch alarm on cloudtrail for that particular event quota logs.

Create a filter based on the logs you see on cloudtrail and for cloudwatch alarms threshold value should be service quota threshold value.When your metric filter crosses the threshold value, you will recieve an alert. Ofcourse you would need to find the cloudtrail logs for that service quota in order to create filter pattern.

See creating alarms for cloud trails

Jatin Mehrotra
  • 9,286
  • 4
  • 28
  • 67
  • 1
    according to cloudtrail it generates entries for `GetServiceQuota, RequestServiceQuotaIncrease and ListAWSDefaultServiceQuotas actions` , but I need a solution to track the usage of resources so that I can set alarm based on usage threshold . I created a lambda function to calculate the usage percentage and put that as a custom metric and then based on the custom metric I created the alarm . Anyway thanks for your answer @Jatin – Rudin Charles Nov 18 '22 at 12:36