[pve-devel] [PATCH manager 2/2] Status/Graphite: fix carbon protocol
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue May 3 15:05:17 CEST 2016
From: Alexey Kuzmin <al.m.kuzmin at gmail.com>
Carbon (particularly carbon-c-relay) expects one metric per line.
Current PVE implementation breaks this rule.
Committed-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
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 b744968..407903b 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;
--
2.1.4
More information about the pve-devel
mailing list