Skip to content

AWS Cloudwatch Scaler, do nothing on empty metric data received #5352

Closed
kedacore/keda-docs
#1346
@robpickerill

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

No one assigned

    Labels

    feature-requestAll issues for new features that have not been committed toneeds-discussionstaleAll issues that are marked as stale due to inactivity

    Type

    No type

    Projects

    • Status

      Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions