From: Siraaj Khandkar Date: Mon, 16 May 2022 17:14:32 +0000 (-0400) Subject: Fix missing newline in Graphite msg serialization X-Git-Tag: 1.0.2 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=beam_stats.git Fix missing newline in Graphite msg serialization thanks to @mcesaro in https://github.com/xandkar/beam_stats/pull/27 --- 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().