AWS Cloudwatch Scaler, do nothing on empty metric data received #5352
Description
Proposal
Is there a way to do nothing when an empty metric response is returned from AWS CloudWatch? The current behaviour appears to be to return the minMetricValue, but would it be possible to do nothing in this case? I may of overlooked the option for this though
https://github.com/kedacore/keda/blob/main/pkg/scalers/aws_cloudwatch_scaler.go#L385-L386
Happy to implement this if functionality doesn't exist in the current AWS CloudWatch scaler options.
Use-Case
We are experimenting with the AWS Scaler and custom metrics. The use case here is when the system producing metrics is offline and unable to produce metrics, we would want no scaling actions to take place.
Is this a feature you are interested in implementing yourself?
Yes
Anything else?
No response
Metadata
Assignees
Labels
Type
Projects
Status
Ready To Ship