-
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
DataDog scaler makes KEDA operator crashing loop back #2625
Comments
Thanks for reporting this. I can see that your DataDog Query is: keda/pkg/scalers/datadog_scaler.go Lines 130 to 131 in 85dd397
I am by no means an expert on DataDog (queries), but if a valid query doesn't have to contain curly bracket, we shouldn't create a metric name based on that expectation. We should probably just put a beginning of the query in the metric name or something like that. @arapulido FYI^ |
Thanks a lot @toan-hf for the issue! Yes, a query in Datadog needs to contain a curly bracket. If you want to say that you need all tags, then you can use Depending on the metric, it may take a while until retrieving the value from Datadog, hence the error (I will work to change it to a warning depending on what's returned). If you wait a while, does it eventually get a metric value? |
@arapulido thanks for the confirmation :) |
@arapulido I am aware of the delay metric issue returning as it is crawled from the AWS CloudWatch (had been mentioned here.
Even I have changed to
my query is
Even though if i query directly from the DataDog UI it is still showing properly So what I am worried about now is the query that we made from KEDA to the |
To summarise what i have been done
Thanks a lot for your help @zroubalik & @arapulido Let me know if you have other ideas otherwise, We can close this issue and try to open another issue to investigate the second one. |
@toan-hf opening another issue for the second problem would be great. This one will be closed once the related PR is merged. |
Report
I recently tried to use DataDog Scaler to scale my deployment. But every time, when i apply the scaledobjects like below, the keda-operator pod will crash loopback with a stack trace error
Keda version 2.6.0
Trying to apply the simple manifest like
The Keda Operator pod will throw the error and keep crashing loopback
Trying to hit API DataDog, the metrics is existing
Expected Behavior
DataDog scaler should run properly.
Actual Behavior
Keda Operator will be crashed and hung forever until We delete that scaledObjects (keda-demo-4)
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.6.0
Kubernetes Version
1.21
Platform
Other
Scaler Details
DataDog.
Anything else?
In case i changed the DataDog query with an Tag filter like
max:aws.sqs.approximate_number_of_messages_visible{app_name:supper-app}
Then the keda-operator will run properly however that metric will not be able to return along with the error (from keda-metric-server)
The text was updated successfully, but these errors were encountered: