protected String detectDefaultDashboard() { String dashboard = getConfig(Config.metricsDashboard); if (StringUtils.isNotBlank(dashboard)) { return dashboard; } if (getContext().getProjectClassLoaders().isClassInCompileClasspath(false,"org.apache.camel.CamelContext")) { return "camel-routes.json"; } return "kubernetes-pods.json"; }
if (cls.isClassInCompileClasspath(false, "io.fabric8.funktion.runtime.Main") || getContext().hasDependency( "io.fabric8.funktion", null)) { return "funktion"; if (cls.isClassInCompileClasspath(false, "org.apache.camel.CamelContext")) { return "camel"; cls.isClassInCompileClasspath(false, "org.springframework.boot.SpringApplication")) { return "spring-boot"; if (cls.isClassInCompileClasspath(false, "org.springframework.core.Constants")) { return "spring"; if (cls.isClassInCompileClasspath(false, "org.vertx.java.core.Handler", "io.vertx.core.Handler")) { return "vertx";
protected Probe discoverSpringBootHealthCheck(Integer initialDelay, Integer period, Integer timeout, Integer failureTh, Integer successTh) { try { if (getContext().getProjectClassLoaders().isClassInCompileClasspath(true, REQUIRED_CLASSES)) { Properties properties = SpringBootUtil.getSpringBootApplicationProperties(getContext().getProjectClassLoaders().getCompileClassLoader()); return buildProbe(properties, initialDelay, period, timeout, failureTh, successTh); } } catch (Exception ex) { log.error("Error while reading the spring-boot configuration", ex); } return null; }