Comments (5)
As an example for the first step of this of adding the task arn/uuid as a label, this is what I was thinking of: https://github.com/aws/amazon-ecs-agent/compare/master...remind101:task-label?expand=1.
from amazon-ecs-agent.
I think this looks like a great idea and would be very happy to see a pull request! Please note that any pull requests will be accepted under the Apache 2.0 license.
I think the following three labels would make sense to be automatically applied:
com.amazonaws.ecs.task-arn
com.amazonaws.ecs.task-definition-arn
com.amazonaws.ecs.container-name
With respect to your question about supporting labels within task definitions, can you expand a bit on your use case here? Is your primary use-case just logging metadata? Are you looking to make scheduling decisions or IAM policies based on these?
from amazon-ecs-agent.
With respect to your question about supporting labels within task definitions, can you expand a bit on your use case here?
Sure! For my use case, it would only serve as logging metadata (for consumption by logspout/heka). Specifically, I'd like to set some labels on the container when it's run com.<place>.app-name
, com.<place>.process-type
, then I would have the labels extracted and added as structured data in syslog messages generated by logspout and shuttled off to sumo/papertrail for aggregation. Having the labels added to the log messages will make it significantly easier to query logs.
For this particular use case, the labels couldn't be added within the Dockerfile via the LABEL
directive because the image could be used within multiple ecs services with a different process-type
and app-name
labels.
I think this looks like a great idea and would be very happy to see a pull request!
On it :).
from amazon-ecs-agent.
Released with v1.2.0.
from amazon-ecs-agent.
🤘
from amazon-ecs-agent.
Related Issues (20)
- Add retries for publishing metrics & health checks
- ECS Deployment Fails Due to Premature Resource Availability Reporting HOT 8
- Add support for custom ECS-Agent and ECS-Telemetry Endpoints HOT 1
- Upgraded ecs agent causes Error loading previously saved state from BoltDB HOT 4
- ECS control plane not compatible with ECS-A and Docker v26 requirements for API version HOT 6
- AWS ECS agent does not start in EC2 instance HOT 3
- Agent is Failing to Add com.amazonaws.ecs.capability.logging-driver.journald Attribute to the Container Instance HOT 1
- Docker client doesn't support zstd compression HOT 1
- ECS agent on windows does not work for more than 10 CPU despite setting 'ECS_ENABLE_TASK_CPU_MEM_LIMIT' to true HOT 4
- Secret in US region, and ECS cluster in Asia pacific region HOT 2
- Run Security Updates without failing long-running tasks HOT 2
- Unable to delete Docker image due to multiple repository references HOT 1
- Specifying docker image for caching during ecs-init
- nvidia-gpu-info.json not being generated since v1.82.4 HOT 2
- Docker tags are not shown for pulled images where tag is specified in task definition HOT 4
- More descriptive log message for "Resources not consumed, enough resources not available" HOT 2
- ECS Instances stuck with "Agent Disconnected" HOT 7
- Container port mappings are not shown in ECS metadata response on Fargate
- Concurrent Image Pulls Thrash Disk, Causing `DockerTimeoutError: Could not transition to created; timed out after waiting` HOT 5
- README: Link missing for more information about the ECS_ENABLE_GPU_SUPPORT environment variable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-ecs-agent.