Skip to content
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

Merged
merged 1 commit into from
Oct 5, 2015

Conversation

kesutton
Copy link

#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.

@@ -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)
Copy link
Member

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)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update

@mreiferson
Copy link
Member

@jehiah what do you think?

@mreiferson
Copy link
Member

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 : '*');
Copy link
Member

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?

@mreiferson
Copy link
Member

I think this LGTM other than the minor comment, thanks!

@mreiferson mreiferson changed the title nsqadmin: added conf flags for formatting statsd counters and gauges nsqadmin: conf flags for formatting statsd counters and gauges Oct 4, 2015
@kesutton
Copy link
Author

kesutton commented Oct 5, 2015

I will fix the comment. Did you guys come to a decision about the avlue of keeping legacy functionality that was already broken?

@mreiferson
Copy link
Member

I'm OK with it.

@mreiferson
Copy link
Member

Want to rebase/squash?

@kesutton
Copy link
Author

kesutton commented Oct 5, 2015

squashed and rebased on latest

@mreiferson
Copy link
Member

thanks

mreiferson added a commit that referenced this pull request Oct 5, 2015
nsqadmin: conf flags for formatting statsd counters and gauges
@mreiferson mreiferson merged commit 6650ee3 into nsqio:master Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants