Questions tagged [amazon-cloudwatch]

Amazon CloudWatch provides monitoring for AWS cloud resources and the applications customers run on AWS. Use this tag when asking about CW features such as metrics or alarms. Use amazon-cloudwatchlogs instead when asking about log groups, log streams, and metric filters.

From the web site:

Developers and system administrators can use it to collect and track metrics, gain insight, and react immediately to keep their applications and businesses running smoothly. Amazon CloudWatch monitors AWS resources such as Amazon EC2 and Amazon RDS DB instances, and can also monitor custom metrics generated by a customer’s applications and services.

Usage Guidance

  • Use this tag when asking about CW metrics or CW alarms, the CW API, etc.
  • Do not use this tag when asking only about log groups, log streams, metric filters, etc; use instead.
  • Use both if asking about both (for example, if asking about a CW Logs metric filter that aggregates in a CW custom metric that triggers a CW alarm)

Resources

4155 questions
15
votes
2 answers

The Lambda function returned an invalid request or response to CloudFront

I am attempting to follow the instructions here https://medium.com/@tom.cook/edge-lambda-cloudfront-custom-headers-3d134a2c18a2 I have CloudFront successfully sitting in front of a static S3 "hello world" HTML file, and I want to set additional…
lordbyron
  • 588
  • 1
  • 5
  • 11
15
votes
2 answers

How to look up an amazon resource using the Amazon Resource Name (ARN) as an identifier?

With respect to an Amazon Resource Name (ARN) the AWS documentation states that: Amazon Resource Names (ARNs) uniquely identify AWS resources. We require an ARN when you need to specify a resource unambiguously across all of AWS, such as in IAM…
BOWS
  • 404
  • 2
  • 4
  • 17
15
votes
2 answers

Scaling Down Auto Scaling Group in AWS causes perpetual alarm

I am currently using two scaling policies which are attached to my auto scaling group: A A scale up policy which is invoked when a CloudWatch alarm is invoked. This CloudWatch alarm uses the CPUUtilization metric and fires at CPU over 80%. The…
Nick S.
  • 2,203
  • 3
  • 19
  • 21
15
votes
3 answers

AWS-CloudWatch: InvalidSequenceTokenException

I have a php worker where i log events to AWS could watch. Unfortunately i got the following error when i try to submit it. InvalidSequenceTokenException Error executing "PutLogEvents" on "https://logs.eu-west-1.amazonaws.com"; AWS HTTP error:…
Moussawi7
  • 12,359
  • 5
  • 37
  • 50
15
votes
3 answers

Amazon CloudWatchLogs putLogEvents in PHP gives error tooOldLogEventEndIndex

I am trying to put Log on amazon CloudWatchLogs like this: $response2 = $amzonLoger->putLogEvents([ 'logGroupName' => 'myGroup', 'logStreamName' => 'myStream', 'logEvents' => [ [ …
14
votes
2 answers

AWS CloudWatch Insights query field with hyphen in name

Trying to run CloudWatch Insights query containing reqHeaders.x-forwarded-for, like fields @timestamp, status, err, method, url, req_id, reqHeaders.x-forwarded-for | filter status >= 400 | sort @timestamp desc | limit 10 but this field is always…
14
votes
4 answers

How to export CloudWatch Dashboard data to share with people with no AWS account.

I set up monitoring and alarms about active connections to the loadbalancer, CPU and Memory usage from all of my instances with CloudWatch. And my client (the owner of the product in the website) wants me to share all these numbers and possibly…
VaTo
  • 2,936
  • 7
  • 38
  • 77
14
votes
2 answers

Why did Cloudwatch stop logging Sagemaker?

I have a Sagemaker instance running for a while now. I didn't change anything in between, but now I can't see new logs on Cloudwatch anymore. The old logs are still there, but no new ones since 2 days. The Sagemaker instance is still running. It's…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
14
votes
4 answers

Cumulative sum of AWS Cloudwatch Metric

AWS Cloudwatch receives a count of 1 every time I start an image download. I am downloading 1,000s of images (on a cluster of EC2 instances) and would like to track the total progress. I can't find any documentation on how to plot the cumulative sum…
Alex Walczak
  • 1,276
  • 1
  • 12
  • 27
14
votes
1 answer

CloudWatch logs delayed for a lambda function

It seems that I have a delay with the CloudWatch log of one of my lambda function's. I have a lambda function that gets triggered by a Kinesis stream. The lambda function writes records into a DynamoDB table. I know for sure that the lambda…
kord
  • 979
  • 14
  • 24
14
votes
2 answers

How does multi-line logging work in Lambda -> CloudWatch

My multi-line logging events all end up multi-events - one event per line. According to the documentation: Each call to LambdaLogger.log() results in a CloudWatch Logs event... but then: However, note that AWS Lambda treats each line returned by…
14
votes
3 answers

Ansible Cloudwatch rule reports failed invocations

I have created an AWS lambda that works well when I test it and when I create a cron job manually through a cloudwatch rule. It reports metrics as invocations (not failed) and also logs with details about the execution. Then I decided to remove that…
Bastian
  • 5,625
  • 10
  • 44
  • 68
14
votes
1 answer

AWS Cloudwatch event - how to trigger for different timezones?

I've got a bunch of AWS Lambda functions that I want to trigger at certain times of day, but those times are in different timezones. For example, I might want events to trigger at: 4:55pm Sydney time 6:30pm Chicago time 9pm Chicago time ...and so…
monch1962
  • 5,151
  • 5
  • 31
  • 38
14
votes
4 answers

How to monitor free disk space at AWS EC2 with Cloud Watch in windows

I want to make alarm in case that there is 10% left in my disk space. I read some articles of how monitoring free disk space with Cloud Watch but I think it seems to be only for linux. Do you have any solution for monitoring free disk space for…
Misha Zaslavsky
  • 8,414
  • 11
  • 70
  • 116
14
votes
3 answers

Elastic Beanstalk Docker with Amazon CloudWatch

I have an Elastic Beanstalk application deployed with a Docker container. The application itself is a Java Application. My goal is to get the logs to Cloudwatch. In particular I would like to get the stdouterr.log file to Cloudwatch. The file can be…