-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-21195] Automatically register new metrics from sources and wire default registry #18406
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
Conversation
|
ok to test |
|
Jenkins this is ok to test |
|
Test build #78649 has finished for PR 18406 at commit
|
|
@robert3005 looks like a bunch of tests are failing with |
|
@robert3005 would you please elaborate the usage scenario of your proposal, AFAIK Spark internally doesn't have such requirement. |
1457cdf to
36e7572
Compare
|
Test build #78696 has finished for PR 18406 at commit
|
|
This is to facilitate using metrics in libraries that integrate in spark. Since spark already has metric reporting infrastructure and lets you register sources with it it seems natural extension to not require preregistering metrics. I am using instrumentation libraries to create metrics and those can register metrics lazily when necessary |
36e7572 to
71c5491
Compare
|
Test build #78721 has finished for PR 18406 at commit
|
|
Test build #78726 has finished for PR 18406 at commit
|
fcd72c1 to
5108ba2
Compare
|
@robert3005 based on your description, this feature is more like your own customized requirement, not Spark itself. I'm wondering can it be worked out of Spark? |
|
I don't see how this can be worked out. Let's say I am parquet and I want to register my metrics since they're part of application execution. Right now I have to statically define all metrics upfront which is a lot of unnecessary boilerplate |
|
So the key point is that should metrics system understand dynamic registered metrics, am I understanding right? If the registered metrics are static ones, then I think current code should be enough to work? |
|
Test build #78735 has finished for PR 18406 at commit
|
|
Yes, the key point is to register dynamic metrics since enumerating all of them can be a lot of hassle and needs to be kept in sync with external libraries |
|
@jerryshao sorry I missed your comment. Somehow didn't get notification for it |
5108ba2 to
cee5de7
Compare
|
Test build #83488 has finished for PR 18406 at commit
|
cee5de7 to
21135f2
Compare
|
Test build #88730 has finished for PR 18406 at commit
|
|
Can one of the admins verify this patch? |
21135f2 to
ecbd70b
Compare
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
What changes were proposed in this pull request?
Registers metric listeners on sources metrics that forward actions to metricssystem metric registry. Hooks into default metric registry for easier integration with non spark specific libraries
How was this patch tested?
Added tests