summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts/graphite.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2017-09-20 11:02:39 +0300
committerSteve Kemp <steve@steve.org.uk>2017-09-20 11:02:39 +0300
commit23d003cf616ccfe563923bf354912645edc2b54c (patch)
tree9a3d48e101edaf9bb3b45497181fa7fea800ada7 /lib/custodian/alerts/graphite.rb
parent5bfbf71c0b08647ca93460a2eda01f3221716003 (diff)
Always ensure we send a trailing \n to graphite.
This is required for the metrics to be submitted correctly.
Diffstat (limited to 'lib/custodian/alerts/graphite.rb')
-rw-r--r--lib/custodian/alerts/graphite.rb2
1 files changed, 1 insertions, 1 deletions
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.