From 630be0c8147db5d104fcc5ac6674d2a42d925159 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 16 May 2022 13:14:32 -0400 Subject: [PATCH] Fix missing newline in Graphite msg serialization thanks to @mcesaro in https://github.com/xandkar/beam_stats/pull/27 --- src/beam_stats.app.src | 2 +- src/beam_stats_msg_graphite.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/beam_stats.app.src b/src/beam_stats.app.src index 5153c60..0297909 100644 --- a/src/beam_stats.app.src +++ b/src/beam_stats.app.src @@ -1,7 +1,7 @@ {application, beam_stats, [ {description, "Periodic VM stats production and consumption."}, - {vsn, "1.0.1"}, + {vsn, "1.0.2"}, {registered, []}, {applications, [ kernel diff --git a/src/beam_stats_msg_graphite.erl b/src/beam_stats_msg_graphite.erl index 73b770c..159900e 100644 --- a/src/beam_stats_msg_graphite.erl +++ b/src/beam_stats_msg_graphite.erl @@ -78,7 +78,7 @@ to_iolist( ValueBin = integer_to_binary(Value), TimestampInt = timestamp_to_integer(Timestamp), TimestampBin = integer_to_binary(TimestampInt), - [PathIOList, <<" ">>, ValueBin, <<" ">>, TimestampBin]. + [PathIOList, <<" ">>, ValueBin, <<" ">>, TimestampBin, <<"\n">>]. -spec path_to_iolist([binary()]) -> iolist(). -- 2.20.1