Grafana ECS Service CloudWatch Dashboard
验证:未记录
- 适用版本
- 未记录
- 验证范围
- 尚未登记验证记录。
本文缩写(英文全称与中文含义)
| 缩写 |
英文全称/名称 |
中文含义 |
| ALB |
Application Load Balancer |
应用负载均衡器 |
| AWS |
Amazon Web Services |
亚马逊云服务 |
| ECS |
Elastic Container Service |
AWS 容器编排服务 |
| HTTP |
Hypertext Transfer Protocol |
超文本传输协议 |
Links#
1. Dashboard Rows#
ECS desired/running task、CPU、memory 说明资源与调度状态;HTTP 请求量、错误率、延迟须结合 ALB 或应用指标。
| Row |
CloudWatch Metrics |
Statistic |
Display |
| Overview |
RunningTaskCount, DesiredTaskCount |
Average |
stat / time series by service |
| Overview |
CPUUtilization |
Average |
time series by service |
| Overview |
MemoryUtilization |
Average |
time series by service |
| Overview, if HTTP behind ALB |
ALB RequestCount |
Sum |
request rate |
| Overview, if HTTP behind ALB |
ALB HTTPCode_Target_5XX_Count, HTTPCode_ELB_5XX_Count |
Sum |
target error and ALB-layer error |
| Overview, if HTTP behind ALB |
ALB TargetResponseTime |
p95 / p99 |
request latency |
| Drilldown |
PendingTaskCount |
Average |
time series by service |
| Drilldown |
PendingTaskCount from ECS/ContainerInsights |
Average |
deployment blocked / capacity shortage signal |
| Capacity |
DesiredTaskCount, RunningTaskCount |
Average |
trend |
| Debug |
service-level pending / running task count |
Average |
deployment troubleshooting |
| Debug |
PendingTaskCount with service events and logs |
Average |
deployment / scheduling / capacity issue investigation |
2. Notes#
ECS CloudWatch metrics 只能说明 service / task 资源状态。
ECS namespace:
CPUUtilization
MemoryUtilization
RunningTaskCount
DesiredTaskCount
PendingTaskCount
PendingTaskCount, from ECS/ContainerInsights
ALB metrics, if service is HTTP behind ALB:
RequestCount
HTTPCode_Target_5XX_Count
HTTPCode_ELB_5XX_Count
TargetResponseTime
App metrics, recommended:
http_requests_total
http_request_duration_seconds
error counter by route / status / exception
结论:
可以从 CloudWatch 看 request / error / latency,但通常不是 ECS namespace。
如果服务 behind ALB,就看 AWS/ApplicationELB。
如果要看真正应用级 request / error / latency,最好应用自己暴露 Prometheus metrics。