Giter Site home page Giter Site logo

Comments (2)

RRAlex avatar RRAlex commented on May 29, 2024 1

Uhm, code 18, seems like the Deployment & HPA's prometheus path might have not matched during testing (or some other magic), but it works now... 🐙

from kube-metrics-adapter.

RRAlex avatar RRAlex commented on May 29, 2024

So it seems prometheus 2.18.1 wants the path prefix /prometheus for queries via /api/v1/query but setting it like this seems to ignore the /prometheus part, (still getting 404...):

metric-config.external.prometheus-query.prometheus/prometheus-server: http://prometheus.kube-system-monitoring.svc.cluster.local:9090/prometheus

EDIT:
The running process
/kube-metrics-adapter --prometheus-server=http://prometheus.kube-system-monitoring.svc.cluster.local:9090/prometheus --skipper-ingress-metrics --aws-external-metrics

The tcpdump from prometheus:

.I..y.z&5x\@..E..vu.@.@.............#...=..#.......|......A....ur.POST./api/v1/query.HTTP/1.1..Host:.prometheus.kube-system-monitoring.svc.cluster.local:9090..User-Agent:.Go-http-client/1.1..Content-Length:.102..Content-Type:.application/x-www-form-urlencoded..Accept-Encoding:.gzip....query=rabbitmq_queue_messages_ready%7Bqueue%3D%22task_priority_apiworker%22%7D&time=1590074409.0026362
z&5x\@.I..y...E.....@.@...........#....#....?..............u.7A...HTTP/1.1.404.Not.Found..Content-Type:.text/plain;.charset=utf-8..X-Content-Type-Options:.nosniff..Date:.Thu,.21.May.2020.15:20:09.GMT..Content-Length:.19....404.page.not.found.

Not sure why it's not getting /prometheus/api/v1/query...
Is it possible the path is stripped and there is no flag to point to a specific prometheus path, as defined by --web.external-url=http://example.com/prometheus' for example?

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.