feat(metrics-api): add zeroOnMissingEndpoints option for aggregated endpoint scaling#7652
feat(metrics-api): add zeroOnMissingEndpoints option for aggregated endpoint scaling#7652proudier wants to merge 1 commit intokedacore:mainfrom
Conversation
…ndpoint scaling Signed-off-by: Pierre Roudier <pierre@roudier.io>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Thank you for your contribution! 🙏 Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected. While you are waiting, make sure to:
Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient. Learn more about our contribution guide. |
|
We currently see the so-called I see that you only accept this value when using |
I studied the Prometheus scaler before implementing this and looked at
What do you think? Should we favor reusing the same names even if the semantic is different?
The But taking a step back, I think you're bringing a good point: I could capture some error cases down the getMetricValueFromURL code path that match the definition of |
|
WDYT @kedacore/keda-core-contributors @kedacore/keda-core-maintainers |
When
aggregateFromKubeServiceEndpointsistrueand the target Service has no ready endpoints, the scaler currently returns an error. WithzeroOnMissingEndpoints: "true", the scaler returns a metric value of0instead, allowing the ScaledObject to evaluate normally. This option is only valid whenaggregateFromKubeServiceEndpointsistrue; setting it without that flag is rejected at parse time.See issue #7651 for details.
Checklist
make generate-scalers-schemahas been run to update any outdated generated filesRelates to #7651