Code Monkey home page Code Monkey logo

Comments (6)

amete avatar amete commented on June 15, 2024

Hi Andrea,

If I understand your request correctly the core functionality should be there already, i.e.:

prmon_plot.py --input ... --xvar wtime --yvar rx_bytes

would create the usual time evolution of rx_bytes like:

prmon_wtime_vs_rx_bytes

while

prmon_plot.py --input ... --xvar wtime --yvar rx_bytes --diff

would compute and plot delta(yvar)/delta(xvar) as:

prmon_wtime_vs_diff_rx_bytes

I think we can improve the labeling etc. but is this what you're after?

Best,
Serhan

from prmon.

sciaba avatar sciaba commented on June 15, 2024

Exactly! The only degree of freedom is the delta_t used to estimate the derivative. It should be a multiple of the sampling interval; some degree of smoothing may be desirable (maybe a sensible default and a configurable parameter? Up to you!).
Cheers,
Andrea

from prmon.

sciaba avatar sciaba commented on June 15, 2024

I was thinking again, and maybe it's not just a matter of plots, but we should consider IO rates as "real" metrics, which means having their values written already in prmon.txt, such that prmon.json will contain max and avg of them, too... Clearly it's more work because they should be calculated in prmon itself.
Andrea

from prmon.

graeme-a-stewart avatar graeme-a-stewart commented on June 15, 2024

Hi @sciaba - I am not so sure about that. From the accumulating values it's easy to calculate the derivative and we could easily adopt a few strategies to do that (various sliding window shapes and widths). If you take the derivative inside prmon and then only give rates it's not so easy to go backwards.

Technically it's not that hard to do, but I what we do now is more useful and reflects the underlying metric better, so it's easier to relate to other measurements.

from prmon.

sciaba avatar sciaba commented on June 15, 2024

You convinced me!

from prmon.

amete avatar amete commented on June 15, 2024

The plotting aspect of this issue is addressed in #66. I think the consensus is not to make any changes to the core code for this. Therefore, I'm closing this issue. Please feel free to re-open if need be.

from prmon.

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.