Questions tagged [cloudwatch-alarms]

192 questions
2
votes
0 answers

Get preceding value in AWS CloudWatch

I'm trying to calculate the week over week change of a CloudWatch metric. For this, this is my calculation, (Previous datapoint - latest datapoint / previous datapoint) * 100. CloudWatch MathExpression: (DIFF(e1)/e1)*100 where e1 gives me the latest…
Mojo jojo
  • 59
  • 1
  • 8
2
votes
1 answer

AWS ECS Task Out of Memory - Cloudwatch Alarm

I have an ECS Service that uses multiple tasks in order to execute a daily job. The memory that every task uses varies depending on the data it process. I have set to 16GB Ram in all my tasks but some tasks stopped with the following error…
2
votes
0 answers

AWS CloudWatch State Change rule and schedule

I have a CloudWatch alarm for state change with the following code: { "source": [ "aws.ec2" ], "detail-type": [ "EC2 Instance State-change Notification" ], "detail": { "state": [ "shutting-down", "stopping" ] …
PedroMVM
  • 336
  • 1
  • 5
  • 13
2
votes
1 answer

metric filter is not assigned to metric alarm

I'm using terraform to set up aws cloudwatch log to send an email whenever there an error in the log. This is how the terraform file look like: resource "aws_cloudwatch_log_metric_filter" "error-importing-rfid-metric-filter" { name =…
2
votes
0 answers

Manually trigger CloudWatch Alarm on event

I have a scenario like this: I have a dead-letter-queue and when a message lands into it, a CloudWatch Alarm should trigger. I have tried to set up an alarm directly using the metrics provided for SQS and the closest that came was the…
2
votes
2 answers

Iterate through list of servers and create alerts for each server?

I have a list of servers as below for which I need to create cloudwatch alerts. I can't seem to find many examples of this. variable "vms" { type = list default = ["server1","server2","server3"] } I want to use for_each for my cloudwatch…
2
votes
1 answer

AWS alarm goes to Ok state unexpectedly

I have an alarm setup in AWS cloudwatch which generates a data point every hour. When its value is greater than or equal to 1, it goes to ALARM state. Following are the settings On 2nd Nov, it got into ALARM state and then back to OK state in 3…
Lokesh
  • 2,842
  • 7
  • 32
  • 47
2
votes
1 answer

Terraform: Using SEARCH expressions with CloudWatch Alarms

I've looked over this question which didn't help so much, so here it goes... I have a bunch of Lambda functions that I want to monitor and set off a CloudWatch alarm if something goes wrong. The Lambda functions are actually prefixed with…
2
votes
1 answer

How AWS EC2 Autoscaling Target Tracking policy scale in?

I have observed it takes 15 data points in 15 minutes to trigger an alarm and start scale in and I could not find an option to change or adjust this behavior. Can we change this behavior or we will have to define another scaling policy to scale…
2
votes
2 answers

AWS CloudFormation Is failing with error "Encountered unsupported property name"

I am trying to create an alarm based on anomaly detection model with below CloudFormation template and getting an error : Can someone help me with this. "Resources": { "CPUUtilizationAlarm": { "Type": "AWS::CloudWatch::Alarm", …
2
votes
1 answer

CloudWatch Reboot Alarm Action failed to execute

I'm trying to setup Reboot Action for an EC2 instance referring the following guideline. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html#AddingRebootActions The alarm works fine and sends an email to the given…
1
vote
1 answer

Logging RDS table inserts into AWS Cloudwatch

I have a requirement to extract data from a third party RDS Oracle table whenever it is updated or inserted. I thought of creating a trigger in the third party DB and calling a Lambda function to extract data when an insert happens. The third party…
1
vote
0 answers

AWS - How to monitor error codes in aws app

I have a nodejs app running in AWS ECS behind an ALB. I have a requirement where I have to listen http codes mostly 502, 503 and 504 returning from my app if and only if its occurring continuously for a certain period of time (Ex: 504 continuously…
user8479984
  • 451
  • 2
  • 9
  • 23
1
vote
0 answers

fargate cloudwatch cpu utilization percentile

I've created dashboard for a service deployed to Fargate using the following: Namespace AWS/ECS Metric name CPUUtilization Both Average and Max can be viewed but neither of these is that useful. Max is really high and Average is really low. When…
1
vote
0 answers

AWS - Send Custom Parameters from an Alarm

I have a number of AWS Alarms setup in CloudWatch. When one of these alarms is tripped, I currently send a notification to ServiceNow. I would like to send some custom parameters in this notification, something like: { "source":"machineName", …
1 2
3
12 13