summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-02-05 15:02:03 +0000
committerSteve Kemp <steve@steve.org.uk>2015-02-05 15:02:03 +0000
commit6965d06ef960e5778ab4ea457d3f5882849125df (patch)
tree4a1df4f4a227b86a3efc7d5acada088978e63cb2
parent53d05cbb28f0ef3dc0098809c4602a640f6ac920 (diff)
Better alerting metric for graphite.
We now record: custodian.$type.$host.test_duration [time]
-rw-r--r--lib/custodian/alerts/graphite.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/custodian/alerts/graphite.rb b/lib/custodian/alerts/graphite.rb
index 761b839..2cd369a 100644
--- a/lib/custodian/alerts/graphite.rb
+++ b/lib/custodian/alerts/graphite.rb
@@ -58,8 +58,7 @@ module Custodian
#
# The payload
#
- str = "#{test}.#{host}"
- payload = "monitor.#{str} #{ms} #{Time.now.to_i}"
+ payload = "custodian.#{test}.#{host}.test_duration #{ms} #{Time.now.to_i}"
#
# Send via UDP.