Skip to content

Commit

Permalink
contrib/collection.cgi: Add graph definition for libvirt/virt_cpu_total
Browse files Browse the repository at this point in the history
  • Loading branch information
johnl committed Jan 7, 2009
1 parent 34c428c commit 52b0f42
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/collection.cgi
Expand Up @@ -2612,13 +2612,28 @@ sub load_graph_definitions
'GPRINT:max:MAX:%4.1lf Max,',
'GPRINT:avg:LAST:%4.1lf Last\l'
],
virt_cpu_total => ['-v', 'Milliseconds',
'DEF:avg_raw={file}:ns:AVERAGE',
'DEF:min_raw={file}:ns:MIN',
'DEF:max_raw={file}:ns:MAX',
'CDEF:avg=avg_raw,1000000,/',
'CDEF:min=min_raw,1000000,/',
'CDEF:max=max_raw,1000000,/',
"AREA:avg#$HalfBlue",
"LINE1:avg#$FullBlue:CPU time",
'GPRINT:min:MIN:%4.1lf Min,',
'GPRINT:avg:AVERAGE:%4.1lf Avg,',
'GPRINT:max:MAX:%4.1lf Max,',
'GPRINT:avg:LAST:%4.1lf Last\l'
],
};
$GraphDefs->{'if_multicast'} = $GraphDefs->{'ipt_packets'};
$GraphDefs->{'if_tx_errors'} = $GraphDefs->{'if_rx_errors'};
$GraphDefs->{'dns_qtype'} = $GraphDefs->{'dns_opcode'};
$GraphDefs->{'dns_rcode'} = $GraphDefs->{'dns_opcode'};
$GraphDefs->{'vmpage_io-memory'} = $GraphDefs->{'vmpage_io'};
$GraphDefs->{'vmpage_io-swap'} = $GraphDefs->{'vmpage_io'};
$GraphDefs->{'virt_cpu_total'} = $GraphDefs->{'virt_cpu_total'};

$MetaGraphDefs->{'cpu'} = \&meta_graph_cpu;
$MetaGraphDefs->{'dns_qtype'} = \&meta_graph_dns;
Expand Down

0 comments on commit 52b0f42

Please sign in to comment.