【问题标题】:How shutdown feature can be enabled in SpringBoot Admin UI?如何在 Spring Boot Admin UI 中启用关闭功能?
【发布时间】:2019-05-15 13:30:13
【问题描述】:

我正在尝试监控我的 Spring Boot 应用程序,该应用程序支持执行器。 并且能够设置一个 SpringBootAdmin 服务器和客户端。 我通过添加在客户端应用程序中启用了关闭端点 如下到 application.properties 文件:

management.endpoint.shutdown.enabled=true
management.endpoints.web.exposure.include=health,metrics,loggers,httptrace,shutdown

现在我可以通过邮递员客户端访问执行器关闭 API,并且功能正常。

有什么方法可以在 Spring Boot 管理 UI 中获取关闭功能/选项卡?

【问题讨论】:

    标签: spring-boot-actuator spring-boot-admin


    【解决方案1】:

    遗憾的是,即使 2 年后,这仍然不受支持。您可以在 management.endpoints.web.exposure.include 中将其列为:

    management.endpoints.web.exposure.include=shutdown
    

    它会显示出来,但没有选项来操作它。

    【讨论】:

      猜你喜欢
      • 2018-08-02
      • 2017-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-11
      • 1970-01-01
      • 2021-03-09
      • 2014-05-17
      相关资源
      最近更新 更多