简体   繁体   English

如何更改 spring boot admin 使用的默认运行状况端点

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

I'd like to have a new on-demand health check endpoint for my service through implementation of indicator.我想通过指标的实施为我的服务提供一个新的按需运行状况检查端点。 The problem was the on-demand one would be called by default `/actuator/health`, so I have split the default health endpoint into two health groups `/actuator/health/default & /actuator/health/on-demand` as I didn't find any way to remove the on-demand directly from `/actuator/health`.问题是默认情况下会调用按需调用“/actuator/health”,因此我将默认健康端点拆分为两个健康组“/actuator/health/default & /actuator/health/on-demand”作为我没有找到任何方法直接从 /actuator/health 中删除点播。

Now a new issue emerged, by default, spring boot admin will hit /actuator/health to get corresponding info, I was wondering it's possible to ask him to hit /actuator/health/default instead?现在出现了一个新问题,默认情况下,spring boot admin 会点击 /actuator/health 来获取相应的信息,我想知道是否可以让他改为点击 /actuator/health/default ?

BTW, I only have admin client, without any recovery service顺便说一句,我只有管理客户端,没有任何恢复服务

haha, this config is the answer: spring.boot.admin.client.instance.health-url哈哈,这个配置就是答案:spring.boot.admin.client.instance.health-url

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM