SylviaBABY commented on code in PR #6886:
URL: https://github.com/apache/apisix/pull/6886#discussion_r853781757


##########
docs/zh/latest/plugins/server-info.md:
##########
@@ -23,63 +29,63 @@ title: server-info
 
 ## 描述
 
-`server-info` 是一款能够定期将服务基本信息上报至 etcd 的插件。
+`server-info` 插件可以定期将服务基本信息上报至 etcd。
 
 服务信息中每一项的含义如下:
 
-| 名称             | 类型    | 描述                                                  
                                                                  |
+| 名称             | 类型    | 描述                                                  
                                                                 |
 | ---------------- | ------- | 
---------------------------------------------------------------------------------------------------------------------
 |
-| boot_time        | integer | APISIX 服务实例的启动时间(UNIX 时间戳),如果对 APISIX 
进行热更新操作,该值将被重置;普通的 reload 操作不会影响该值。               |
-| id               | string  | APISIX 服务实例 id 。                                
                                                                   |
-| etcd_version     | string  | etcd 集群的版本信息,如果 APISIX 和 etcd 集群之间存在网络分区,该值将设置为 
`"unknown"`。                                       |
+| boot_time        | integer | APISIX 服务实例的启动时间(UNIX 时间戳),如果对 APISIX 
进行热更新操作,该值将被重置。普通的 reload 操作不会影响该值。         |
+| id               | string  | APISIX 服务实例 id。                                 
                                                                  |
+| etcd_version     | string  | etcd 集群的版本信息,如果 APISIX 和 etcd 集群之间存在网络分区,该值将设置为 
`"unknown"`。                                   |
 | version          | string  | APISIX 版本信息。                                    
                                                                   |
-| hostname         | string  | APISIX 所部署的机器或 pod 的主机名信息。                      
                                                             |
+| hostname         | string  | 部署 APISIX 的主机或 Pod 的主机名信息。                      
                                                            |
 
-## 插件属性
+## 属性
 
-无
+无。
 
 ## 插件接口
 
 该插件在 [Control API](../control-api.md) 下暴露了一个 API 接口 `/v1/server_info`。
 
 ## 启用插件
 
-在配置文件 `apisix/conf/config.yaml` 的插件列表中添加 `server-info`, 即可启用该插件。
+该插件默认是禁用状态,你可以在配置文件(`./conf/config.yaml`)中添加如下配置启用 `server-info` 插件。
 
-```
+```yaml title="conf/config.yaml"
 plugins:                          # plugin list
-  - example-plugin
-  - limit-req
-  - node-status
+  - ...
   - server-info
-  - jwt-auth
-  - zipkin
-  ......
 ```
 
-## 如何自定义服务信息上报配置
+## 自定义服务信息上报配置
+
+我们可以在 `./conf/config.yaml` 文件的 `plugin_attr` 部分修改上报配置。
 
-我们可以在 `conf/config.yaml` 文件的 `plugin_attr` 一节中修改上报配置。
+下表是可以自定义配置的参数:
 
-| 名称            | 类型    | 默认值 | 描述                                             
                  |
+| 名称            | 类型    | 默认值  | 描述                                            
                   |
 | --------------- | ------- | ------ | 
--------------------------------------------------------------- |
-| report_ttl      | integer | 36   | etcd 中服务信息保存的 TTL(单位:秒,最大值:86400,最小值:3)|
+| report_ttl      | integer | 36     | etcd 中服务信息保存的 
TTL(单位:秒,最大值:86400,最小值:3)。|
 
-下面的例子将 `report_ttl` 修改成了 1 分钟:
+以下是示例是修改配置文件(`conf/config.yaml`)中的 `plugin_attr` 部分将 `report_ttl` 设置为 1 分钟:

Review Comment:
   ```suggestion
   以下示例则是通过修改配置文件(`conf/config.yaml`)中的 `plugin_attr` 部分将 `report_ttl` 设置为 1 分钟:
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to