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

Disable collecting metrics/logs with annotation based on the cloudwatch agent. #1389

Open
tushar-012 opened this issue Oct 14, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@tushar-012
Copy link

Is your feature request related to a problem? Please describe.

If a pod has the annotation aws.amazon.com/cloudwatch-agent-ignore: true it should be ignored by the amazon-cloudwatch-agent and logs/metrics should not be pushed to cloudwatch for that pod.

[1]

ignoreAnnotation = "aws.amazon.com/cloudwatch-agent-ignore"

[2]

// Ignore if we're told to ignore
if strings.EqualFold(entry.pod.ObjectMeta.Annotations[ignoreAnnotation], "true") {
return false

@RDarrylR
Copy link

Any update on this? I had a call with AWS SA's about this a while back and they mentioned it was being looked at.

@awesomeinsight
Copy link

We are also interested in the current status here. Thanks in advance!

@ldcmxn
Copy link

ldcmxn commented Jan 7, 2025

This is also an issue for me.
All desired pods are annotated correctly.

Using the EKS AddOn with Enhanced Observability.

Are there any updates on this topic?

@the-mann the-mann added the enhancement New feature or request label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants