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 |
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]
amazon-cloudwatch-agent/plugins/processors/k8sdecorator/stores/podstore.go
Line 31 in dd1be96
[2]
amazon-cloudwatch-agent/plugins/processors/k8sdecorator/stores/podstore.go
Lines 144 to 146 in dd1be96