Monitor AWS ECS with Prometheus and CAdvisor

Lynn Lin
Lynn Lin
Aug 11 · 4 min read
Terraform architecture

1. Install cAdvisor

CAdvisor web UI

2. Add targets in Prometheus

# /etc/prometheus/prometheus.yml
- job_name: ecs
- region: ap-northeast-1
port: 8080 # referred to cAdvisor exposed port
AWS EC2 console
Prometheus targets

3. Configure Grafana

Grafana data source
Grafana dashboard



Lynn Lin

Written by

Lynn Lin

Backend Developer

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade