Questions tagged [cloudwatch-alarms]
192 questions
21
votes
7 answers
Configure SQS Dead letter Queue to raise a cloud watch alarm on receiving a message
I was working with Dead letter Queue in Amazon SQS. I want that whenever a new message is received by the queue it should raise a CloudWatch alarm. The problem is I configured an alarm on the metric: number_of_messages_sent of the queue but this…

Mayank Bajaj
- 319
- 1
- 2
- 6
13
votes
2 answers
AWS CloudWatch logs: How to send an email notification when particular error message is logged by lambda
I have to monitor CloudWatch logs for particular lambda. When the specific error message such as HTTP-50X is logged to CloudWatch, then we need to send an email notification to alert that the something is wrong.
We need help to create alert email in…

user79319
- 151
- 1
- 1
- 4
12
votes
2 answers
What's the difference between Alarm Budget and CloudWatch alarms Billing?
I want to understand what is the difference between using Budgets(cost budget) and Configure Billing Alerts in AWS?

ale la curiosa
- 133
- 1
- 5
10
votes
2 answers
Cloudwatch Alarm across all dimensions based on metric name for custom metrics
We are publishing custom Cloudwatch metrics from our service and want to set up alarms if the value for a metric name breaches a threshold for any dimension. Here are the metrics we are publishing:
Namespace=SameName, MetricName=Fault,…

user2684198
- 812
- 1
- 10
- 18
8
votes
2 answers
CloudWatch Alarm Percentage of errors API Gateway
I'm trying to setup and alarm in Cloudwatch using terraform.
My alarm basically needs to check if there is more than 5% of 5xx errors in the gateway during 2 periods of 1 minute.
I've tried the following code but it's not working:
resource…

Jaime S
- 1,488
- 1
- 16
- 31
8
votes
2 answers
How to generate an alert when a SQS message is sent to the dead letter queue?
Goal
Aiming to have a CloudWatch Alert triggered when a message from an SQS queue to a lambda function exceeds the maximum retries.
Problem
I presumed that this would be easy and the NumberOfMessagesReceived metric would reflect this. Those familiar…

Jay Cork
- 344
- 1
- 6
- 15
6
votes
1 answer
How 'Period' in Cloud Watch Alarm really works?
I'm building a cloud watch alarm to send an email when a lambda function is not called in a period of 5 minutes
CloudWatchAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
AlarmActions:
- !Ref SNSTopic
…

Thauany Moedano
- 551
- 2
- 8
- 21
6
votes
3 answers
How to get an alarm when there are no logs for a time period in AWS Cloudwatch?
I have a Java application that runs in AWS Elastic Container Service. Application polls a queue periodically. Sometimes there is no response from the queue and the application hanging forever.
I have enclosed the methods with try-catch blocks with…

Ashan Tharindu
- 75
- 1
- 5
6
votes
1 answer
Why AWS CloudWatch Alarm cannot send notification to encrypted SNS Topic?
I set up alerts to notify me if my lambda function memory usage is more than 80% of the lambda memory size. I'm capturing the data points using custom metrics and I am able to see the alerts in the cloudwatch console when the the memory usage is…

Nisman
- 1,271
- 2
- 26
- 56
5
votes
3 answers
Cloudwatch alarm creation fails due to heredoc
I am trying to create a composite cloudwatch alarm using terraform. But unfortunately my terraform code breaks with the following error:
Error: error creating CloudWatch Composite…

Hafiz Mujadid
- 1,565
- 1
- 15
- 27
5
votes
1 answer
S3 bucket not displaying Metrics
I created a S3 bucket and populated it by uploading few files in it. But I am not able to validate my use case to check the bucket size as the default metrics of total bucket size returns no data always.
Note: I am created the bucket in the AWS…

Vignesh T I
- 782
- 1
- 7
- 22
4
votes
1 answer
Add EC2 Action to Cloudwatch Alarm on health check
I have an AWS bitnami instance that I've created a Route 53 health check alarm when the website it becomes unavailable. The first action triggers successfully and sends me an email. However, I would also like for the instance to be rebooted,…

CorribView
- 711
- 1
- 19
- 44
3
votes
1 answer
How to create usage alarm using Cloudwatch for Service Quota when the Utilization is Not available in AWS
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…

Rudin Charles
- 31
- 2
3
votes
1 answer
CloudWatch doesn't reliably monitor single datapoint within 24 hours
I have a Lambda function which is scheduled to run once every 24 hours. I also have a CloudWatch alarm if the number of invocations drop below 1 every 24 hours.
The issue here is that the invocation metric doesn't always show up in time for when the…

Raghav Kukreja
- 165
- 2
- 6
3
votes
0 answers
Is it possible to set one AWS Cloudwatch Alarm for multiple Metrics on an API Gateway using AWS CDK?
Is it possible to set a single Cloudwatch Alarm for an API Gateway so that it should listen out for 4xx AND 5xx errors?
My goal is that the alarm should have a threshold of say 10 errors in 5 minutes, and it should be triggered by either of these…

Avramo
- 143
- 9