-
Notifications
You must be signed in to change notification settings - Fork 936
Open
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p3This is a minor priority issueThis is a minor priority issuesdk-metrics
Description
Describe the feature
Add option in CloudWatchMetricsPublisher to specify a custom dimension with constant value.
Use Case
I would like to record AWS SDK metrics per ECS task ID and per AWS service.
The MetricCollection
does not contain ECS task id as a metric, so it can't be used as dimension. Currently there does not seem to be evident way of how to achieve this.
Proposed Solution
Something like this:
CloudWatchMetricsPublisher
.builder()
.dimensions(List.of(ConstantMetric.create("TaskId", "constant value"), CoreMetric.SERVICE_ID))
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Java SDK version used
2.17.275
JDK version used
11.0.12
Operating System and version
macOS
yattoni, adampetrovic, sgraca, paulmone and drew-eero
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p3This is a minor priority issueThis is a minor priority issuesdk-metrics