簡體   English   中英

如何更改 spring boot admin 使用的默認運行狀況端點

[英]How to change the default health endpoint used by spring boot admin

我想通過指標的實施為我的服務提供一個新的按需運行狀況檢查端點。 問題是默認情況下會調用按需調用“/actuator/health”,因此我將默認健康端點拆分為兩個健康組“/actuator/health/default & /actuator/health/on-demand”作為我沒有找到任何方法直接從 /actuator/health 中刪除點播。

現在出現了一個新問題,默認情況下,spring boot admin 會點擊 /actuator/health 來獲取相應的信息,我想知道是否可以讓他改為點擊 /actuator/health/default ?

順便說一句,我只有管理客戶端,沒有任何恢復服務

哈哈,這個配置就是答案:spring.boot.admin.client.instance.health-url

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM