mapbox / ecs-watchbot

Make robots do your work for you
ISC License
195 stars 30 forks source link

Dashboard: "WatchbotService: RunningCapacity, DesiredCapacity" chart is empty #351

Closed jseppi closed 3 years ago

jseppi commented 3 years ago

Potentially relevant details:

image

jseppi commented 3 years ago

In CloudWatch metrics, I can find the DesiredTaskCount and RunningTaskCount service from the ECS/ContainerInsights namespace. Perhaps the dashboard should use those metrics for this chart?

image

rclark commented 3 years ago

Yeah, this is a bug.

https://github.com/mapbox/ecs-watchbot/blob/f307ce694df75d851b2a83e8860b821db643b572/lib/dashboard.js#L141

https://github.com/mapbox/ecs-watchbot/blob/f307ce694df75d851b2a83e8860b821db643b572/lib/dashboard.js#L159

These rely on a custom Mapbox metric namespace that (a) never should have been in here in the first place and (b) no longer exists. Switching to the container insights metrics is the right move.