Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the resource_to_telemetry_conversion to true in amp config.yaml files #739

Merged

Conversation

vasireddy99
Copy link
Contributor

@vasireddy99 vasireddy99 commented Nov 12, 2021

This PR will add dimensions/tags and more detailed information to AMP metrics which helps to identify the metrics using cluster_name, task_id etc.,

Modified the following ecs-amp config files by enabling the resource_to_telemetry_conversion to true

Paths to config files
config/ecs/ecs-amp.yaml
config/ecs/ecs-amp-xray.yaml
config/ecs/ecs-amp-xray-prometheus.yaml
config/ecs/ecs-amp-prometheus.yaml

Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, unlike the EMF exporter setting, this does not seem to support a list of labels to allow list

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/87ba2fa130a3b1353d717499e3b62c7bea4924a0/pkg/resourcetotelemetry/resource_to_telemetry.go#L31

We can't enable this because extremely high cardinality resource information will be sent and kill the prometheus. Perhaps that's why it's not documented :P

@codecov-commenter
Copy link

Codecov Report

Merging #739 (2a3af5e) into main (d2fcd75) will not change coverage.
The diff coverage is n/a.

❗ Current head 2a3af5e differs from pull request most recent head cbdf7b2. Consider uploading reports for the commit cbdf7b2 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #739   +/-   ##
=======================================
  Coverage   54.69%   54.69%           
=======================================
  Files          11       11           
  Lines         298      298           
=======================================
  Hits          163      163           
  Misses        118      118           
  Partials       17       17           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2fcd75...cbdf7b2. Read the comment docs.

@vasireddy99
Copy link
Contributor Author

vasireddy99 commented Nov 12, 2021

Thanks for the comments, will determine the need with teams.

Please find the related PR and issues

Issue : open-telemetry/opentelemetry-collector#2412

PR : open-telemetry/opentelemetry-collector#2899

@alolita
Copy link
Contributor

alolita commented Nov 12, 2021

@anuraaga Agree with your concerns. Each service has to take a call on cardinality related performance concerns.

Copy link
Contributor

@alolita alolita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is approved for AMP based on feedback from service team on no known limitations.

@anuraaga
Copy link
Contributor

I'm still worried about sending resource data without an allow list - assuming the cardinality can be handled without slowing down queries, it's still a lot of storage used (process.command_line can be on the kilobyte scale for some apps) and could cause cost balooning without value to customers.

@alolita
Copy link
Contributor

alolita commented Nov 17, 2021

@anuraaga The service team has confirmed that they can handle high cardinality data.

Copy link
Contributor

@alolita alolita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm based on service team feedback.

@alolita alolita merged commit aa595e1 into aws-observability:main Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants