-
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
[Proposal] Use unique name for metricName for each scaler #733
Comments
Let's enforce this as of v2.0; think this is a good point of improvement!
I would go for this as it's consistent across scalers & scenario which we can use in our logging as well |
I think having an optional parameter to provide a unique name . if it's not found then we can generate the unique name based on the parameters for the scalar. |
That's a good suggestion imo! |
Yeah, but we should bear in mind that the generator must be idempotent, provide the same "unique" value for the same trigger. |
yes. i think we can generate it based on the parameters provided. for example : kafka-scalar-> "kafka-topic-group" |
@AmithGanesh are you volunteering to implement this? 😄 |
yes. i would like to take this up |
@AmithGanesh what is the status of this please? |
Almost done. will submit a Pull Request by the end of the week. |
@AmithGanesh that's great! You might want to share your progress on a meeting this Thursday :) |
@AmithGanesh any update on this? |
opened a PR for this. #866 |
@samuelmacko agreed to finish this |
Solved in #966 |
Co-authored-by: jorturfer <[email protected]>
Currently
metric name
is hard coded to a specific value (see the example on Kafka scaler), this applies to most of the scalers.Metric name
is essential forMetric server
andHPA
as it is used to distiguish the correct metrics used for scaling.If we define two or more scalers of the same kind in one
ScaledObject
, scaling won't be correct as all the scalers will share the samemetric name
, eg. for Kafka it would belagThreshold
. This could be even problem when using specific combination fo different scalers, as they are using samemetric name
, eg. Kafka and Stan and probably some others as well.Using multiple scalers of different kind (or same kind but with different metrics) in one
ScaledObject
is working: #702If we want to support multiple scalers, we will need to do modification in every scaler. Each scaler would have to use unique
metric name
, it's up for discussion what approach would be the best, some of the possibilities are:ScaledObject
(to keep the same metric name for the scalers that we have in v1)ScaledObject
Use-Case
There could be multiple scalers of the same kind in
ScaledObject
Discussion
metric name
?//EDIT added note about Kafka + Stan scalers
The text was updated successfully, but these errors were encountered: