Giter VIP home page Giter VIP logo

Comments (4)

CharlyF avatar CharlyF commented on September 20, 2024

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.

deiga avatar deiga commented on September 20, 2024

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.

CharlyF avatar CharlyF commented on September 20, 2024

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.

CharlyF avatar CharlyF commented on September 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.