aws / aws/containers-roadmap

[ECS] [request]: Automatically create per Service metrics for ECS Fargate SPOT and OnDemand usage

Open
#1,540 0 comments 1 reaction 0 assignees View on GitHub
ECS Fargate 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**
What do you want us to build? At this time, FARGATE_SPOT and OnDemand only allow tracking of usage on a regional basis from
```
Namespace: AWS/Usage
Metric Name: ResourceCount
Type: Resource
Resource: Spot
Service: Fargate
```
It would be useful for tracking purposes, especially for seeing when spot instances go down and for how long, if these were automatically tracked at a per Service level in ECS.

**Which service(s) is this request for?**
This could be Fargate, ECS

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
What outcome are you trying to achieve, ultimately, and why is it hard/impossible to do right now? What is the impact of not having this problem solved? The more details you can provide, the better we'll be able to understand and solve the problem.

At this time the solution that I see for this involves listing all the tasks for a service and then describing each of them in order to check if they are FARGATE or FARGATE_SPOT. This is cumbersome for some users to setup and, if an account is using a large number of services, could run into throttling issues.

**Are you currently working around this issue?**
How are you currently solving this problem?

A cron job with a shell or boto3 script would allow for these metrics to be pushed to Cloudwatch.

Contributor guide

Open the contributing guide

Research direction

Start with the ECS Fargate and AWS/Usage ResourceCount details in the issue, including the FARGATE_SPOT and OnDemand distinction and the current task-listing workaround. Done would mean per-Service metrics are automatically available for tracking usage and spot capacity changes without requiring each user to enumerate tasks or risk throttling.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.