Questions tagged [amazon-cloudwatch-metrics]

172 questions
4
votes
1 answer

How to define a CloudWatch Alarm on the sum of two metrics with CloudFormation?

I need to trigger an alarm when the sum of the same metric (ApproximateNumberOfMessagesVisible) on two different queues exceed the value of 100 In September '17, this answer stated that the only way to do it was with a Lambda function getting the…
4
votes
1 answer

Compute current timestamp in CW metric math

I have a use case to alert in case of SLA miss. My application emits metric on startTime (M1) & endTime (M2). If my job completes, I will be able to know SLA misses by doing metric math like (M2-M1) and having alerting on this. But if my job is…
4
votes
1 answer

Read only AWS CLI access to strictly CloudWatch billing metrics

I need to provide somebody with read only AWS CLI access to our CloudWatch billing metrics ONLY. I'm not sure how to do this since CloudWatch doesn't have any specific resources that one can control access to. This means there are no ARN's to…
4
votes
1 answer

How do I setup an alarm for CloudFront from CloudWatch in a CloudFormation yaml template?

I want to setup an alarm in case an error occurs on CloudFront from CloudWatch. In the console, I would directly create an alarm that would send me an email in case the TotalErrorRate is larger than 0. This is working fine. But now I want to setup…
4
votes
2 answers

Continuous alerts in Cloudwatch

I have an instance in AWS that from time to time it's CPU cross the threshold of 90%. I have created an alert for this, however I saw that I received one notification only and it was during the first 5 minutes while the CPU was at 100% for 2…
4
votes
2 answers

AWS CloudWatch unused custom metrics retention and pricing - 2018

It looks like custom metrics will be kept for 15 months, if I understand it correctly, since they get aggregated to higher resolution, according to https://aws.amazon.com/cloudwatch/faqs. Does it mean we have to pay for at least 15 months once we…
4
votes
1 answer

How to filter CloudWatch logs from Lambda with a JSON Metric Filter

Using the example straight from documentation, in a lambda function I put: console.log( { "eventType": "UpdateTrail", "sourceIPAddress": "111.111.111.111", "arrayKey": [ "value", …
Dana
  • 683
  • 1
  • 6
  • 21
4
votes
3 answers

Dynamically adding/removing EC2 instances of an AutoscalingGroup to AWS Dashboard Metric Widget

I am trying to create a dashboard and want a widget to display the CPUUtilization graphs of ALL EC2 instances within my autoscaling. Whenever a new instance gets added by autoscaling rules then the dashboard widget should include the graph of new…
3
votes
2 answers

Logging custom metrics using AWS Cloudwatch Agent and Python

We send up custom metrics to AWS using Python (see existing code below) and separately use the AWS CloudWatch Agent to send up metrics for our EC2 machine. However, we'd like to stop sending the custom metrics through a boto client and instead send…
3
votes
2 answers

How to create Cloudfront Console Alarm Terraform

Create a cloudwatch alarm: resource "aws_cloudwatch_metric_alarm" "cloudfront-500-errors" { alarm_name = "${var.ENVIRONMENT_NAME}-AWS-CloudFront-High-5xx-Error-Rate" comparison_operator = "GreaterThanThreshold" evaluation_periods =…
3
votes
1 answer

AWS Sagemaker custom training job container emit loss metric

I have created a customer docker container using an Amazon tensorflow container as a starting point: 763104351884.dkr.ecr.us-west-2.amazonaws.com/tensorflow-training:1.15.2-gpu-py36-cu100-ubuntu18.04 inside the container I run a custom keras (with…
3
votes
1 answer

AWS RDS Aurora Free Disk Space Metric

I just upgraded a database to use aurora and am trying to set up a cloudwatch alarm if the total aurora cluster free space drops below a certain level. According to the Aurora docs here:…
3
votes
1 answer

CloudWatch Unified Agent: Additional property append_dimensions is not allowed

I'm trying to add a custom dimension to my statsd metrics published to the cloudwatch unified agent. CW docs state that append_dimensions under the metrics section only supports InstanceId, InstanceType, AutoScalingGroupName and ignores…
Mark J Miller
  • 4,751
  • 5
  • 44
  • 74
3
votes
1 answer

Custom cloudwatch metrics EKS CloudWatch Agent

I have set up container insights as described in the Documentation Is there a way to remove some of the metrics sent over to CloudWatch ? Details : I have a small cluster ( 3 client facing namespaces, ~ 8 services per namespace ) with some custom…
3
votes
0 answers

How to Enable Cloudwatch JVM Monitoring

I am currently running docker swarm cluster spread amongst three ec2 instances. I am trying to enable jvm monitoring and following the instructions here: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/generating-sdk-metrics.html I have…
1 2
3
11 12