Questions tagged [amazon-cloudwatch-metrics]
172 questions
6
votes
2 answers
How do i calculate total number of lambda invocations in AWS for the last month using cloudwatch metric?
I want to calculate the total number of invocation for all the lambdas in my AWS account for the last month. As shown in the picture there is the time period at top right where I specify the from and to time. As I understand that is the time period…

mohantyArpit
- 373
- 4
- 9
6
votes
3 answers
AWS CloudWatch Logs metrics broken graph
We've configured a metric filter for a CloudWatch Log Group which collects data for one of our processes.
Initially, we had only one ec2 instance associated with the log stream of the log group. The retrieved data from the logs was showing up nicely…

len
- 426
- 3
- 11
6
votes
1 answer
Gaps in AWS CloudWatch Metrics graphs
I have a graph with a plotted line showing the count sum each hour, however this plotted line has some gaps. See this screengrab, near 07/29:
Does anyone know why? If it means zero, then why doesn't the line continue to the X-axis?

bjfletcher
- 11,168
- 4
- 52
- 67
5
votes
1 answer
Add instanceid dimension to cloudwatch metric-filter
I set up a very basic metric filter for a log-stream to count the number of lines matching a certain condition. My usecase is very similiar to the one described at the tutorial for counting apache HTTP status codes.
E.g. the log-events look like…

L. Monty
- 872
- 9
- 17
5
votes
0 answers
How to get last lambda execution time?
I need to know when a lambda was executed last time. I will notify if the lambda is now being executed for more than 10 minutes during work time period.
I've been reading a lot
(
featured…

Adrián Rodriguez
- 430
- 11
- 26
5
votes
2 answers
Terraform - Enable Request Metrics on S3 bucket
Is it possible to enable Request Metrics on an S3 bucket via Terraform, either using the aws_s3_bucket resource or other?

rossco
- 523
- 4
- 20
5
votes
1 answer
AWS CloudWatch Logs custom metrics not showing up in GUI
I'm adding custom filter metrics to different logs on CW Logs. Some of them were added just fine and can be added to graphs and alarms. Some other just disappear after adding no matter how often I try to add them. I understand that there is a delay…

Christoph
- 1,965
- 16
- 35
5
votes
1 answer
AWS Cloudwatch disk metrics showing values as zero
The Cloudwatch disk metrics values of EC2 instance that is causing problems, there are no data. I am using C4.xlarge instance and the root device type is EBS. In Cloudwatch following metrics are shown as zero,
Disk Reads(Bytes)
Disk Read…

RCR
- 51
- 1
- 3
4
votes
1 answer
AWS CloudWatch Agent Windows - hostname not showing as a dimension in Metrics
CloudWatch agent version: 1.3.411.60
The Objective: Get the localhost name of Windows EC2 instance to be a dimension (column) for each metric configured. So that you can filter by the instance's ComputerName
Per the AWS Docs for creating a…

Zachary Isom
- 63
- 5
4
votes
0 answers
How can i stop receiving irrelevant disk_usage metrics while using CloudWatchAgent?
Following is the config.json that I'm using
{
"agent": {
"metrics_collection_interval": 300,
"run_as_user": "root"
},
"metrics": {
"append_dimensions": {
"AutoScalingGroupName":…

visuman
- 140
- 2
- 12
4
votes
0 answers
Extract Billed Duration for Lambda using CloudWatch Metric Filters
I am trying to use the "REPORT" line of the Lambda CloudWatch logs to extract out the billed duration for monitoring.
I found this article, with the following metric filter.
Metric Filter:
[
report_label="REPORT",
request_id_label="RequestId:",…

Abhishek
- 432
- 5
- 19
4
votes
1 answer
Math Expression on AWS Cloudwatch metrics is not giving expected output
I have created two metrics (m1 and m2) on my logs which will give me sum of some filter pattern, I wanted to add math expression in metric to sum these two metrics so I have added SUM([m1,m2]) but it is not giving me actual sum, Please refer below…

Shawn
- 537
- 3
- 7
- 16
4
votes
1 answer
How to use multiple separate dimensions for custom cloudwatch metrics?
With this we can configure dimensions for our custom metric.
{
"metrics":{
"append_dimensions":{
"AutoScalingGroupName":"${!aws:AutoScalingGroupName}",
"ImageId":"${!aws:ImageId}",
…

DenCowboy
- 13,884
- 38
- 114
- 210
4
votes
1 answer
How to send Cloudwatch alarm to SNS based on Cloudwatch log metric filter using Terraform
I am testing a cloudwatch alarm filter (to be precise checking if lambda maxed out in memory) to send to SNS which then is sent to SQS queue. However, I do not see the filter appeared in logs.
The setup is cloudwatch (filtered alarm) -> SNS -> SQS…

Zafar
- 1,111
- 2
- 11
- 23
4
votes
1 answer
Cloudwatch insights query modification
Current query :
fields @message
| filter @message like /ABCD/
| stats count(@message)
result: @messages
1 55
now need to add more like a filter in this query like/BCDE/,/EFGH/,/IJKL/.....
the expected result should be like
@ABCD @BCDE…

Kiran Kumar
- 51
- 1
- 2
- 8