Uh oh!
There was an error while loading. Please reload this page.
[SPARK-21195] Automatically register new metrics from sources and wire default registry - #18406
[SPARK-21195] Automatically register new metrics from sources and wire default registry#18406robert3005 wants to merge 3 commits into
Conversation
jiangxb1987
commented
Jun 24, 2017
ok to test |
ash211
commented
Jun 26, 2017
Jenkins this is ok to test |
SparkQA
commented
Jun 26, 2017
Test build #78649 has finished for PR 18406 at commit
|
ash211
commented
Jun 26, 2017
@robert3005 looks like a bunch of tests are failing with |
jerryshao
commented
Jun 27, 2017
@robert3005 would you please elaborate the usage scenario of your proposal, AFAIK Spark internally doesn't have such requirement. |
1457cdf to
36e7572CompareSparkQA
commented
Jun 27, 2017
Test build #78696 has finished for PR 18406 at commit
|
robert3005
commented
Jun 27, 2017
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
71c5491CompareSparkQA
commented
Jun 27, 2017
Test build #78721 has finished for PR 18406 at commit
|
SparkQA
commented
Jun 28, 2017
Test build #78726 has finished for PR 18406 at commit
|
fcd72c1 to
5108ba2Comparejerryshao
commented
Jun 28, 2017
@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? |
robert3005
commented
Jun 28, 2017
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 |
jerryshao
commented
Jun 28, 2017
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? |
SparkQA
commented
Jun 28, 2017
Test build #78735 has finished for PR 18406 at commit
|
robert3005
commented
Nov 6, 2017
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 |
robert3005
commented
Nov 6, 2017
@jerryshao sorry I missed your comment. Somehow didn't get notification for it |
5108ba2 to
cee5de7CompareSparkQA
commented
Nov 6, 2017
Test build #83488 has finished for PR 18406 at commit
|
cee5de7 to
21135f2CompareSparkQA
commented
Mar 30, 2018
Test build #88730 has finished for PR 18406 at commit
|
AmplabJenkins
commented
Sep 16, 2019
Can one of the admins verify this patch? |
21135f2 to
ecbd70bCompareWe'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