Questions tagged [cloudwatch-alarms]

192 questions
0
votes
1 answer

CloudWatch Alarm created via Cloudformation Value of property OKActions must be of type List of String

my alarm set in cloudformation: ClientErrorAlarm: Type: AWS::CloudWatch::Alarm Properties: ...... OKActions: - !Ref SNSSquadCast ...... returns error: Value of property OKActions must be of type List of String so does OKActions: -…
0
votes
1 answer

How to set up Fargate Service Auto Scaling with Step Scaling Policy in Pulumi?

I'm trying to autoscale Fargate Service in AWS ECS based on CloudWatch Alarm (Namespace - AWS/SQS, Metric name - ApproximateNumberOfMessagesVisible). I managed to do that in the AWS Console but not via code (in Pulumi). My suggestion for code is…
SAndriy
  • 670
  • 2
  • 15
  • 25
0
votes
2 answers

Why is my AWS CloudWatch alarm not being triggered?

I'm trying to setup AWS to send notifications to a slack channel when a CloudWatch alarm goes off. I'm following along in this guide: https://medium.com/analytics-vidhya/generate-slack-notifications-for-aws-cloudwatch-alarms-e46b68540133 I think I…
gib65
  • 1,709
  • 3
  • 24
  • 58
0
votes
1 answer

AWS Cloudwatch alarm not working: For last few days, alarm stays "OK" even when it passes threshold

I have an alarm that for months has worked properly to manage the size of my ASG. Since Monday (Oct. 12), though, it has stopped working; it stays in "OK" state even when the graphs clearly show that it is above the threshold. See the attached…
0
votes
1 answer

Create Metric Math alarm using single metric in cloudwatch

I am trying to create alarm in cloudwatch. I have a metric where I emit 1.0 for success and 0.0 for failure. The SUM statistic is supposed to me give all the successful request while SAMPLE COUNT should give all the requests(including failed one). I…
0
votes
0 answers

Cloudwatch alarm on lambda duration not getting triggered

Cloudwatch alarm on lambda is not getting triggered even when lambda latency is breaching the threshold. In last week lambda latency went upto 15 minutes several times. Below are the alarm details. Alarm view EventTransformerLambdaLatencyAlarm: …
0
votes
1 answer

Cloudwatch alarm for a time range

I want to create an alarm for a particular time window. So, the use case is if we see customer/traffic drop from 6:00 AM to 10 PM then we should get an alarm to know why customers are not using our service and to take some action. is this scenario…
0
votes
1 answer

How do I customize message in SNS topic notification triggered on cloudwatch rules?

I have a cloudwatch alarm for my s3 bucket, if there are no changes to the bucket in a day, the alarm is triggered and an SNS topic is sent. I have set a cloudwatch event rule to schedule the target SNS topic daily if it meets the…
0
votes
1 answer

set a alarm to lambda function based on execution time

Is it possible to set an alarm when lambda functions take more than a specific time? ex:- I want to set alarm if my lambda function takes more than 10 seconds to execute
0
votes
0 answers

specify long name space and dynamic parameters

i want to create new alarms on my resource metrics. the problem is that the metric name is the same but under a different sub name space. i know how to specify the general Namespace like: AWS/ECS or something like that. but in my case the metrics…
Dev93
  • 93
  • 2
  • 13
0
votes
1 answer

Time dependent cloudwatch monitoring is possible?

I want to monitor my EC2 instance state (running or stop) and set alarm in case, EC2 stop. My EC2 will run only from 9AM to 6PM. Can i accomplish above through cloudwatch and how ?
0
votes
1 answer

Use Lambda function to read a certain Cloudwatch alarm status and its metrics with Python

I'm completely new with boto. I created a Cloudwatch alarm for a certain Kinesis metrics. Now I want to write a Lambda function which can read the alarm status and the corresponding metrics value in every 5 minutes. Does anyone have experiences with…
0
votes
1 answer

DynamoDB - Read/Write Capacity Alarms using Terraform

Im trying to create a cloudwatch alarm for dynamodb read capacity units This is my code, I have given threshold as "4", but in the console the threshold value is "0.07" resource "aws_cloudwatch_metric_alarm" "consumed_read_units" { alarm_name …
0
votes
1 answer

remove a custom metrics from aws cloudwatch

i've created successfully a custom metric by SDK but i'm not able to remove it I can't find the option from the web console to remove it (from SDK as well, i cant find a method to remove/cancel it) //the code is not important, i've pasted it just to…
0
votes
0 answers

Cloudwatch Alarm doesn't leave alarm state and doesn't retrigger

I created a custom metric with the unit count. The requirement is to check every 24h if the sum of the metric count is >= 1. If so a message should be sent to sns topic which triggers a lambda which sends a message to slack channel. Metric…
1 2 3
12
13