Skip to content

Commit 5d830a5

Browse files
committedJun 24, 2015
Revert "Switched StatsD to counter."
This reverts commit 590ebfa. We implement the metrics internally as counters but want StatsD to accept whatever value we emit without summing it, so we designate the metrics as gauges.
1 parent 1008e18 commit 5d830a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎vm/metrics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ namespace rubinius {
196196
i != metrics_map_.end();
197197
++i)
198198
{
199-
snprintf(buf, RBX_METRICS_STATSD_BUFLEN, "%s%s:%lld|c",
199+
snprintf(buf, RBX_METRICS_STATSD_BUFLEN, "%s%s:%lld|g",
200200
prefix_.c_str(), (*i)->first.c_str(), (long long unsigned int)(*i)->second);
201201
if(send(socket_fd_, buf, strlen(buf), 0) < 0) {
202202
logger::error("%s: unable to send StatsD metrics", strerror(errno));

0 commit comments

Comments
 (0)
Please sign in to comment.