[PVE-User] Proxmox IO graphs
Dietmar Maurer
dietmar at proxmox.com
Sat Feb 1 08:10:57 CET 2014
> Can you give me a brief explanation about how you are gathering the per vm
> stats? Maybe I can figure out what is wrong with the cacti setup?
>
We directly query the kvm process using the 'query-blockstats' qmp command:
----------------------
#!/usr/bin/perl
use strict;
use warnings;
use PVE::QMPClient;
use Data::Dumper;
my $vmid = shift || die "no VMID specified\n";
my $qmpclient = PVE::QMPClient->new();
my $res = $qmpclient->cmd($vmid, { execute => 'query-blockstats'});
print Dumper($res);
------------------
More information about the pve-user
mailing list