-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqadmin: conf flags for formatting statsd counters and gauges #662
Conversation
@@ -12,6 +12,6 @@ Read the [docs](http://nsq.io/components/nsqadmin.html) | |||
3. `$ gulp clean watch` or `$ gulp clean build` | |||
4. `$ go-bindata --debug --pkg=nsqadmin --prefix=static/build static/build/...` | |||
5. `$ cd ../nsqadmin && go build && ./nsqadmin` | |||
6. make changes | |||
6. make changes (and repeat steps 4 and 5 to see changes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't always true (specifically, it's only true when you're making changes to the Go code of nsqadmin
). Another way of communicating this is to say (repeat step 5 if you make changes to any Go code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update
@jehiah what do you think? |
also, thanks for putting this together @kesutton! |
@@ -53,16 +72,19 @@ var genColorList = function(typ, key) { | |||
|
|||
var genTargets = function(typ, node, ns1, ns2, key) { | |||
var targets = []; | |||
var prefix = statsdPrefix(node ? node : '*', metricType(key)); | |||
var nsqPrefix = nsqStatsdPrefix(node ? node : '*'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style nitpick, can we drop the nsq
on these variable/function names?
I think this LGTM other than the minor comment, thanks! |
I will fix the comment. Did you guys come to a decision about the avlue of keeping legacy functionality that was already broken? |
I'm OK with it. |
Want to rebase/squash? |
squashed and rebased on latest |
thanks |
nsqadmin: conf flags for formatting statsd counters and gauges
#661
I want to reiterate that because there was a bug where the "use-statsd-prefixes" flag was not actually passed to nsqadmin, and thus useless, now would be the best time to eliminate that flag. Unless it worked in the past, in which case I understand backwards compatibility.