Update all needed scalers to use int64
instead of float64
#2790
Labels
feature-request
All issues for new features that have not been committed to
needs-discussion
stale-bot-ignore
All issues that should not be automatically closed by our stale bot
Proposal
The HPA doesn't allow the usage of
float64
but there are some scalers where KEDA allows that, and basically KEDA cast those values intoint64
. This could be confusing and there is a risk of losing information like happened to this user.We should review all the scalers and change the to use
int64
values for the threshold and also internally for the returning metrics. This could be not enough because the upstream can still returnfloat64
(missing information during the cast), so this situation should be explained also in the docs for being clearest as possible. Majority of the cases could be solved multiplying * 100 the value in the query and taking that into account for the threshold.The text was updated successfully, but these errors were encountered: