Closed rcng6514 closed 4 weeks ago
Just noting here as these two issues may be correlated as this issue sounds somewhat similar to what I am experiencing https://github.com/kedacore/keda/issues/5896
Out of interest do your subscriptions regularly have no messages in them?
Thanks @Caislear , we've got two envs that are impacted by this. One has a constant stream of messages in queue that rarely hit zero, the other more often hits zero messages in queue. Both are impacted by this bug but interestingly the higher volume environment experiences more of these errors
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
There was a bug in v2.13 that reduced unexpectedly the aggregation period but if was solved in v2.14. In v2.15 the time window supports custom horizons -> https://github.com/kedacore/keda/issues/5429 I think that you could have some periods without metrics that are treated as errors and probably increasing the window it can help. We added also the option to set a custom value if metric not available as part of https://github.com/kedacore/keda/pull/5897
This issue has been automatically closed due to inactivity.
Report
We seem to have the same problem as #5452 we believe since upgrading to 2.14.0. Infrequently Keda throwing that it cannot find a metric that matches that filter. GCP audit logs show no failed auth or perms issues. In a 7 day window we observed 863 instances of this error
Expected Behavior
Metric query returned consistently
Actual Behavior
Metric query inconsistently returned with the following error:
could not find stackdriver metric with query fetch pubsub_subscription
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.14.0
Kubernetes Version
1.28
Platform
Google Cloud
Scaler Details
Google Cloud Platform Pub/Sub
Anything else?
Poll interval if reduced to 5 seconds reduces errors seen but does not eliminate them