Questions tagged [amazon-cloudwatch-metrics]

172 questions
37
votes
1 answer

CloudWatch does not aggregate across dimensions for your custom metrics

Reading the docs I saw this statement; CloudWatch does not aggregate across dimensions for your custom metrics That seems like a HUGE limitation right? It would make custom metrics all but useless in my estimation- so I want to confirm I'm…
red888
  • 27,709
  • 55
  • 204
  • 392
34
votes
5 answers

Count unique values in aws cloudwatch metric

I have a set of cloudwatch logs in json format that contain a username field. How can I write a cloudwatch metric query that counts the number of unique users per month?
29
votes
3 answers

AWS Cloudwatch Filter and Pattern Syntax

I'm following the instructions here https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html but it's not working as i'm expecting it to. I currently have the following cloudwatch log subscription filter pattern: ?…
22
votes
1 answer

AWS/ECS CPUUtilization average vs maximum

After reading AWS documentation I am still not clear about cloudwatch metrics statistics average and maximum, specifically for ECS CPUUtilization. I have a AWS ECS cluster fargate setup, a service with minimum count of 2 healthy task. I have enabled…
16
votes
1 answer

send notification alert when AWS Lambda function has an error

I have a AWS Lambda function running some process in my infrastructure. The Lambda is triggered every 8 hours using a CloudWatch rule. I am trying to raise a notification if any error happens into the Lambda process. I tried to use SES but that…
14
votes
5 answers

Lambda CloudWatch Metric results are empty

I want to monitor my lambda function. I am able to see CloudWatch logs from Logs menu but I want to see monitoring results from Lambda console. When I click on the monitoring tab all the graphs are empty and it says that "No data available". What…
Nil
  • 328
  • 2
  • 16
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
11
votes
4 answers

How to disable AWS Cloudwatch metrics

I'm new and am trying to work with AWS. I develop small lambda functions and have created some dynamodb tables. I don't expect there to be any costs, because I should be in the free-tier, but since last month I am seeing costs for "Cloud Watch…
Arun
  • 479
  • 1
  • 9
  • 22
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,…
9
votes
1 answer

AWS CloudWatch Log Metric Filter with JSON key has character space

When creating an AWS CloudWatch Log Metric Filter, how would you match terms in JSON Log Events where the key has a character space in the name? For example, let's assume there's a log line with JSON element like the…
Max
  • 458
  • 3
  • 10
9
votes
2 answers

What's the best strategy to monitor S3 bucket for missing a new file in the last x hours?

I have a use case where some process puts a file every 6 hours to an S3 bucket. This bucket has already thousands of files in it and I wanted to generate an sns alert or something if no new file is added in the last 7 hours. what would be a…
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
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
7
votes
1 answer

Extract numeric value from string in Cloudwatch to use in metrics (e.g. "64MB")

Is it possible to create a metric that extracts a numeric value from a string in Cloudwatch logs so I can graph / alarm it? For example, the log may be: 20190827 1234 class: File size: 64MB I realize I can capture the space delimited fields by using…
1
2 3
11 12