New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable metric namespace #137

Merged
merged 15 commits into from Nov 25, 2012

Merge branch 'master' into configurable-metric-namespace

Conflicts:
	backends/graphite.js
	exampleConfig.js
  • Loading branch information...
mrtazz committed Sep 25, 2012
commit d9fa4c0574baa6b7ef316086299b514934a3ed67
View
@@ -157,6 +157,11 @@ var flush_stats = function graphite_flush(ts, metrics) {
numStats += 1;
}
for (key in sets) {
statString += 'stats.sets.' + key + '.count ' + sets[key].values().length + ' ' + ts + "\n";
numStats += 1;
}
var namespace = globalNamespace.concat('statsd');
statString += namespace.join(".") + '.numStats ' + numStats + ' ' + ts + "\n";
statString += namespace.join(".") + '.graphiteStats.calculationtime ' + (Date.now() - starttime) + ' ' + ts + "\n";
View
@@ -49,6 +49,12 @@ Optional Variables:
prefixCounter: graphite prefix for counter metrics [default: "counters"]
prefixTimer: graphite prefix for timer metrics [default: "timers"]
prefixGauge: graphite prefix for gauge metrics [default: "gauges"]
repeater: an array of hashes of the for host: and port:
that details other statsd servers to which the received
packets should be "repeated" (duplicated to).
e.g. [ { host: '10.10.10.10', port: 8125 },
{ host: 'observer', port: 88125 } ]
*/
{
graphitePort: 2003
You are viewing a condensed version of this merge commit. You can view the full changes here.
ProTip! Use n and p to navigate between commits in a pull request.