[Fargate] [request]: Add procstat level metrics to ECS container metadata
- 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**
What do you want us to build?
Add proctstat level metrics to ECS container metadata. Currently, I see these metrics present on the Task metadata endpoint: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v4.html. I was wondering if there's a way we can extract other data like num_fds or num_threads which is present at the process level.
**Which service(s) is this request for?**
Fargate
**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
I'm trying to extract procstat level data from the Fargate task to see the number of open file handles currently present in the container. I see there's a Cloudwatch agent that we can install to collect that data here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-procstat-process-metrics.html, But I was hoping I could do the same via ECS container metadata than installing another agent on the task.
**Are you currently working around this issue?**
I haven't solved this problem yet.
**Additional context**
None.
**Attachments**
None.
Contributor guide
Research direction
Start by reviewing the ECS task metadata endpoint v4 documentation and the linked CloudWatch Agent procstat process-metrics documentation. Determine how process-level values such as num_fds and num_threads could be exposed through ECS container metadata; the request is complete when the intended procstat metrics are available without installing another agent.
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