Skip to content

Commit

Permalink
Merge pull request #656 from kesutton/master
Browse files Browse the repository at this point in the history
nsqadmin: Update statsd counters prefix from 'stats_counts' to 'stats.counters'
  • Loading branch information
mreiferson committed Sep 23, 2015
2 parents 2a8dab2 + abecbef commit 3799e8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/nsqadmin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
graphiteURL = flagSet.String("graphite-url", "", "graphite HTTP address")
proxyGraphite = flagSet.Bool("proxy-graphite", false, "proxy HTTP requests to graphite")

useStatsdPrefixes = flagSet.Bool("use-statsd-prefixes", true, "expect statsd prefixed keys in graphite (ie: 'stats_counts.')")
useStatsdPrefixes = flagSet.Bool("use-statsd-prefixes", true, "expect statsd prefixed keys in graphite (ie: 'stats.counters.' and 'stats.gauges.')")
statsdPrefix = flagSet.String("statsd-prefix", "nsq.%s", "prefix used for keys sent to statsd (%s for host replacement, must match nsqd)")
statsdInterval = flagSet.Duration("statsd-interval", 60*time.Second, "time interval nsqd is configured to push to statsd (must match nsqd)")

Expand Down
2 changes: 1 addition & 1 deletion nsqadmin/static/js/lib/handlebars_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var statsdPrefix = function(host, metricType) {
prefix += '.';
}
if (AppState.get('USE_STATSD_PREFIXES') && metricType === 'counter') {
prefix = 'stats_counts.' + prefix;
prefix = 'stats.counters.' + prefix;
} else if (AppState.get('USE_STATSD_PREFIXES') && metricType === 'gauge') {
prefix = 'stats.gauges.' + prefix;
}
Expand Down

0 comments on commit 3799e8a

Please sign in to comment.