chenjinxuan opened a new issue, #7321:
URL: https://github.com/apache/apisix/issues/7321

   ### Current Behavior
   
   我想要将prometheus端口通过svc暴露出去,于是在apisix的conf.yaml里设置
         plugin_attr:
           prometheus:
              export_addr:
                 ip: "0.0.0.0"
                 port: 9091
   然后重启pod,但是在其他pod访问这个pod的ip:9091 报curl: (7) Failed to connect to 10.10.27.89 
port 9091: Connection refused
   并且,我进去apisix的pod里
   1 用pod ip 0.10.27.89:9091 不通
   2 用127.0.0.1:9091 能通
   3 用pod ip 0.10.27.89:9080 能通
   
   
   
   ### Expected Behavior
   
   在pod内部和通过svc都能访问到prometheus暴露的9091端口
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   配置
         plugin_attr:
           prometheus:
              export_addr:
                 ip: "0.0.0.0"
                 port: 9091
   
   开启prometheus全局插件
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.13.0
   - Operating system (run `uname -a`): 容器
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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