Giter Site home page Giter Site logo

Comments (5)

mikkeloscar avatar mikkeloscar commented on May 28, 2024

No, we currently don't provide either of those endpoints. What sort of metrics would you want to get from a prometheus endpoint?

from kube-metrics-adapter.

dudicoco avatar dudicoco commented on May 28, 2024

Hi @mikkeloscar, I would like to get error counts within the controller so I can set up alerts accordingly.
I would also like a health endpoint so I can configure liveness probe checks to restart the container if it's unhealthy.
Here is an example of an implementation in the External-DNS controller:
kubernetes-sigs/external-dns#132 (comment)

from kube-metrics-adapter.

mikkeloscar avatar mikkeloscar commented on May 28, 2024

I guess it can make sense to report errors, e.g. if a collector is not working you could figure it out. maybe just a bit hard to distinguish between user configuration errors and actual errors in some cases.

PRs for adding such a metric endpoint would be welcome.

Regarding the health endpoint I'm not sure under which condition it would make sense to kill the container. Unlike external-dns, this is an active HTTP server so it definitely shouldn't have a separate listener for /healthz, but it could have one on the main listener and be used for readieness, though it's pretty much ready right away, anyway :)

from kube-metrics-adapter.

dudicoco avatar dudicoco commented on May 28, 2024

Thanks for the detailed explanation @mikkeloscar.

So if I set up a probe with https scheme to target the main listener i'm good to go?
Do you only recommend setting a readiness probe and not a liveness probe?

from kube-metrics-adapter.

mikkeloscar avatar mikkeloscar commented on May 28, 2024

We didn't run with either in production for a year or so now, and we didn't have issues related to this thus far, so I can't recommend on either as I don't know what the benefit would be :)

from kube-metrics-adapter.

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.