Springdoc和Prometheus
是否可以通过Sprindoc收集有关Prometheus终点的信息?
我们最近从Springfox图书馆搬到了Springdoc。 SpringFox能够收集有关服务器上运行的所有端点的信息。 SpringDoc仅显示在代码级别上配置为@RestController的终点。 有一个SpringDoc配置属性,允许定义软件包扫描。 但是,这无济 Management.Endpoints.web.exposure.include = Prometheus
Is it possible to gather information on prometheus end point by sprindoc?
We've recently moved from springfox library to springdoc.
Springfox was able to gather information on all end points running on the server.
Springdoc is only showing now end points configured as @RestController on code level.
There is a springdoc config property allowing to define packages to scan.
However this doesn't help, because prometheus end point is configured in springboot properties
management.endpoints.web.exposure.include= prometheus
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了解决方案。以下属性正在将所有
spring-boot-actuator
端点添加到Swagger:执行器终点点本身是通过属性配置的:
等等。
Found a solution. Following property is adding all
spring-boot-actuator
endpoints to swagger:Actuator end points themselves are configured via the property:
etc..