Code Monkey home page Code Monkey logo

Comments (3)

dobesv avatar dobesv commented on August 10, 2024

Yes, I am finding it difficult to get value out the exporter as it is because most of the stats in prometheus are not in a useful format for use in prometheus. In order for a metric to be useful for the horizontal pod autoscaler it has to be one such that adding pods will reduce that metric.

For example:

  • if I use the "Object" target to scale based on the "number of open connections" on an ingress, I'll just be getting the total number of connections. What I want is the number of open connections divided by the number of pods handling those connections. Increasing the number of pods can never reduce the total number of open connections on the ingress.
  • if I use the "Pods" target on a metric like "95th percentile response time", adding pods will actually reduce the response time (in theory). So, I need to transform the metric to "response time seconds per second" or something like that.

Also:

Often I do not have control over the names of the metrics exported to prometheus, so the naming conventions like the _total suffix might not help me. For example in the epimetheus metrics exporter for node.js the suffix is _sum instead.

I imagine there might be some prometheus config-fu that I could use to rename or adjust these, but it feels like this would be a lot easier if I could just write a list of prometheus queries and how to map their results to metrics.

from prometheus-adapter.

DirectXMan12 avatar DirectXMan12 commented on August 10, 2024

This is fixed by #46

from prometheus-adapter.

fejta-bot avatar fejta-bot commented on August 10, 2024

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

from prometheus-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.