[pve-devel] [PATCH qemu-server 2/2] Change rrd key in rrd path

Tobias Böhm tb at robhost.de
Mon Jun 19 12:10:00 CEST 2017


RRD data is stored in a new directory. In order to get use this new key
in the request to rrdcached.

Signed-off-by: Tobias Böhm <tb at robhost.de>
---
 PVE/API2/Qemu.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 76fd0e4..b844926 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -684,7 +684,7 @@ __PACKAGE__->register_method({
 	my ($param) = @_;
 
 	return PVE::Cluster::create_rrd_graph(
-	    "pve2-vm/$param->{vmid}", $param->{timeframe},
+	    "pve5.0-vm/$param->{vmid}", $param->{timeframe},
 	    $param->{ds}, $param->{cf});
 
     }});
@@ -727,7 +727,7 @@ __PACKAGE__->register_method({
 	my ($param) = @_;
 
 	return PVE::Cluster::create_rrd_data(
-	    "pve2-vm/$param->{vmid}", $param->{timeframe}, $param->{cf});
+	    "pve5.0-vm/$param->{vmid}", $param->{timeframe}, $param->{cf});
     }});
 
 
-- 
2.11.0




More information about the pve-devel mailing list