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
8
votes
3 answers

How to submit the simple log with AWS CloudWatch Logs from frontend?

After about 1 hour of searching, I didn't find anything about 'how to submit a simple log to AWS CloudWatch Logs' from the frontend side. Almost all examples are for Node.js, but I need to submit the errors from the frontend, not form backend. I…
8
votes
1 answer

Understanding Evaluation Periods and Datapoints to Alarm

I kinda struggle understanding what happens in our AWS CloudWatch alarms setup. We're watching the number of available nodes in ElasticSearch. The goal is to raise an alarm when available nodes is less than three for more than 2 hours. Here's the…
Ikar Pohorský
  • 4,617
  • 6
  • 39
  • 56
8
votes
1 answer

Delete custom metric and custom namespaces from cloudwatch

Hi is there any way of getting custom metrics defined on cloudwatch log group be deleted along with its namespace. This is quite weird that we can create a custom metric/namespace using API/Console but cannot delete it either using API or Console…
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…
8
votes
2 answers

How to log raw JSON to Cloudwatch from AWS Lambda in node.js?

I have some node.js based Lambdas that are logging data. In order to properly query and filter the data etc, I want to log as pure JSON data from my Lambdas. However, when I do a regular console.log it makes an ordinary string of the…
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…
8
votes
0 answers

EC2 Instance - Sending STDOUT logs to Cloud Watch

Reading the 12factor app in the logging chapter, it suggests that the application logs should be sent to STDOUT. I found plenty of documentation on how to get the logs from STDOUT and send it to Cloud Watch when I'm running the application in a…
Thiago
  • 864
  • 1
  • 9
  • 16
8
votes
2 answers

No logs appear on Cloudwatch log group for elastic beanstalk environment

I have an elastic beanstalk environment, which is running a docker container that has a node js API. On the AWS Console, if I select my environment, then go to Configuration/Software I have the following: Log groups:…
8
votes
1 answer

How to check Memory and CPU usage of AWS Batch job

while creating a batch job, we can provide vCPUs and Memory in Container properties. In cloudwatch, we can check memory and CPU usage per cluster under Elastic Container Service per cluster. Is there any way to check memory and CPU usage per job?
Dev
  • 13,492
  • 19
  • 81
  • 174
8
votes
4 answers

Laravel 5.6 aws cloudwatch log

Upgraded laravel from 5.4 to 5.6. Laravel removed $app->configureMonologUsing since version 5.6 the tutorial from aws not applicable…
Alex Spring
  • 153
  • 1
  • 1
  • 6
8
votes
3 answers

AWS CloudWatch Rule returns FailedInvocation with AWS batch as Target

Hi I've scheduled a Cloudwatch rule in order to run every Wednesday at 14.15 GTM by having as target an AWS Batch, which always returns FailedInvocation. I'm seeing the FailedInvocation event from associated metrics However there are no logs…
8
votes
1 answer

CloudWatch alarm for invocation of Lambdas with scheduling periods > 1 day

I have a Lambda that is triggered to run every week, and I want to have a CloudWatch alarm if it ever does not run for more than 7 consecutive days. My thinking was Alarm if < 1 invocation for 8 days but it does not seem to be possible to set it…
alexroussos
  • 2,671
  • 1
  • 25
  • 38
8
votes
1 answer

AWS Cloudwatch Logback Appender for Spring Boot Applications

I'm trying to send Logs directly to Cloudwatch from my Spring Boot Application. The Logback Appender I'm using, of course needs AWS Credentials. Since most developers doesn't have AWS Credentials on their local machines and just want to log into a…
ndueck
  • 713
  • 1
  • 8
  • 27
8
votes
1 answer

Is it possible to create a Scheduled Rule from CloudWatch for a Lambda State Function Set

I want to use CloudFormation to create a stack of preexisting Lambda Functions into a State Machine using Step Functions on a schedule (30 mins). I have successfully created the stack for my other methods. In essence, I need help or guidance on how…
8
votes
1 answer

How to display a CloudWatch dashboard on wall screen

I've built a CloudWatch dashboard, and I'd like to display it on a wall-mounted screen. The problem I'm facing is access: I'm using an IAM user with limited privileges to connect to the dashboard, and the user gets disconnected after 12 hours.…