I am using the ConfigServer within my Spring Boot + Spring Cloud project. I used to monitor the endpoint /health, but since the ConfigClient asks the ConfigServer within every request, the invocation of the metric "/health" is quite slow.
This is due to the fact, that for every request to the ConfigServer, this one actually calls BitBucket –> so the entire request chain is quite long/slow.
Is there a way to disable the check for ConfigServer being available? I would like to monitor this one separately.
Best fri
Not currently. How often are you checking health? You can submit an issue to have a property that disables the health check.
You could work around it by extending ConfigServerHealthIndicator
and overriding doHealthCheck
.
The do something like:
@Bean
public ConfigServerHealthIndicator configServerHealthIndicator(
ConfigServicePropertySourceLocator locator) {
return new MyEmptyConfigServerHealthIndicator(locator);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With