summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-12-10 06:02:55 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-12-10 06:02:55 -0600
commitcb99d15eaed14ff33ff5e57768d70e5f9b15ddeb (patch)
tree06e02c0af19fdb2b7685a940c63b4986f933e16c
parent259fa9c901fd10b090d11786a66c4ddfc0bbf346 (diff)
parent5790700497972687dd79567acd89b27c90a86a22 (diff)
Merge "res_chan_stats: Fix bug to send correct statistics to StatsD"
-rw-r--r--res/res_chan_stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_chan_stats.c b/res/res_chan_stats.c
index 8b188dc13..dfca39a8b 100644
--- a/res/res_chan_stats.c
+++ b/res/res_chan_stats.c
@@ -111,7 +111,7 @@ static void updates(void *data, struct stasis_subscription *sub,
if (!update->old_snapshot && update->new_snapshot) {
/* Initial cache entry; count a channel creation */
- ast_statsd_log("channels.count", AST_STATSD_COUNTER, 1);
+ ast_statsd_log_string("channels.count", AST_STATSD_GAUGE, "+1", 1.0);
} else if (update->old_snapshot && !update->new_snapshot) {
/* Cache entry removed. Compute the age of the channel and post
* that, as well as decrementing the channel count.
@@ -125,7 +125,7 @@ static void updates(void *data, struct stasis_subscription *sub,
ast_statsd_log("channels.calltime", AST_STATSD_TIMER, age);
/* And decrement the channel count */
- ast_statsd_log("channels.count", AST_STATSD_COUNTER, -1);
+ ast_statsd_log_string("channels.count", AST_STATSD_GAUGE, "-1", 1.0);
}
}