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 · 1 comment

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.

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

No branches or pull requests

2 participants