kedacore / keda

KEDA is a Kubernetes-based Event Driven Autoscaling component. It provides event driven scale for any container running in Kubernetes
https://keda.sh
Apache License 2.0
8.01k stars 1.01k forks source link

feat: GCP Pub/Sub scaler add configurable fallback value when no metric value found #5897

Open Caislear opened 1 week ago

Caislear commented 1 week ago

Added an optional valueIfNull configuration value to the GCP Pub/Sub as also found in the older GCP Stackdriver scaler. This allows for a default fallback value when GCP returns no value for a given metric. This prevents excessive error logging especially when using multiple pubsub scalers with low subscription traffic.

Checklist

Relates to # https://github.com/kedacore/keda/issues/5896

Documentation update

zroubalik commented 3 days ago

/run-e2e gcp Update: You can check the progress here