Support collecting dubbo thread pool metrics#382
Conversation
|
The meter plugin could be verified by the same way like tracing plugin. Meter and Logs are all supported actually. |
|
Plugin tests exist as well. We usually add docs with features. |
|
Thanks, test code will be add soon. |
|
The |
What do you mean separate test case? I can see one case for 2.5.x, and the other for 2.7.x. Do you mean 2.7.0-2.7.4 could pass the tests, but 2.7.5+ would fail due to the changes? |
|
Yes! There are many dubbo versions that make people crazy. |
For version compatibility, it is okay if they break something internally. We just need to choose the witness class or method(s) to identify versions(not actual version numbers, but different internal APIs) in the runtime. 4. Set up witnessClasses and/or witnessMethods if the instrumentation has to be activated in specific versions in If you have to rely on different versions to compile the plugin codes, we should provide two new plugins(dubbo-2.7.4-below-pool-metrics and dubbo-2.7.5-above-pool-metrics), but keep the original dubbo-2.7.x-plugin untouched for tracing only. Meanwhile, due to the witness class mechanism, you should be able to keep test scenarios as one. |
|
Thanks, let me check how to adapt 2.7.5+ first. |
|
Now the dubbo scenarios run well. There is a better class to enhance. We don't need the witness class and separate the plugins. Here are the brief changes:
Please take a look. :) |
b45114e to
81656b0
Compare
|
Could you share the screenshots about how this metric of pool likes like on the v9 UI? |
|
Please update the |
We forward the metrics to other storage in the backend and still use the v8 UI. I could configure the metrics in the v9 UI, it needs takes some time. |
It is fine your private usage is different. But please take some time to finish the steps for the community. |
|
Sure, I will finish it ASAP. |
…o also support 2.6.x
… scenario also support 2.6.x" This reverts commit d0108e1.
|
Yes, that is what I expected. |
|
Is there anything left before merging? At least one, the supported-list.md should be updated. |
The |
Feel free to send a pull request to the tool. I think this is easy to add. |
|
Well done, This plugin is exactly what I want🎉 |


Inspired by the implementation of
untow_thread_poolat issue#8433Now the
skywalking-javaagentcould collect the Dubbo thread pool metrics. I tested it withdubbo-2.6.9anddubbo-2.7.4.1and ran it in our production environment with hundreds of applications, it works well.Dubbo could use telnet to get the thread pool status, this meter plugin is related to this telnet implementation.
Please take a look. Also, cause the e2e test is friendly for the trace plugin, rather than the meter plugin. There is no test code with this PR, I'm willing to add test code if there are some guidelines.
CHANGESlog.