-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-25050][docs-zh] Translate "Metrics" page of "Operations" into Chinese #17902
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
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 8a398a4 (Thu Nov 25 07:10:24 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
|
@RocMarshal Hi, can you review it? thanks |
RocMarshal
left a comment
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.
@ZhijieYang Thanks for the contribution.
I left some comments before line 397, hoping it will help you advance this PR.
| ## 指标类型 | ||
|
|
||
| Flink supports `Counters`, `Gauges`, `Histograms` and `Meters`. | ||
| Flink 支持计数器 `Counters`,量表 `Gauges`,直方图 `Histogram` 和仪表 `Meters`。 |
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.
计数器,量表,直方图 和仪表 -> What about keeping original content?
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.
| Flink 公开了一个指标系统,允许收集和公开指标给外部系统。 | ||
|
|
||
| ## Registering metrics | ||
| ## 注册指标 |
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.
missing link tag ?
The same case should be noted below.
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.
sorry, I can't find the link here, what's your mean?
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.
<a name="tegistering-metrics"></a>
You will get more relevant information in the translation part of the official documents.
| 此方法返回一个 `MetricGroup` 对象,你可以在该对象上创建和注册新指标。 | ||
|
|
||
| ### Metric types | ||
| ## 指标类型 |
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.
reduce a '#' ?
Could you give a explain for the chage ?
Glad to see the reason.
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.
|
|
||
| A `Histogram` measures the distribution of long values. | ||
| You can register one by calling `histogram(String name, Histogram histogram)` on a `MetricGroup`. | ||
| 直方图 `Histogram` 测量长值的分布。 |
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.
Maybe you could do it in a better way.
|
|
||
| A `Meter` measures an average throughput. An occurrence of an event can be registered with the `markEvent()` method. Occurrence of multiple events at the same time can be registered with `markEvent(long n)` method. | ||
| You can register a meter by calling `meter(String name, Meter meter)` on a `MetricGroup`. | ||
| 仪表 `Meter` 测量的是平均吞吐量。一个事件的发生率可以用 `markEvent()` 方法来注册。多个事件的发生率可以用 `markEvent(long n)` 方法注册。 |
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.
Here's a little odd.
You could consider free translation, not just literal translation.
docs/content.zh/docs/ops/metrics.md
Outdated
| Flink 提供了一个 | ||
| {{<gh_link file="flink-metrics/flink-metrics-dropwizard/src/main/java/org/apache/flink/dropwizard/metrics/DropwizardMeterWrapper.java" name="Wrapper">}} | ||
| ,允许使用 Codahale/DropWizard 仪表。 | ||
| 要使用此仪表,请在你的 `pom.xml` 中添加: |
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.
Same as mentioned above.
603f6ad to
e11b913
Compare
RocMarshal
left a comment
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.
Hi, @ZhijieYang Would you mind checking the conflicts before the next review ? Thanks a lot.
|
This PR is being marked as stale since it has not had any activity in the last 180 days. If you are having difficulty finding a reviewer, please reach out to the [community](https://flink.apache.org/what-is-flink/community/). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 90 days, it will be automatically closed. |
|
This PR has been closed since it has not had any activity in 120 days. |



What is the purpose of the change
Translate "Metrics" page of "Operations" into Chinese
Brief change log
Translate "Metrics" page of "Operations" into Chinese
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation