Questions tagged [amazon-cloudwatch-metrics]

172 questions
3
votes
1 answer

Trigger an AWS Alarm when an API Gateway invocation hits its 29 second timeout and returns a 504 error

I am new in the cloud and I have the requirement to configure CloudWatch to invoke a Lambda in case of 504 error. For that, I have written below Serverless code: But on 504 error, the code in not invoking the Alarm. In the code, I have defined 29000…
3
votes
0 answers

CloudWatch PutMetricData value range

According to the documentation: Although the parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360…
Joe
  • 122,218
  • 32
  • 205
  • 338
3
votes
1 answer

AWS CloudWatch GetMetricsData: "Sum" misses points on periods without values

I am querying GetMetricsData from AWS CloudWatch: { StartTime: lastWeek , EndTime: today, MetricDataQueries: [ { Id:…
3
votes
1 answer

How to identify if an ec2 instance is part of Autoscaling group using .net aws sdk ?

DescribeInstance return both manually created EC2 instance and EC2 instance created by auto scaling launch configuration . how to identify particular instance is part of autoscaling group?
3
votes
1 answer

AWS CloudWatch Logs metrics for handled and unhandled exceptions

I have an interesting scenario with AWS CloudWatch Logs. I currently use log4net and pump all of the logs into CloudWatch Logs using CloudWatch Logs agent. I have a metric in CloudWatch which basically scans for [ERROR] entries and an Alarm passes…
2
votes
1 answer

Get current InstanceId in AWS Java SDK

I am using the AWS CloudWatch SDK to record metrics from a program running inside EC2 instance. I would like to report back the InstanceId as a dimension for these metrics. How do I find out the EC2 InstanceId from a Java program running inside the…
2
votes
1 answer

CloudWatch Metrics for Volume IOPS, Volume Throughput (MiB/s) and Network (Gbps)

I had to troubleshoot one application at AWS and was not easy to use all CloudWatch Metrics Graphs to interpret environment healthiness, so I decided to share my experience here. CloudWatch give us metrics for CPU, Memory*, Disk and Network. * to…
2
votes
0 answers

Cloudwatch Insights for Kubernetes Failed pods

I recently started monitoring our Kubernetes cluster using Cloudwatch monitoring agents. But I am unable to get the monitoring done for a couple of very important metrics. Number of Failed pods per deployment Number of Failed pods per…
2
votes
1 answer

CloudWatch agent CPU collected metrics not displayed

I have installed CloudWatch agent on an EC2 micro instance running Ubuntu 16, mainly following this very good tutorial: https://www.youtube.com/watch?v=vAnIhIwE5hY The tutorial shows the installation on a Windows instance but more than 90% of the…
2
votes
0 answers

How can I view the log of cloudwatch rule?

I create a rule in cloudwatch to trigger a lambda function when a glue job state is changed. The rule patterned is defined: { "detail-type": [ "Glue Job State Change" ], "source": [ "aws.glue" ] } In Show metrics for the rule view I…
2
votes
1 answer

How can I monitor the lambda invocation metrics in cloudwatch?

I have created a lambda function in AWS then add a trigger event from cloudwatch which trigger the lambda function every minute. But I couldn't see the lambda function is called every minute from Monitoring view of lambda after running it for a…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
2
votes
2 answers

How to add Cloudwatch Insights visualization to dashboard

I'm interested in using AWS Cloudwatch Insights to create a dashboard for my application. I have a lambda function that I have measured how many times it is invoked which I would like to graph and include on the dashboard. My data looks like this:…
2
votes
3 answers

setting the widget for cloudwatch dashboard. Getting the error "The dashboard body is invalid, there are 1 validation errors"

I am not able to ref servicename in the widget. Getting the following error with the given code: The dashboard body is invalid, there are 1 validation errors: [ { "dataPath": "/widgets/0/properties/metrics/0", "message": "Should NOT have more than…
2
votes
1 answer

CloudWatch dashboard - show only last metric datapoint

I have a lambda, that runs really rarely, calculates a value and publishes it as a metric. The last value is the only relevant one. I want to show this value on a CloudWatch dashboard with a number widget, but depending on what period I view (the…
Faboor
  • 1,365
  • 2
  • 10
  • 23
2
votes
1 answer

Why is ActiveConnectionCount doubled in Amazon CloudWatch metrics when using WebSockets?

If we run a WebSocket load test with a max of 10K open connections we always get double the ActiveConnectionCount, the included image is a screenshot of a CloudWatch metric of the Application Load Balancer of our wss://endpoint. If we run a HTTP…