Skip to content

Datadog monitoring of ECS Clusters

0

I am coming up with a new dashboard in our datadog account to monitor our ecs clusters.

There are two sides that we want to have visibility into

  • the ec2 machines (infrastructure)
  • the ecs tasks (application)

I'm struggling with getting everything set up and I can't tell where is the best place to ask for support.

Monitoring the infrastructure

I would like to monitor the following things, am I looking at the correct metrics:

(1) Number of ec2 instances per ecs cluster - ecs.containerinsights.container_instance_count

(2) % of CPU reserved / allocated to the tasks running on the ec2 machine - aws.ecs.cluster.cpureservation

(2) % of CPU actually being used on the ec2 machine - aws.ecs.cluster.cpuutilization

(3) % of memory reserved / allocated to the tasks running on the ec2 machine - aws.ecs.cluster.memoryreservation

(4) % of memory actually being used on the ec2 machine - aws.ecs.cluster.memoryutilization

(5) % of disk used for the ebs volumes -

aws.ecs.cluster.cpureservation

asked a year ago832 views
1 Answer
0

Hello,

Simple way to set up Datadog monitoring for your ECS clusters.

For The EC2 Instances

Number of EC2 Instances

  • Metric: aws.ecs.cluster.container_instance_count.

CPU and Memory Utilization

  • Metrics: aws.ec2.cpuutilization and aws.ec2.memoryutilization.

Disk Usage

  • Metric: Use aws.ec2.diskutilization or set up custom metrics if needed.

For The ECS Tasks

Task CPU and Memory Utilization

  • Metrics: aws.ecs.task.cpuutilization and aws.ecs.task.memoryutilization.

Steps to Implement

Integrate Datadog with AWS CloudWatch

  • Follow Datadog’s integration guide to connect with CloudWatch.

Create Dashboards

  • Use Datadog to create dashboards displaying the metrics mentioned above.

Set Up Alerts

  • Configure alerts in Datadog for high CPU, memory usage, or disk space issues.

https://www.datadoghq.com/blog/monitoring-ecs-with-datadog/

https://docs.datadoghq.com/containers/amazon_ecs/?tab=awscli

https://docs.datadoghq.com/integrations/amazon_ecs/

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.