From 14eb2a3436bada39499919ebaf9435b74a899c00 Mon Sep 17 00:00:00 2001 From: Ivan Blinkov Date: Thu, 24 May 2012 19:17:59 +0400 Subject: [PATCH] Metrics regrouping --- src/estatsd_server.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/estatsd_server.erl b/src/estatsd_server.erl index 675894c..b809dfd 100644 --- a/src/estatsd_server.erl +++ b/src/estatsd_server.erl @@ -161,11 +161,11 @@ do_report_counters(All, TsStr, State) -> KeyS = key2str(Key), Val = Val0 / (State#state.flush_interval/1000), %% Build stats string for graphite - Fragment = [ "stats.", KeyS, " ", + Fragment = [ "stats.counters.", KeyS, " ", io_lib:format("~w", [Val]), " ", TsStr, "\n", - "counts.", KeyS, " ", + "stats.counters.counts.", KeyS, " ", io_lib:format("~w",[NumVals]), " ", TsStr, "\n" ],