Skip to content

Conversation

@unsleepy22
Copy link

This PR is under STORM-1590, I changed nimbus.clj only currently and would like to hear your opinion first before moving on.

@SuppressWarnings("unchecked")
public class StormMetricsRegistry {
private static final Logger LOG = LoggerFactory.getLogger(StormMetricsRegistry.class);
private static final MetricRegistry metrics = new MetricRegistry();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just make this public and rename it to DEFAULT_REGISTRY. We can still use the helper methods, but they are not as critical.

Copy link
Author

Choose a reason for hiding this comment

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

Sure, will change

@revans2
Copy link
Contributor

revans2 commented Mar 1, 2016

One minor comment. I am +1 either way.

卫乐 added 2 commits March 2, 2016 11:56
2. change register-metrics-reporter/reporters in common to java
@unsleepy22
Copy link
Author

@revans2 changed according to your comments, also changed all the other files. start-metrics-reporters in common.clj is changed to java too. Please help review again.

@unsleepy22 unsleepy22 changed the title port defmeters/defgauge/defhistogram... to java for all of our code to use [STORM-1590] port defmeters/defgauge/defhistogram... to java for all of our code to use Mar 2, 2016
@abhishekagarwal87
Copy link
Contributor

@revans2 @unsleepy22 - can we use (.) as separator instead of (:) in the metric names? Reason being that graphite and possibly other systems recognize dot as a separator but not (:)? It need not be done in this PR itself. I can make those changes in a separate PR.

@revans2
Copy link
Contributor

revans2 commented Mar 2, 2016

@abhishekagarwal87 I would be fine with a change like that. Please file a JIRA for it and we can make the change everywhere.

@hustfxj
Copy link
Contributor

hustfxj commented Mar 4, 2016

@unsleepy22 thank you +1

@unsleepy22
Copy link
Author

@revans2 could you take a look?

@revans2
Copy link
Contributor

revans2 commented Mar 7, 2016

+1 looks good to me

@asfgit asfgit merged commit 6bcdac3 into apache:master Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants