You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then, it looks for output.MetricDataResults which is not a key in output: https://github.com/kedacore/keda/blob/3e87999/pkg/scalers/aws_cloudwatch_scaler.go#L286C16-L286C33
Granted, I'm no golang expert, but I can clearly see that the MetricDataResults is under data not directly under output
is it a bug and it really should check output.data.MetricDataResults instead?
what am I missing? it's not working :((
Expected Behavior
metric should not be defaulted to min value since the query does succeed.
Actual Behavior
it uses the default min value
Steps to Reproduce the Problem
everything I did is described above
Logs from KEDA operator
No response
KEDA Version
2.14.0
Kubernetes Version
1.30
Platform
Amazon Web Services
Scaler Details
CloudWatch
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Report
I have a ScaledObject for cloudwatch metrics (truncated irrelevant parts):
from the operator logs, I get these lines (after enabling debug log level):
I can see this being executed:
https://github.com/kedacore/keda/blob/3e87999/pkg/scalers/aws_cloudwatch_scaler.go#L282
and the output is:
then, it looks for
output.MetricDataResults
which is not a key inoutput
:https://github.com/kedacore/keda/blob/3e87999/pkg/scalers/aws_cloudwatch_scaler.go#L286C16-L286C33
Granted, I'm no golang expert, but I can clearly see that the
MetricDataResults
is underdata
not directly underoutput
is it a bug and it really should check
output.data.MetricDataResults
instead?what am I missing? it's not working :((
Expected Behavior
metric should not be defaulted to min value since the query does succeed.
Actual Behavior
it uses the default min value
Steps to Reproduce the Problem
everything I did is described above
Logs from KEDA operator
No response
KEDA Version
2.14.0
Kubernetes Version
1.30
Platform
Amazon Web Services
Scaler Details
CloudWatch
Anything else?
No response
The text was updated successfully, but these errors were encountered: