Giter Club home page Giter Club logo

Comments (8)

astefanutti avatar astefanutti commented on September 13, 2024

Interesting, it's taken from cAdvisor stats:

y : Array(timestamps.length - 1).fill(spec[cgroup].cpu.limit),

I need to dig into it to understand why that's different from the pod compute resources.

from kubebox.

lduparc avatar lduparc commented on September 13, 2024

Hi,

Thinking about this issue. FYI I'm using kubernetes 1.19 and I saw some breaing changes between kube-state-metrics & cadvisor which can explain (not sure) why we don't have the right information on Kubebox

from kubebox.

lduparc avatar lduparc commented on September 13, 2024

It's not related to kubernetes 1.19. I check kubebox version 0.7.0 and all is ok. This issue exist since version 0.8.0.
Issue still exist on v0.9.0

Thanks

from kubebox.

astefanutti avatar astefanutti commented on September 13, 2024

Thanks for the precision. That helps a lot. Before 0.8.0, the cAdvisor embedded into the kubelet was queried through the container stats API. Starting 0.8.0, it uses the APIs from the external cAdvisor DaemonSet.

Here is what was used from the container stats endpoint response:

const limit = response.spec.cpu.quota / response.spec.cpu.period * 1e+3;

While the following bit from the cAdvisor API doesn't seem to match:

y : Array(timestamps.length - 1).fill(spec[cgroup].cpu.limit),

from kubebox.

lduparc avatar lduparc commented on September 13, 2024

Hi,
Hope end of year are good for you.

Any news concerning this issue ? Are you able to reproduce ?

Thanks.

from kubebox.

astefanutti avatar astefanutti commented on September 13, 2024

@lduparc I don't have any update. I've mostly been AFK to enjoy end of 2020 😄. I'll work on it ASAP and keep you posted.

from kubebox.

lduparc avatar lduparc commented on September 13, 2024

Happy New Year,

Let me know if you need help to test.

from kubebox.

astefanutti avatar astefanutti commented on September 13, 2024

I've removed the limits from the time series in 0448a18, as they tend to flatten the other ones. I may find a better way to bring the limits in the UI.

from kubebox.

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.