Giter Site home page Giter Site logo

Comments (3)

mikkeloscar avatar mikkeloscar commented on May 24, 2024 1

Will close this for now. Please re-open if you still need help.

from kube-metrics-adapter.

mikkeloscar avatar mikkeloscar commented on May 24, 2024

I can not replicate this issue.

Using the example HPA from the README. I create two HPAs in different namespaces and observe the following in the kube-metrics-adapter logs:

kube-metrics-adapter-5c87f994d6-26cbm kube-metrics-adapter time="2019-11-25T14:47:43Z" level=error msg="Failed to collect metrics: Get http://prometheus.my-namespace.svc/api/v1/query?query=scalar%28sum%28rate%28event-service_events_count%7Bapplication%3D%22event-service%22%2Cprocessed%3D%22true%22%7D%5B1m%5D%29%29%29%0A&time=2019-11-25T14%3A47%3A43.082778306Z: dial tcp: lookup prometheus.my-namespace.svc on 10.149.64.76:53: no such host" provider=hpa
kube-metrics-adapter-5c87f994d6-26cbm kube-metrics-adapter time="2019-11-25T14:47:43Z" level=info msg="Collected 0 new metric(s)" provider=hpa
kube-metrics-adapter-5c87f994d6-26cbm kube-metrics-adapter time="2019-11-25T14:47:43Z" level=error msg="Failed to collect metrics: Get http://prometheus.my-namespace2.svc/api/v1/query?query=scalar%28sum%28rate%28event-service_events_count%7Bapplication%3D%22event-service%22%2Cprocessed%3D%22true%22%7D%5B1m%5D%29%29%29%0A&time=2019-11-25T14%3A47%3A43.082739022Z: dial tcp: lookup prometheus.my-namespace2.svc on 10.149.64.76:53: no such host" provider=hpa

I didn't actually set up the Prometheus servers but this indicates it tries to go to the one defined as an annotation.

Could you share the full hpa manifest you use for this issue to trigger?

from kube-metrics-adapter.

palmerabollo avatar palmerabollo commented on May 24, 2024

Thanks for your prompt reply, Mikkel. Let me try to reproduce it again to share the minimal manifest and to doule chech that it's not something in our side. We use Thanos in front of Prometheus, but it should expose the same Prometheus API.

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.