You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "ShadowySpirits (via GitHub)" <gi...@apache.org> on 2023/03/06 12:31:12 UTC

[GitHub] [rocketmq-site] ShadowySpirits commented on a diff in pull request #525: Add RocketMQ 5.x metrics definition.

ShadowySpirits commented on code in PR #525:
URL: https://github.com/apache/rocketmq-site/pull/525#discussion_r1126321509


##########
i18n/en/docusaurus-plugin-content-docs/version-5.0/12-observability/01metrics.md:
##########
@@ -0,0 +1,102 @@
+# Metrics
+RocketMQ exposes the following metrics in Prometheus format. You can monitor your clusters with those metrics.
+
+- Broker metrics
+- Producer metrics
+- Consumer metrics
+
+
+## Details of metrics
+
+### Metric types
+The standard for defining metrics in RocketMQ complies with that for defining the metrics in open source Prometheus. The metric types that RocketMQ offers include counters, gauges, and histograms. For more information, see [METRIC TYPES](https://prometheus.io/docs/concepts/metric_types/).
+
+### Broker metrics
+The following table describes the labels of the metrics that are related to the Message Queue for Apache RocketMQ broker.
+
+- cluster: RocketMQ cluster name.
+- node_type: the type of service node, whitch includes the following:proxy,broker,nameserver.
+- node_id:the ID of the service node.
+- topic: the topic of RocketMQ.
+- message_type: the type of a message, which includes the following:<br />Normal:normal messages;<br />FIFO:ordered messages;<br />Transaction:Transactional messages;<br />Delay:scheduled or delayed messages.
+- consumer_group: the ID of the consumer group.
+
+| Type | Name | Unit | Description | Label |
+| --- | ----- | --- | ---------- | --- |
+| counter | rocketmq_messages_in_total | count | The number of messages that are produced. | cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_messages_out_total | count | The number of messages that are consumed. | cluster,node_type,node_id,topic, consumer_group|
+| counter | rocketmq_throughput_in_total | byte | The write throughput that are produced. | cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_throughput_out_total | byte | The read throughput that are produced. | cluster,node_type,node_id,topic, consumer_group|
+| histogram | rocketmq_message_size | byte | The distribution of message sizes. This metric is counted only when messages are sent. The following shows the distribution ranges:<br />le_1_kb: ≤ 1 KB<br /> le_4_kb: ≤ 4 KB<br />le_512_kb: ≤ 512 KB<br />le_1_mb: ≤ 1 MB<br />le_2_mb: ≤ 2 MB<br />le_4_mb: ≤ 4 MB<br />le_overflow: > 4 MB | cluster,node_type,node_id,topic,message_type |
+| gauge | rocketmq_consumer_ready_messages | count | The number of ready messages. | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_inflight_messages | count | The number of inflight messages. | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_queueing_latency | millisecond | Ready messages queueing delay time. | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_lag_latency | millisecond | The delayed time before messages are consumed. | cluster,node_type,node_id,topic, consumer_group |
+| counter | rocketmq_send_to_dlq_messages_total | count | The number of messages that are sent to the dead-letter queue. | cluster,node_type,node_id,topic, consumer_group |
+| histogram | rocketmq_rpc_latency | millisecond | The rpc call latency | cluster,node_typ,node_id,protocol_type,request_code,response_code |
+| gauge | rocketmq_storage_size | byte | The size of the storage space that is used by the node. | cluster,node_type,node_id |
+| counter | rocketmq_storage_read_bytes_total | byte | The amount of data read by the storage layer. | cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_read_bytes_max | byte | Peak data read per second of the storage layer. | cluster,node_type,node_id,topic |
+| counter | rocketmq_storage_write_bytes_total | byte | The amount of data write to the storage layer. | cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_write_bytes_max | byte | Peak data write per second to the storage layer. | cluster,node_type,node_id,topic |
+| Histogram | rocketmq_storage_write_latency | millisecond | The latency of messages sizes. This metric is counted only when messages are sent. The following shows the distribution ranges:<br />le_1_ns: ≤ 1 ns<br /> le_10_ns: ≤ 10 ns<br />le_100_ns: ≤ 100 ns<br />le_1000_ns: ≤ 1 ms<br />le_overflow: > 1 ms  | cluster,node_type,node_id,topic,message_type |
+| gauge | rocketmq_storage_message_reserve_time | millisecond | Message retention time. | cluster,node_type,node_id |
+| gauge | rocketmq_storage_dispatch_behind_bytes | byte | Undispatched message size. | cluster,node_type,node_id |
+| gauge | rocketmq_storage_flush_behind_bytes | byte | Unflushed messsage size. | cluster,node_type,node_id |
+| gauge | rocketmq_thread_pool_wartermark | count | The number of tasks queued in the thread pool. | cluster,node_type,node_id,name |
+
+
+
+### Producer metrics
+The following table describes the labels of the metrics that are related to the producers in Message Queue for Apache RocketMQ.
+
+- cluster: RocketMQ cluster name.
+- node_type: the type of service node, whitch includes the following:proxy,broker,nameserver.
+- node_id:the ID of the service node.
+- topic: the topic of Message Queue for Apache RocketMQ.
+- message_type: the type of a message, which includes the following:<br />Normal:normal messages;<br />FIFO:ordered messages;<br />Transaction:Transactional messages;<br />Delay:scheduled or delayed messages.

Review Comment:
   I think the value of label message_type is lowercase.
   
   https://github.com/apache/rocketmq/blob/c9975961f81292f62c2c47f9e58f64472653ea7e/common/src/main/java/org/apache/rocketmq/common/attribute/TopicMessageType.java#L60-L62



##########
i18n/en/docusaurus-plugin-content-docs/version-5.0/12-observability/01metrics.md:
##########
@@ -0,0 +1,102 @@
+# Metrics
+RocketMQ exposes the following metrics in Prometheus format. You can monitor your clusters with those metrics.
+
+- Broker metrics
+- Producer metrics
+- Consumer metrics
+
+
+## Details of metrics
+
+### Metric types
+The standard for defining metrics in RocketMQ complies with that for defining the metrics in open source Prometheus. The metric types that RocketMQ offers include counters, gauges, and histograms. For more information, see [METRIC TYPES](https://prometheus.io/docs/concepts/metric_types/).
+
+### Broker metrics
+The following table describes the labels of the metrics that are related to the Message Queue for Apache RocketMQ broker.
+
+- cluster: RocketMQ cluster name.
+- node_type: the type of service node, whitch includes the following:proxy,broker,nameserver.
+- node_id:the ID of the service node.
+- topic: the topic of RocketMQ.
+- message_type: the type of a message, which includes the following:<br />Normal:normal messages;<br />FIFO:ordered messages;<br />Transaction:Transactional messages;<br />Delay:scheduled or delayed messages.
+- consumer_group: the ID of the consumer group.
+
+| Type | Name | Unit | Description | Label |
+| --- | ----- | --- | ---------- | --- |
+| counter | rocketmq_messages_in_total | count | The number of messages that are produced. | cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_messages_out_total | count | The number of messages that are consumed. | cluster,node_type,node_id,topic, consumer_group|
+| counter | rocketmq_throughput_in_total | byte | The write throughput that are produced. | cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_throughput_out_total | byte | The read throughput that are produced. | cluster,node_type,node_id,topic, consumer_group|
+| histogram | rocketmq_message_size | byte | The distribution of message sizes. This metric is counted only when messages are sent. The following shows the distribution ranges:<br />le_1_kb: ≤ 1 KB<br /> le_4_kb: ≤ 4 KB<br />le_512_kb: ≤ 512 KB<br />le_1_mb: ≤ 1 MB<br />le_2_mb: ≤ 2 MB<br />le_4_mb: ≤ 4 MB<br />le_overflow: > 4 MB | cluster,node_type,node_id,topic,message_type |
+| gauge | rocketmq_consumer_ready_messages | count | The number of ready messages. | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_inflight_messages | count | The number of inflight messages. | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_queueing_latency | millisecond | Ready messages queueing delay time. | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_lag_latency | millisecond | The delayed time before messages are consumed. | cluster,node_type,node_id,topic, consumer_group |
+| counter | rocketmq_send_to_dlq_messages_total | count | The number of messages that are sent to the dead-letter queue. | cluster,node_type,node_id,topic, consumer_group |
+| histogram | rocketmq_rpc_latency | millisecond | The rpc call latency | cluster,node_typ,node_id,protocol_type,request_code,response_code |
+| gauge | rocketmq_storage_size | byte | The size of the storage space that is used by the node. | cluster,node_type,node_id |
+| counter | rocketmq_storage_read_bytes_total | byte | The amount of data read by the storage layer. | cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_read_bytes_max | byte | Peak data read per second of the storage layer. | cluster,node_type,node_id,topic |
+| counter | rocketmq_storage_write_bytes_total | byte | The amount of data write to the storage layer. | cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_write_bytes_max | byte | Peak data write per second to the storage layer. | cluster,node_type,node_id,topic |
+| Histogram | rocketmq_storage_write_latency | millisecond | The latency of messages sizes. This metric is counted only when messages are sent. The following shows the distribution ranges:<br />le_1_ns: ≤ 1 ns<br /> le_10_ns: ≤ 10 ns<br />le_100_ns: ≤ 100 ns<br />le_1000_ns: ≤ 1 ms<br />le_overflow: > 1 ms  | cluster,node_type,node_id,topic,message_type |
+| gauge | rocketmq_storage_message_reserve_time | millisecond | Message retention time. | cluster,node_type,node_id |
+| gauge | rocketmq_storage_dispatch_behind_bytes | byte | Undispatched message size. | cluster,node_type,node_id |
+| gauge | rocketmq_storage_flush_behind_bytes | byte | Unflushed messsage size. | cluster,node_type,node_id |
+| gauge | rocketmq_thread_pool_wartermark | count | The number of tasks queued in the thread pool. | cluster,node_type,node_id,name |
+
+
+
+### Producer metrics
+The following table describes the labels of the metrics that are related to the producers in Message Queue for Apache RocketMQ.
+
+- cluster: RocketMQ cluster name.
+- node_type: the type of service node, whitch includes the following:proxy,broker,nameserver.
+- node_id:the ID of the service node.

Review Comment:
   Ditto.



##########
versioned_docs/version-5.0/12-observability/01metrics.md:
##########
@@ -0,0 +1,100 @@
+# Metrics
+RocketMQ以Prometheus格式公开以下指标。您可以使用这些指标监视您的集群。
+
+- 服务端Metrics指标
+- 生产者Metrics指标
+- 消费者Metrics指标
+
+
+## Metrics指标详情
+
+### Metric types
+消息队列RocketMQ版定义的Metrics完全兼容开源Prometheus的标准,提供的Metrics的类型为Counter、Gauge和Histogram。更多信息,请参见 [METRIC TYPES](https://prometheus.io/docs/concepts/metric_types/)。
+
+### 服务端Metrics指标
+消息队列RocketMQ版服务端相关Metrics指标中Label的说明如下:
+- cluster: RocketMQ 集群名称。
+- node_type: 服务节点类型。枚举值包含proxy、broker、nameserver。
+- node_id: 服务节点ID。
+- topic: 消息队列RocketMQ的主题。
+- message_type: 消息类型。有以下类型:<br />Normal:普通消息;<br />FIFO:顺序消息;<br />Transaction:事务消息;<br />Delay:定时/延时消息.
+- consumer_group: 消费者 ID。
+
+| Metrics类型 | Metrics name | 单位 | 指标说明 | Label |
+| --- | ----- | --- | ---------- | --- |
+| counter | rocketmq_messages_in_total | count | 消息生产数量。| cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_messages_out_total | count | 消息消费数量。| cluster,node_type,node_id,topic, consumer_group|
+| counter | rocketmq_throughput_in_total | byte | 消息生产流入服务端的吞吐量。| cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_throughput_out_total | byte | 消息消费从服务端流出的吞吐量。| cluster,node_type,node_id,topic, consumer_group|
+| histogram | rocketmq_message_size | byte | 消息大小的分布情况,发送成功时统计。分布区间如下:<br />le_1_kb: ≤ 1 KB<br /> le_4_kb: ≤ 4 KB<br />le_512_kb: ≤ 512 KB<br />le_1_mb: ≤ 1 MB<br />le_2_mb: ≤ 2 MB<br />le_4_mb: ≤ 4 MB<br />le_overflow: > 4 MB | cluster,node_type,node_id,topic,message_type |
+| gauge | rocketmq_consumer_ready_messages | count | 已就绪消息量。| cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_inflight_messages | count | 处理中消息量。| cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_queueing_latency | millisecond | 已就绪消息排队延迟时间。 | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_lag_latency | millisecond | 消费处理延迟时间。 | cluster,node_type,node_id,topic, consumer_group |
+| counter | rocketmq_send_to_dlq_messages_total | count | 转为死信状态的消息量。(变成死信状态指的是消息达到最大重投次数后不再投递) | cluster,node_type,node_id,topic, consumer_group |
+| histogram | rocketmq_rpc_latency | millisecond | rpc 调用耗时:<br />le_1_ms<br />le_3_ms<br />le_5_ms<br />le_10_ms<br />le_100_ms<br />le_1_s<br />le_3_s<br />le_overflow | cluster,node_typ,node_id,protocol_type,request_code,response_code |
+| gauge | rocketmq_storage_size | byte | 存储大小,包含所有文件。| cluster,node_type,node_id |
+| counter | rocketmq_storage_read_bytes_total | byte | 储存层读取数据量。 | cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_read_bytes_max | byte | 储存层每秒读取数据量峰值。 | cluster,node_type,node_id,topic |
+| counter | rocketmq_storage_write_bytes_total | byte | 储存层写入数据量。| cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_write_bytes_max | byte | 储存层每秒写入数据量峰值。  | cluster,node_type,node_id,topic |
+| Histogram | rocketmq_storage_write_latency | millisecond | 储存层写入消息耗时:<br />le_1_ns: ≤ 1 ns<br /> le_10_ns: ≤ 10 ns<br />le_100_ns: ≤ 100 ns<br />le_1000_ns: ≤ 1 ms<br />le_overflow: > 1 ms | cluster,node_type,node_id,topic,message_type |

Review Comment:
   We haven't implemented these metrics for now.



##########
versioned_docs/version-5.0/12-observability/01metrics.md:
##########
@@ -0,0 +1,100 @@
+# Metrics
+RocketMQ以Prometheus格式公开以下指标。您可以使用这些指标监视您的集群。
+
+- 服务端Metrics指标
+- 生产者Metrics指标
+- 消费者Metrics指标
+
+
+## Metrics指标详情
+
+### Metric types
+消息队列RocketMQ版定义的Metrics完全兼容开源Prometheus的标准,提供的Metrics的类型为Counter、Gauge和Histogram。更多信息,请参见 [METRIC TYPES](https://prometheus.io/docs/concepts/metric_types/)。
+
+### 服务端Metrics指标
+消息队列RocketMQ版服务端相关Metrics指标中Label的说明如下:
+- cluster: RocketMQ 集群名称。
+- node_type: 服务节点类型。枚举值包含proxy、broker、nameserver。
+- node_id: 服务节点ID。
+- topic: 消息队列RocketMQ的主题。
+- message_type: 消息类型。有以下类型:<br />Normal:普通消息;<br />FIFO:顺序消息;<br />Transaction:事务消息;<br />Delay:定时/延时消息.
+- consumer_group: 消费者 ID。
+
+| Metrics类型 | Metrics name | 单位 | 指标说明 | Label |
+| --- | ----- | --- | ---------- | --- |
+| counter | rocketmq_messages_in_total | count | 消息生产数量。| cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_messages_out_total | count | 消息消费数量。| cluster,node_type,node_id,topic, consumer_group|
+| counter | rocketmq_throughput_in_total | byte | 消息生产流入服务端的吞吐量。| cluster,node_type,node_id,topic,message_type |
+| counter | rocketmq_throughput_out_total | byte | 消息消费从服务端流出的吞吐量。| cluster,node_type,node_id,topic, consumer_group|
+| histogram | rocketmq_message_size | byte | 消息大小的分布情况,发送成功时统计。分布区间如下:<br />le_1_kb: ≤ 1 KB<br /> le_4_kb: ≤ 4 KB<br />le_512_kb: ≤ 512 KB<br />le_1_mb: ≤ 1 MB<br />le_2_mb: ≤ 2 MB<br />le_4_mb: ≤ 4 MB<br />le_overflow: > 4 MB | cluster,node_type,node_id,topic,message_type |
+| gauge | rocketmq_consumer_ready_messages | count | 已就绪消息量。| cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_inflight_messages | count | 处理中消息量。| cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_queueing_latency | millisecond | 已就绪消息排队延迟时间。 | cluster,node_type,node_id,topic, consumer_group |
+| gauge | rocketmq_consumer_lag_latency | millisecond | 消费处理延迟时间。 | cluster,node_type,node_id,topic, consumer_group |
+| counter | rocketmq_send_to_dlq_messages_total | count | 转为死信状态的消息量。(变成死信状态指的是消息达到最大重投次数后不再投递) | cluster,node_type,node_id,topic, consumer_group |
+| histogram | rocketmq_rpc_latency | millisecond | rpc 调用耗时:<br />le_1_ms<br />le_3_ms<br />le_5_ms<br />le_10_ms<br />le_100_ms<br />le_1_s<br />le_3_s<br />le_overflow | cluster,node_typ,node_id,protocol_type,request_code,response_code |
+| gauge | rocketmq_storage_size | byte | 存储大小,包含所有文件。| cluster,node_type,node_id |
+| counter | rocketmq_storage_read_bytes_total | byte | 储存层读取数据量。 | cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_read_bytes_max | byte | 储存层每秒读取数据量峰值。 | cluster,node_type,node_id,topic |
+| counter | rocketmq_storage_write_bytes_total | byte | 储存层写入数据量。| cluster,node_type,node_id,topic |
+| gauge | rocketmq_storage_write_bytes_max | byte | 储存层每秒写入数据量峰值。  | cluster,node_type,node_id,topic |
+| Histogram | rocketmq_storage_write_latency | millisecond | 储存层写入消息耗时:<br />le_1_ns: ≤ 1 ns<br /> le_10_ns: ≤ 10 ns<br />le_100_ns: ≤ 100 ns<br />le_1000_ns: ≤ 1 ms<br />le_overflow: > 1 ms | cluster,node_type,node_id,topic,message_type |
+| gauge | rocketmq_storage_message_reserve_time | millisecond | 储存层消息保存时间(broker 硬盘上最早一条消息储存时间和当前时间作差) | cluster,node_type,node_id |
+| gauge | rocketmq_storage_dispatch_behind_bytes | byte | dispatch 落后大小 | cluster,node_type,node_id |
+| gauge | rocketmq_storage_flush_behind_bytes | byte | 刷盘落后大小。 | cluster,node_type,node_id |
+| gauge | rocketmq_thread_pool_wartermark | count | 线程池排队数 | cluster,node_type,node_id,name |
+
+
+
+### 生产者Metrics指标
+消息队列RocketMQ版生产者相关Metrics指标中Label的说明如下:
+- cluster: RocketMQ 集群名称。
+- node_type: 服务节点类型。枚举值包含proxy、broker、nameserver。
+- node_id: 服务节点ID。
+- topic: 消息队列RocketMQ的主题。
+- message_type: 消息类型。有以下类型:<br />Normal:普通消息;<br />FIFO:顺序消息;<br />Transaction:事务消息;<br />Delay:定时/延时消息.
+- client_id: 客户端ID。
+- invocation_status: 消息发送接口调用结果,枚举值包含 success 和 failure。
+
+| Metrics类型 | Metrics name | 单位 | 指标说明 | Label |
+| --- | ----- | --- | ---------- | --- |
+| Histogram | rocketmq_send_cost_time | millisecond | 调用消息发送接口成功的耗时分布情况。分布区间如下:: <br />le_1_ms <br />le_5_ms<br />le_10_ms<br />le_20_ms <br />le_50_ms <br />le_200_ms<br />le_500_ms <br />le_overflow | topic,client_id,invocation_status |
+
+
+### 消费者Metrics指标
+消息队列RocketMQ版消费者相关Metrics指标中Label的说明如下:
+- topic: 消息队列RocketMQ的主题。
+- consumer_group: 消费者分组ID。
+- client_id: 客户端ID。
+- invocation_status: 消费结果, 枚举值包含 success 和 failure。
+
+| Metrics类型 | Metrics name | 单位 | 指标说明 | Label |
+| --- | ----- | --- | ---------- | --- |
+| Histogram | rocketmq_process_time | millisecond | PushConsumer的消息处理耗时分布情况.分布区间如下: <br />le_1_ms <br />le_5_ms  <br />le_10_ms<br />le_100_ms <br />le_10000_ms<br />le_60000_ms <br />le_overflow | topic,consumer_group,client_id,invocation_status |
+| gauge | rocketmq_consumer_cached_messages | message | PushConsumer本地缓冲队列中的消息条数。| topic,consumer_group,client_id |
+| gauge | rocketmq_consumer_cached_bytes | byte | PushConsumer本地缓冲队列中消息的总大小。| topic,consumer_group,client_id |
+| Histogram | rocketmq_await_time | millisecond | 消息在PushConsumer本地缓冲队列中的排队时间的分布情况:<br />le_1_ms<br /> le_5_ms<br />le_20_ms<br />le_100_ms <br />le_1000_ms<br /> le_5000_ms <br />le_10000_ms<br />le_overflow | topic,consumer_group,client_id |
+
+
+## 指标业务场景
+消息队列RocketMQ版主要基于以下业务场景定义Metrics指标.
+
+### 消息堆积场景
+![RocketMQ 队列消息状态](../picture/v5/observability/message-accumulation.png)<br />上图表示指定主题的某一队列中各消息的状态,消息队列RocketMQ版将处于不同处理阶段的消息数量和耗时进行统计,这些指标可直接反映队列中消息的处理速率和堆积情况,通过观察这些指标可初步判断业务的消费是否异常。具体的指标含义和计算公式如下:
+
+| 名称 | 描述 | 计算公式 |
+| --- | --- | --- |
+| 处理中的消息(inflight messages) | 在消费者客户端正在处理,但客户端还未返回消费结果的消息。 | 最晚一条拉取消息的位点-最晚一条提交消息的位点 |
+| 已就绪消息(ready messages) | 消息在消息队列RocketMQ版服务端已就绪,对消费者可见可被消费的消息。 | 最大消费位点-最晚一条拉取消息的位点 |
+| 已就绪消息的就绪时间(ready time) | 普通消息、顺序消息:消息存储到服务端的时间。 <br /> 定时/延时消息:消息定时或延时结束的时间。 <br />  事务消息:事务提交的时间。 | -- |
+| 已就绪消息的排队时间(ready message queue time)| 该时间反应消费者拉取消息的及时性。 | 当前时间-最早一条就绪消息的就绪时间 |
+| 消费处理滞后时间(comsumer lag time) | 该时间反应消费者完成消息处理的及时性。 | 当前时间-最早一条未提交消息的就绪时间|

Review Comment:
   comsumer -> consumer



##########
versioned_docs/version-5.0/12-observability/01metrics.md:
##########
@@ -0,0 +1,100 @@
+# Metrics
+RocketMQ以Prometheus格式公开以下指标。您可以使用这些指标监视您的集群。

Review Comment:
   It's better that add space between Chinese words and English words.



##########
i18n/en/docusaurus-plugin-content-docs/version-5.0/12-observability/01metrics.md:
##########
@@ -0,0 +1,102 @@
+# Metrics
+RocketMQ exposes the following metrics in Prometheus format. You can monitor your clusters with those metrics.
+
+- Broker metrics
+- Producer metrics
+- Consumer metrics
+
+
+## Details of metrics
+
+### Metric types
+The standard for defining metrics in RocketMQ complies with that for defining the metrics in open source Prometheus. The metric types that RocketMQ offers include counters, gauges, and histograms. For more information, see [METRIC TYPES](https://prometheus.io/docs/concepts/metric_types/).
+
+### Broker metrics
+The following table describes the labels of the metrics that are related to the Message Queue for Apache RocketMQ broker.
+
+- cluster: RocketMQ cluster name.
+- node_type: the type of service node, whitch includes the following:proxy,broker,nameserver.
+- node_id:the ID of the service node.

Review Comment:
   There should be a space between `node_id:` and `the ID`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org