knative-extensions / autoscaler-keda

Keda based Knative HPA Autoscaler
Apache License 2.0
2 stars 4 forks source link

Add support for combination of metrics #20

Closed skonto closed 1 month ago

skonto commented 2 months ago

Keda supports a formula based evaluation of metrics (https://keda.sh/docs/2.12/concepts/scaling-deployments/#scaling-modifiers-experimental).

skonto commented 1 month ago

This is an advanced version of https://github.com/knative-extensions/autoscaler-keda/issues/33. Here we combine metrics to form a formula where a single value is returned based on the special syntax. Examples: "(trig_one + trig_two)/2" "trig_one > 2 ? trig_one + trig_two : 1"