-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
only one of multiple prometheus triggers' are taken into account #759
Comments
KEDA v1.4 has resolved the issue. |
Does it? I think you'll still have issues because of trigger names or not @zroubalik? |
@tomkerkhove as you can see he was using 2 triggers with a different metric names. For prometheus scaler metric name is a mandatory part of the triggers metadata. So this example works. |
@dipeti / @tomkerkhove / @zroubalik |
It's best to use any metric you can find in Prometheus as that's your source of truth, if it's not in there KEDA won't be able to scale |
I have the same issue with KEDA 1.4 in GKE
Sorry I don't understand that - can you please tell if having the same names is a problem or not? And can they be arbitrary chosen or they should indicate something? I was under the impression that I could choose any metric name I want. EDIT: After testing, it seems that even using query as metric name does not help (container_memory_working_set_bytes) |
@alegmal multiple triggers in ScaledObject doesn't work correctly in KEDA v1. I'd recommend you to try KEDA v2 Beta. |
We're running a Java app that we'd like to scale out based on metrics scraped by Prometheus.
Our intent is to up the number of replicas if either of the metrics below exceeds its threshold:
Read the ScaledObject deployment descriptor:
Expected Behavior
Call Prometheus for both metrics every 30 seconds and increase the number of replicas as soon as either of the external metrics exceeds the configured threshold.
Actual Behavior
Looking at the description of the HPA created by the ScaledObject only one of the metrics are taken into account. Even though both metrics are listed correctly the current average value for
number_of_requests_metric
always takes the same value as forcpu_usage_metric
.However many http requests we send to
java-app
the metricnumber_of_requests_metric
will always show the same current value ascpu_usage_metric
which leads us to believe that the query for the handled http requests is not being picked up by the HPA.Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: