@ConditionalOnMissingBean(name = "systemHealthIndicator")
        @Bean
        @ConditionalOnEnabledHealthIndicator("systemHealthIndicator")
        @ConditionalOnAvailableEndpoint(endpoint = MetricsEndpoint.class)
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public HealthIndicator systemHealthIndicator(
            @Qualifier("metricsEndpoint") final ObjectProvider<MetricsEndpoint> metricsEndpoint,
            final CasConfigurationProperties casProperties) {
            val warnLoad = casProperties.getMonitor().getLoad().getWarn();
            return new SystemMonitorHealthIndicator(metricsEndpoint, warnLoad.getThreshold());
        }
This is {@link CasCoreMonitorAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-monitor/src/main/java/org/apereo/cas/config/CasCoreMonitorAutoConfiguration.java