[CONTP-1014] feat: Add UST docker labels to all container definitions #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds USD docker labels to all container definitions including the datadog agent & customer's container definition.
configuration to docker label mapping:
dd_env->com.datadoghq.tags.envdd_service->com.datadoghq.tags.servicedd_version->com.datadoghq.tags.versionMotivation
ecs.fargate.cpu.limitand similar metrics don't haveservice/env/versiontags despite setting UST env vars on all container environments. That's because UST tags cannot be created based on environment variables when deploying on ECS Fargate.Adding UST docker labels fixes this such that metrics and logs are properly tagged with
service/env/version.Describe how you validated your changes
ust_docker_labels_test.go.Manual Testing
dd_service/dd_version/dd_envsetup.ecs.fargate.cpu.limitmetrics are tagged with UST tags.Additional Notes