Questions tagged [amazon-cloudwatch-metrics]

172 questions
0
votes
2 answers

AWS Cloudwatch only shows "1" in log monitoring?

After more complex examples didn't work with the same outcome, I'm following the basic tutorial from here: https://docs.amazonaws.cn/en_us/AmazonCloudWatch/latest/logs/CountingLogEventsExample.html I have set it up, and see the displayed…
0
votes
1 answer

Cloudwatch for Memory and Diskspace for multiple ec2 instances

I need to configure Memory and Diskspace alarms for multiple ec2 instances,i found one option "across all instances" but in there i did not find memory and Diskspace metrics.so do i need to create alarms for each instances separately? I tried…
0
votes
0 answers

How can I configure CloudWatch Agent using Packer?

I'm trying to configure CW Agent using packer. I was able to install the CW Agent using packer but however when tried to start the agent it fails to create the image I know the fact that temporary EC2 instance that packer create during the image…
0
votes
1 answer

Fetch AWS Cloudwatch metrics for all RDS instance using Wildcard

For some alerting and monitoring purpose, I am trying to fetch RDS cloudwatch metrics. There are around ~50 RDS instances and would like to fetch metrics for all of them in one API call(I am using boto3). This is my code : response =…
0
votes
0 answers

AWS ECS Autoscaling failing sometimes with terraform created alarm

I have defined a CloudWatch alarm for AWS ECS scale-in scale-out. Normally it works fine. but sometimes it fails with below error. 500 is the threshold for scale-out. Metric time is every 5 min. and scale-out datapoint is 1 of 2 (means one value…
0
votes
1 answer

Configuring CloudWatch alarm threshold and period in the console

In AWS CloudWatch, I have created a log metric filter to check a CloudWatch log group for a specific search term ("ERROR") and to consider an instance of this term to be a metric value of "1": I think this is correct: every time CloudWatch scans…
0
votes
1 answer

Cloud watch eks auto scale solution with java/node JDK and terraform

I am deploying my environment through terraform, I have a sqs against which I have set cloud watch alarms. My question is based on cloudwatch alarm can I set my eks to autoscale. My next question is that if there is a way to do it through nodes/java
0
votes
1 answer

Alert by AWS Athena

how is the best solution to create a alert with athena data? the loadbalance logs is saved in S3 and acessed with Athena. I want alert me based on a athena query. I thinking about populate Cloudwatch metrics with athena result, and create a alert in…
0
votes
2 answers

AWS CloudWatch Alarm not triggered for SQS Metrics "NumberOfMessagesReceived"

I am trying to trigger an alarm if message is sent to SQS. However, I see that the CloudWatch metrics indicates that there was a message but no alarm is triggered. The alarm is currently in INSUFFICIENT_DATA state as well. For testing, I am sending…
0
votes
1 answer

Application Memory Leak based on metrics

I have a zf2 php application which is executed in a bash script every minute. This is running inside an ec2 instance. here's my code while : do php public/index.php start-processor & wait sleep 60 done Metrics Reading Based on the…
0
votes
1 answer

AWS Lambda is writing wrong output in the CloudWatch metrics

I'm new to Devops and coding. I'm working on building a monitoring tool (grafana) with CloudWatch and Lambda. I have a code which is not working properly. It pings the server. If it is returning 200 it will push 0 in the metrics and when the site is…
0
votes
1 answer

AWS cloudwatch metrics

I would like to know more details and impact on aws cloud watch metrics- aws docs does have much details on metrics what is the difference between below metrics ? What is the impact on application or aws instance if below alerts triggers ? Http…
0
votes
1 answer

Aws get-metric-statistic datapoint is null

I have been using aws cli to get metrics statistic, but when I run this command, datapoint is null, my command is: aws cloudwatch get-metric-statistics --metric-name CPUUtilization --start-time 10:00:00 --end-time 10:05:00 --period 30 --namespace…
0
votes
1 answer

How create cloudwatch metric filter from unstructured log?

Consider log output: 2018-07-09 14:59:48,938 INFO [req-id:aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa] [sqs-m-id:aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa] [bucket:my-bucket] [s3Key:folder/myFile.pdf] com.mycompany.MyJavaClass - some message with…
0
votes
1 answer

Programmatically fire off alarm to CloudWatch when condition is met

I'm researching the AWS CloudWatch SDK for Java and I see there's a limit of 5,000 alarms per account per region for PutMetricAlarm: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html My situation is such that…