具有子系统并且可以动态添加的自定义弹簧执行器端点

问题描述 投票:0回答:1

我正在寻找一种使用Spring Boot 2.2为反应性应用程序实现自定义端点的方法。

端点具有一些子系统,并在子系统上执行特定的资源操作。 URL路径如下:

/actuator/system1/subsystem_a
/actuator/system1/subsystem_b
/actuator/system2/subsystem_c

此外,system1和system2并非总是都部署,因此我只想动态添加已部署系统的端点。

我知道我可以使用ReactiveHealthContributorRegistry动态添加自定义运行状况检查端点。完全自定义的终结点有类似的方法吗?

提前感谢。

spring spring-boot spring-boot-actuator
1个回答
0
投票

似乎没有办法构造像我在Spring Boot Actuator中所要求的那样复杂的端点。

我最终决定使用RouterFunctionHandlerFunction指代以下网站。

© www.soinside.com 2019 - 2024. All rights reserved.