aws / aws/containers-roadmap

[ECS] [request]: Cloudwatch Metrics for ECS Deployments

Open
#592 0 comments 12 reactions 0 assignees View on GitHub
ECS Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
Provide metrics on deployments for an ECS service.

**Which service(s) is this request for?**
ECS, CloudWatch

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
I've searched the `ECS` and `ECS/ContainerInsights` namespaces and don't see any metric for ECS deployments. We have an ECS-hosted legacy application that unfortunately needs to be bounced now and again - simply forcing a 100/200 deployment of the same taskdef works great.

However, on our monitoring dashboards, the only way we get an indication that this has happened is seeing that the `DesiredTaskCount` has doubled briefly, then returned to normal. During load, or if the service is behaving in a degraded manner, I would love to be able to tell if such task count changes are due to service autoscaling/degradation, if someone modified the service task counts, or if a deployment happened.

It would be great to see a `ActiveDeploymentCount` metric. (A `DeploymentDuration` metric would be nice too, but that's less important).

**Are you currently working around this issue?**
Right now we just dig into the ECS events tab in the UI. We _could_ update the deployment scripts to push a custom metric during deployment, but it wouldn't help when someone forces an update via the console UI.

Contributor guide

Open the contributing guide

Research direction

No repository files or tests are named. Start by reviewing the ECS and ECS/ContainerInsights metric namespaces and the ECS events behavior described in the issue; done would mean ECS exposes an ActiveDeploymentCount metric, with DeploymentDuration as an optional addition.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.