Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I'm trying to make a graph with two different data in the same graph. So the graph would look like

Process Graph

| | | * | + | __________________

* = uninterupted + = waiting

The data

Proc * + 9 8

So far what I did was

push(@$run_stats_all, $run); push(@$unint_stats_all, $unint);

And I want to add those two by doing

would this part work?
my @proc = ([@$run_stats_all],[@$unit_stats_all]); push (@procdata, @proc);

And then use the following to create graph

$obj->createGraph( $input_file, $num_samples, 'Processe +s', 'proc_data', \@procdata, \@proclabels ),

the $obj is a module to create the graph which works on mpstat and iostat just not sure how to do vmstat

I just want to know if that code up there would work or would it get messy and mess it up?

It was easier on mpstat and iostat because mpstat has CPU and iostat has sda devices

THANKS IN ADVANCE!

P.S. I am still very bad doing perl... so if it doesn't add up at all I apologize. Trying to improve my troubleshooting / critical thinking skills while doing these kinds of codes


In reply to Graph with VMstat output by Jabox

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found