-
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
Prometheus scaler unable to connect to Grafana Cloud Prometheus #6487
Comments
Hello |
@JorTurFer I don't think connectivity is the issue. I spin up a fedora container in the same namespace and I get the following:
So it at least looks like I'm getting a response.I have a feeling maybe it's an issue with the metric that I'm testing with? But I figured I'd get something other than a |
If I drop the |
Alright, I wanted to blame this on me. So I went back and just used the example metric: With the query:
So I can see that even with:
I'm still seeing a
|
Have you tried to increase a bit the global timeout? Default value is 3 seconds -> https://github.com/kedacore/charts/blob/main/keda/values.yaml#L543 |
Bumped it up to 6000 and still the same immediate behavior. Here's my config for my ScaledJob in case that helps
|
have you checked the needed time when you use curl? curl -o /dev/null -s -w 'Total: %{time_total}s\n' .... |
Report
When configuring a Prometheus scaler to run against a Grafana Cloud hosted Prometheus, an error occurs resulting in
"https://my-prometheus.grafana.net/api/prom/api/v1/query?query=buildkite_queues_scheduled_jobs_count&time=2025-01-14T05:53:39Z": context canceled
Expected Behavior
According to the documentation, this should be just like any other Prometheus, with the expected api being available on Grafana Cloud at
https://my-prometheus.grafana.net/api/prom/
.Actual Behavior
Error occurs.
Get "https://my-cloud-prom.grafana.net/api/prom/api/v1/query?query=buildkite_queues_scheduled_jobs_count&time=2025-01-14T05:53:39Z": context canceled
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.16.1
Kubernetes Version
1.30
Platform
Any
Scaler Details
Prometheus
Anything else?
No response
The text was updated successfully, but these errors were encountered: