Skip to content

EC2 AutoDetect detector does not apply custom filters passed via filter_ parameter #26

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

Open
l-kirschner opened this issue May 22, 2025 · 0 comments

Comments

@l-kirschner
Copy link

Hey guys!
Thank you for the amazing library. While working with the EC2 CPU AutoDetect detector, I noticed that filters don't seem to be applied correctly.

For example, this line doesn't appear to honor the specified filter:

ec2.cpu_utilization_detector(filter_=filter('aws_tag_Name', 'myserver-*')).publish('Logging Infrastructure (EC2): CPU utilization expected to reach the limit')

After some digging, I traced the issue to this line in the source:
https://github.com/signalfx/signalflow-library/blob/master/library/signalfx/detectors/autodetect/infra/aws/ec2.flow#L121

It looks like the filter_ parameter isn’t being passed along to the data stream.

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

1 participant