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

Tobias Böhm tb at robhost.de
Mon Jun 19 12:10:11 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>
---
 src/PVE/API2/LXC.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 2e116d8..a23cdf8 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -520,7 +520,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});
 
     }});
@@ -563,7 +563,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});
     }});
 
 __PACKAGE__->register_method({
-- 
2.11.0




More information about the pve-devel mailing list