关于使用spring admin和consul一起做监控需要注意的配置
生活随笔
收集整理的這篇文章主要介紹了
关于使用spring admin和consul一起做监控需要注意的配置
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
如果使用spring cloud 開發(fā)微服務的時候,服務配置了上線文如
server:port: 8082servlet:context-path: /mail
則使用spring admin監(jiān)控時需要在服務發(fā)現(xiàn)的consul中配置tags
如下,這樣spring admin中的健康檢查才能讀取到上下文+/actuator/health,在spring admin中才能檢測到上下文
spring:application:name: consul-examplecloud:config:enabled: falseconsul:host: localhostport: 8500discovery:tags: management.context-path=/foo總結(jié)
以上是生活随笔為你收集整理的关于使用spring admin和consul一起做监控需要注意的配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Kafka 配置说明
- 下一篇: consul使用的一些见解