[Improvement][Metrics] Apply micrometer naming convention to metrics#10477
[Improvement][Metrics] Apply micrometer naming convention to metrics#10477ruanwenjun merged 4 commits intoapache:devfrom
Conversation
|
Could u plz take a look when you have time? @ruanwenjun Thx~ |
| 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.
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.
Sure, will remove system, since it might cause some ambiguities with jvm / network level stuff.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #10477 +/- ##
============================================
- Coverage 40.86% 40.85% -0.02%
+ Complexity 4849 4846 -3
============================================
Files 886 886
Lines 36009 36029 +20
Branches 3994 3999 +5
============================================
+ Hits 14716 14718 +2
- Misses 19835 19852 +17
- Partials 1458 1459 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kezhenxu94
left a comment
There was a problem hiding this comment.
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.
| - 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! |
…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
Grafanademo dashboards are updated correspondingly.Verify this pull request
Verified by manual test.