-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Improvement][Metrics] Apply micrometer naming convention to metrics #10477
Conversation
Could u plz take a look when you have time? @ruanwenjun Thx~ |
.register(Metrics.globalRegistry); | ||
|
||
private static final Counter WORKER_SUBMIT_QUEUE_IS_FULL_COUNTER = | ||
Counter.builder("dolphinscheduler_worker_submit_queue_is_full_count") | ||
.description("worker task submit queue is full count") | ||
Counter.builder("ds.system.worker.full.submit.queue.count") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about remove the system?
Counter.builder("ds.system.worker.full.submit.queue.count") | |
Counter.builder("ds.worker.full.submit.queue.count") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will remove system
, since it might cause some ambiguities with jvm / network level stuff.
Codecov Report
@@ Coverage Diff @@
## dev #10477 +/- ##
============================================
- Coverage 40.86% 40.85% -0.01%
+ Complexity 4849 4848 -1
============================================
Files 886 886
Lines 36009 36032 +23
Branches 3994 3998 +4
============================================
+ Hits 14716 14722 +6
- Misses 19835 19850 +15
- Partials 1458 1460 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a way to unify the formats of customize metrics as well as default metrics (like jvm_gc_pause_seconds_max
, etc.)? Otherwise the defaults still don't follow the micrometer naming convention.
@kezhenxu94 Thanks for pointing this out. Actually those default metrics DO follow the naming convention. If we check |
Nice if that's the case! LGTM |
@kezhenxu94 Somehow I just couldn't fall asleep last night. So I got up very early this morning, wrote some code and docs, committed and pushed them to find some peace and went to bed again. Haven't finished it yet, lol. I will complete this PR later today. 🤣 |
at `dolphinscheduler-meter/resources/grafana`, you can directly import these dashboards to grafana. | ||
|
||
If you want to try at docker, you can use the following command to start the prometheus with grafana: | ||
- We enable Apache DolphinScheduler export metrics in `standalone` mode to help users get hands dirty easily. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We enable Apache DolphinScheduler export metrics in `standalone` mode to help users get hands dirty easily. | |
- We enable Apache DolphinScheduler to export metrics in `standalone` mode to help users get hands dirty easily. |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
…pache#10477) * Apply micrometer naming convention to worker metrics * Apply micrometer naming convention all current metrics * Fix remaining metrics names, update English docs and add Chinese docs * Fix metrics names in grafana-demo dashboards
Purpose of the pull request
Brief change log
Grafana
demo dashboards are updated correspondingly.Verify this pull request
Verified by manual test.