Comments (4)
Hello @deiga !
Thank you for this report, I have seen this in the past and the issue was that the external metrics provider (Datadog Cluster Agent in my case) was not exposing the metric during the first reconcile loop. So the controller could not write the status and was surfacing this error.
Could you confirm that the metric is available on the external metrics route ?
Something like:
kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/web-services-staging/php_fpm.listen_queue.size"
or if you have multiple, I think this would work:
kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/web-services-staging/php_fpm.listen_queue.size?labelSelector=app%3Dnextapi,stage%3Dstaging,region%3Deu-west-1"
I am going to share with my team though to investigate and better handle the error.
from watermarkpodautoscaler.
Thanks for your quick reply @CharlyF
Neither of those queries works, they return Error from server (ServiceUnavailable): the server is currently unable to handle the request
I'm beginning to suspect that there is an issue with our Cluster Agent. Although the cluster agent reports the External metrics as valid
from watermarkpodautoscaler.
Ah, indeed that explains it then. If these queries do not return, could you verify that the APIService for external metrics is correctly setup as well as the service itself has the cluster agent registered as endpoints ?
For standard deployments that would be
kubectl describe apiservice v1beta1.external.metrics.k8s.io
kubectl describe service datadog-cluster-agent
from watermarkpodautoscaler.
We improved the logging in the recent minor release of the controller but I believe this issue was with the Cluster Agent and not the WPA.
I am going to close this for now, but feel free to reopen if this is still an issue for you.
from watermarkpodautoscaler.
Related Issues (20)
- multiple metrics with must and should requirements HOT 5
- documentation: quantities and metric relation, case sensitiveness, metric context/selection HOT 2
- unable to fetch metrics from external metrics API: Internal error occurred: DatadogMetric is invalid, err: Invalid metric (from backend) HOT 3
- docs: external_metrics vs custometric HOT 5
- Change dryRun value using helm chart HOT 3
- Get a wpa based on CPU/Memory resource does not show values HOT 1
- Kubernetes 1.22 compatibility HOT 5
- Resource type WPA metrics do not appear to be averaging correctly HOT 4
- Question: What does "only officially supports one metric per WPA" mean?
- WPA doesn't build on M1 HOT 1
- Constant errors HOT 2
- WPA support for openshift 3.11 + k8s 1.11 HOT 17
- Publish to a Helm Chart repository HOT 4
- WPA will get panic if we try to scale Openshift DeploymentConfig HOT 10
- Standby pods are panicking HOT 1
- host images in docker hub HOT 4
- watermarkpodautoscaler": executable file not found in $PATH: unknown HOT 3
- crash loop - flag provided but not defined: -zap-level HOT 5
- shema watermarkpodautoscaler-datadoghq-v1alpha1.json not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watermarkpodautoscaler.