[receiver/awsecscontainermetrics] Add instance_level_metrics config option#48407
Open
ollypom wants to merge 1 commit into
Open
[receiver/awsecscontainermetrics] Add instance_level_metrics config option#48407ollypom wants to merge 1 commit into
ollypom wants to merge 1 commit into
Conversation
|
|
Contributor
|
Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib. Important reminders:
|
f6a3b30 to
8fcfb20
Compare
…ption Add support for collecting metrics from all tasks on an ECS Managed Instance by querying the /tasks and /tasks/stats endpoints available to Managed Daemon Services. When instance_level_metrics is enabled, the receiver fetches instance-wide container stats instead of only the receiver's own task.
8fcfb20 to
58a71e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds
instance_level_metricsconfig option to theawsecscontainermetricsreceiver. When enabled, the receiver queries the/tasksand/tasks/statsendpoints (available to Managed Daemon Services on ECS Managed Instances) to collect metrics for all tasks on the instance, not just the receiver's own task.Link to tracking issue
Fixes #48396
Testing
GetInstanceStats()instats_provider_test.go(success, failure, invalid JSON)collectInstanceLevelMetricsinreceiver_test.goDocumentation
instance_level_metricsconfig option to README with usage example