diff --git a/apps/nsqadmin/main.go b/apps/nsqadmin/main.go index 328ac3527..9e3e63e0e 100644 --- a/apps/nsqadmin/main.go +++ b/apps/nsqadmin/main.go @@ -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)") diff --git a/nsqadmin/static/js/lib/handlebars_helpers.js b/nsqadmin/static/js/lib/handlebars_helpers.js index 78a1133a4..6e9bad311 100644 --- a/nsqadmin/static/js/lib/handlebars_helpers.js +++ b/nsqadmin/static/js/lib/handlebars_helpers.js @@ -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; }