shuaijinchao commented on a change in pull request #6218:
URL: https://github.com/apache/apisix/pull/6218#discussion_r794135901
##########
File path: docs/zh/latest/plugin-develop.md
##########
@@ -326,8 +326,7 @@ function _M.api()
end
```
-注意注册的接口会暴露到外网。
-你可能需要使用 [interceptors](plugin-interceptors.md) 来保护它。
+注意,注册的接口将不会默认暴露,您需要使用[public-api 插件](plugins/public-api.md)来暴露它。
Review comment:
```suggestion
注意,注册的接口将不会默认暴露,需要使用[public-api 插件](plugins/public-api.md)来暴露它。
```
the use of honorifics for personal pronouns is not required in documentation.
##########
File path: docs/zh/latest/plugins/prometheus.md
##########
@@ -46,17 +46,16 @@ plugin_attr:
假设环境变量 `INTRANET_IP` 是 `172.1.1.1`,现在 APISIX 会在 `172.1.1.1:9092` 上暴露指标。
-**在 2.6 版本之前,指标会直接暴露到数据面的端口上,你可能需要通过 [interceptors](../plugin-interceptors.md)
-来保护它。**
-
-如果你依然想要这样的行为,你可以这么配置:
+如果你依然想要让指标暴露在数据面的端口上,你可以这么配置:
```
plugin_attr:
prometheus:
enable_export_server: false
```
+同时,您还需要使用 [public-api](public-api.md) 插件来暴露它。
Review comment:
```suggestion
同时,需要使用 [public-api](public-api.md) 插件来暴露它。
```
--
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]