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 <t.lamprecht@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Alexey Kuzmin 2016-05-03 15:05:17 +02:00 committed by Dietmar Maurer
parent 9ed623a6d8
commit e9f581d4e1

View File

@ -102,7 +102,7 @@ sub write_graphite {
if ( ref $value eq 'HASH' ) { if ( ref $value eq 'HASH' ) {
write_graphite($carbon_socket, $value, $ctime, $path); write_graphite($carbon_socket, $value, $ctime, $path);
}else { }else {
$carbon_socket->send( "$path $value $ctime" ); $carbon_socket->send( "$path $value $ctime\n" );
} }
} }
$path = $oldpath; $path = $oldpath;