From e9f581d4e15f949c038c723ad99ee5eb40c5657c Mon Sep 17 00:00:00 2001 From: Alexey Kuzmin Date: Tue, 3 May 2016 15:05:17 +0200 Subject: [PATCH] Status/Graphite: fix carbon protocol Carbon (particularly carbon-c-relay) expects one metric per line. Current PVE implementation breaks this rule. Committed-by: Thomas Lamprecht Signed-off-by: Thomas Lamprecht --- PVE/Status/Graphite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Status/Graphite.pm b/PVE/Status/Graphite.pm index b7449689..407903b2 100644 --- a/PVE/Status/Graphite.pm +++ b/PVE/Status/Graphite.pm @@ -102,7 +102,7 @@ sub write_graphite { if ( ref $value eq 'HASH' ) { write_graphite($carbon_socket, $value, $ctime, $path); }else { - $carbon_socket->send( "$path $value $ctime" ); + $carbon_socket->send( "$path $value $ctime\n" ); } } $path = $oldpath;