Skip to content

Commit

Permalink
Revert "Switched StatsD to counter."
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brixen committed Jun 24, 2015
1 parent 1008e18 commit 5d830a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/metrics.cpp
Expand Up @@ -196,7 +196,7 @@ namespace rubinius {
i != metrics_map_.end();
++i)
{
snprintf(buf, RBX_METRICS_STATSD_BUFLEN, "%s%s:%lld|c",
snprintf(buf, RBX_METRICS_STATSD_BUFLEN, "%s%s:%lld|g",
prefix_.c_str(), (*i)->first.c_str(), (long long unsigned int)(*i)->second);
if(send(socket_fd_, buf, strlen(buf), 0) < 0) {
logger::error("%s: unable to send StatsD metrics", strerror(errno));
Expand Down

0 comments on commit 5d830a5

Please sign in to comment.