Questions tagged [amazon-cloudwatch]

Amazon CloudWatch provides monitoring for AWS cloud resources and the applications customers run on AWS. Use this tag when asking about CW features such as metrics or alarms. Use amazon-cloudwatchlogs instead when asking about log groups, log streams, and metric filters.

From the web site:

Developers and system administrators can use it to collect and track metrics, gain insight, and react immediately to keep their applications and businesses running smoothly. Amazon CloudWatch monitors AWS resources such as Amazon EC2 and Amazon RDS DB instances, and can also monitor custom metrics generated by a customer’s applications and services.

Usage Guidance

  • Use this tag when asking about CW metrics or CW alarms, the CW API, etc.
  • Do not use this tag when asking only about log groups, log streams, metric filters, etc; use instead.
  • Use both if asking about both (for example, if asking about a CW Logs metric filter that aggregates in a CW custom metric that triggers a CW alarm)

Resources

4155 questions
1
vote
1 answer

How to read attributes from {} object. NodeJS

So I have this backend NodeJS Lambda, I send data to it from Angular. From the NodeJS Lambda I run this code: const claims = event.requestContext.authorizer.claims; username = claims['cognito:username']; console.log(username); …
davyioner
  • 111
  • 1
  • 9
1
vote
4 answers

Log4j2 + AWS JAVA LAMBDA + CLOUD WATCH LOGS

I am using the following configurations in my code but cloudwatch logs are not getting generated. Log4j2.xml is present in main/resources. I am following the AWS documentation and some stack overflow but I am not getting the logs it says…
satyam pandey
  • 43
  • 1
  • 7
1
vote
1 answer

How do I connect AWS ECS to ElasticSearch with Fluentbit?

I want to connect my AWS ECS with Elasticsearch. I have written a Pulumi script where I > shuold use the fluentbit docker component as a sidecar to my frontend and backend application components frontend and backend. The Pulumi script looks like…
stein korsveien
  • 1,047
  • 5
  • 13
  • 35
1
vote
1 answer

AWS Lambda - Source of Errors?

AWS Lambda provides a CloudWatch/All Metrics/ Dashboard called "Error count and success rate (%)". The link to this Dashboard is available from AWS Lambda/Dashboard/Error count and success rate (%)/View in metrics. Tip click the hamburger in the…
1
vote
2 answers

AWS EKS logging to CloudWatch - how to send logs only, without metrics?

I would like to forward the logs of select services running on my EKS cluster to CloudWatch for cluster-independent storage and better observability. Following the quickstart outlined at…
Toms Mikoss
  • 9,097
  • 10
  • 29
  • 41
1
vote
1 answer

Datadog metric Rollup behavior

I send metrics from CloudWatch to Datadog via Kinesis Firehose. And when I send multiple values of the same metric at the same second, Datadog always preforms average. Even when I use a rollup-sum function. Example I send three values for the same…
Daniel
  • 21
  • 3
1
vote
1 answer

How do I use Lambda to get EC2 information via CloudWatch?

The following flow is executing Lambda. monitor log files in EC2 with cloudwatch logs Detects monitored strings with a metrics filter Execute Lambda with alarm I would like to know how to get the following information within Lambda. Path of the…
1
vote
2 answers

How to get forecasted AWS alerts/outages in email?

2 weeks back, I saw a notification in AWS saying, the one of the 3 AWS EC2 instance will be stopped because of the underlying hardware cause. I almost missed the dead line as I didn't the notification via email. Is there a way get these notification…
that guy
  • 193
  • 2
  • 8
1
vote
3 answers

How to exclude "container name | " from Dockers log entries?

My problem: Docker is pre-pending my_container_name | to every log entry. (You can see how the logs look further down, where the entries I'm interested in are the ones including JSON.) I've been researching configurations for both the unified…
skplunkerin
  • 2,123
  • 5
  • 28
  • 40
1
vote
0 answers

Cloudwatch Alarm notification to Microsoft Teams

I am trying to create a custom lambda function to filter the message that comes from Cloudwatch alarm and pass it to Microsoft Teams. I created a webhook in teams and also created the sns notification and subscribed to lamnda function. I am working…
1
vote
0 answers

How can i include all the widgets for a particular resource (eg:ec2, ebs) in the dashboard at AWS cloudwatch using terraform

I created terraform file to create dashboard in AWS cloudwatch. here is my sample file to create dashboard // provider module provider "aws"{ access_key = var.access_key secret_key = var.secret_key region =…
1
vote
1 answer

AWS Glue jobs status Dashboard

In our project total 10 Glue jobs are running daily. I would like to build a dashboard to show last 7 days jobs status it means either succeeded or failure. Tried to achieve it in CloudWatch with metrics, but not able do it. Please give an idea to…
Billa
  • 59
  • 5
1
vote
0 answers

How To Send Vault logs to CloudWatch

When running Hashicorp Vault on EC2, I'm able to install the CloudWatch agent and ship logs to over CloudWatch in order to create alerts and notifications on specific events. However, when running Vault via a helm chart in Kubernetes, I'm not sure…
Metro
  • 873
  • 8
  • 19
1
vote
0 answers

Is there a way to separate AWS Batch with Fargate logs when running different jobs?

I would like to find the success and fail rate of the tasks that run on my Batch with Fargate compute environment, but can't seem to find a way to do that. I see documentation around sending batch logs to a single custom log…
1
vote
1 answer

AWS Cloudwatch for ELB monitoring exclude a route

WE have AWS Cloudwatch alarm set to ELB-5XX. One of our API keeps causing it shoot beyond its limit. We have a marketing event coming up and we probably won't be able to fix the root cause of it beforehand. I want to exclude this route from ELB-5XX…
DrEarnest
  • 853
  • 2
  • 13
  • 27