From 23d003cf616ccfe563923bf354912645edc2b54c Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 20 Sep 2017 11:02:39 +0300 Subject: Always ensure we send a trailing \n to graphite. This is required for the metrics to be submitted correctly. --- lib/custodian/alerts/graphite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/alerts') diff --git a/lib/custodian/alerts/graphite.rb b/lib/custodian/alerts/graphite.rb index cca5ece..4fddf0d 100644 --- a/lib/custodian/alerts/graphite.rb +++ b/lib/custodian/alerts/graphite.rb @@ -59,7 +59,7 @@ module Custodian # # The payload # - payload = "custodian.#{test}.#{host}.test_duration_ms #{ms} #{Time.now.to_i}" + payload = "custodian.#{test}.#{host}.test_duration_ms #{ms} #{Time.now.to_i}\n" # # Send metrics via TCP. -- cgit v1.2.1