gpt4 book ai didi

http - 通过 http 使用执行器监控 spring boot

转载 作者:可可西里 更新时间:2023-11-01 17:32:11 26 4
gpt4 key购买 nike

当我使用默认服务器地址时,我可以从localhost:8080/metrics获取数据。

但是,当我在 application.properties 中设置 server.address=172.20.7.24 时,我无法从 172.20.7.24:8080/获得响应指标

最佳答案

尝试将以下内容添加到您的属性中:

management.address=172.20.7.24

howto-change-the-http-port-or-address-of-the-actuator-endpoints :

78.1 Change the HTTP port or address of the actuator endpoints

In a standalone application the Actuator HTTP port defaults to the same as the main HTTP port. To make the application listen on a different port set the external property management.port. To listen on a completely different network address (e.g. if you have an internal network for management and an external one for user applications) you can also set management.address to a valid IP address that the server is able to bind to.

关于http - 通过 http 使用执行器监控 spring boot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39485867/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com