Giter VIP home page Giter VIP logo

Comments (6)

metalmatze avatar metalmatze commented on June 26, 2024 2

Whoops. Sorry about that. We'll merge #118 then.
Thanks everybody for raising the issue!

from kubernetes-mixin.

metalmatze avatar metalmatze commented on June 26, 2024

I'm not entirely sure what the best aggregate with this is. Comparing the graphs with sum and avg I can't see it making a big difference. Only the scale seems to vary quite a bit, with the same spike going to 0.42 with sum and 0.058 with avg.

@tomwilkie do you have any insights into this one? You originally worked on this Node dashboard.

from kubernetes-mixin.

woodsaj avatar woodsaj commented on June 26, 2024

A cpu core is being "used" if it is not in an idle state. The only way to calculate the percentage of time the core is being used is to sum the amount of time spent in all other CPU states.

If a single process thread is using 100% of a CPU
You would have the following datapoints

CPU State rate
user 1.0
system 0
iowait 0
nice 0
irq 0
softirq 0
steal 0

If you used 'avg', the CPU utilization would be incorrectly reported as 14.28%. (100 + 0 + 0 + 0 + 0 + 0 + 0) / 7

from kubernetes-mixin.

metalmatze avatar metalmatze commented on June 26, 2024

That makes a lot of sense. I will wait for some more comments and then go ahead with merging #132

from kubernetes-mixin.

cbeneke avatar cbeneke commented on June 26, 2024

Hey, just saying, that exact PR is open since about a month.... #118

from kubernetes-mixin.

tomwilkie avatar tomwilkie commented on June 26, 2024

Closing as fixed by #118

from kubernetes-mixin.

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.