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

Merge existing registry with default one or configure default metric registry #214

Merged
merged 2 commits into from
Jun 29, 2017

Conversation

robert3005
Copy link

Lets users plug into spark metrics via default metric registry

@robert3005
Copy link
Author

Will submit upstream together with codahale bump

@@ -79,6 +79,13 @@ private[spark] class MetricsSystem private (
private val sources = new mutable.ArrayBuffer[Source]
private val registry = new MetricRegistry()

try {
registry.registerAll(SharedMetricRegistries.getDefault)
Copy link

Choose a reason for hiding this comment

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

has the default shared metric registry had all the metrics already registered with it at this point in code execution? it looks like this is a one-time registration so metrics registered with the shared registry afterwards would not be added to Spark's registry

Copy link
Author

Choose a reason for hiding this comment

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

@ash211 added listeners to propagate metrics from sources and default registry. This should behave correctly or am I misunderstanding?

@robert3005
Copy link
Author

Created apache#18406 for upstream

@robert3005 robert3005 force-pushed the rk/default-registry branch 2 times, most recently from d434867 to d001540 Compare June 27, 2017 16:33
@robert3005 robert3005 merged commit 83f2b2d into master Jun 29, 2017
@robert3005 robert3005 deleted the rk/default-registry branch June 29, 2017 16:34
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.

2 participants