Tag: 弹簧启动执行器

Spring Boot Actuator在Docker上返回应用程序

我有一个在Docker上运行的应用程序。 但是,当我试图检查它的健康,如服务器:端口/健康,它说下。 为什么? 这是Docker常见的问题吗? 谢谢 编辑: 警告22559 — [nio-8234-exec-4] osbactuate.health.JmsHealthIndicator:运行状况检查失败javax.jms.JMSException:无法创build传输。 原因:java.io.IOException:无法识别传输scheme:[vm] at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)〜[activemq-client-5.14.5.jar:5.14.5 ] at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:333)〜[activemq-client-5.14.5.jar:5.14.5] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:346 )〜[activemq-client-5.14.5.jar:5.14.5] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:304)〜[activemq-client-5.14.5.jar:5.14.5] (org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:244)〜[activemq-client-5.14.5.jar:5.14.5] at org.springframework.boot.actuate.health.JmsHealthIndicator.doHealthCheck(JmsHealthIndicator。 java:38)〜[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.health.Abs​​tractHealthIndicator.health(Abstrac tHealthIndicator.java:43)〜[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.health.CompositeHealthIndicator.health(CompositeHealthIndicator.java:68)[ spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.endpoint.HealthEndpoint.invoke(HealthEndpoint.java:81)[spring-boot-actuator-1.5。 4.RELEASE.jar:1.5.4.RELEASE] at org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.getHealth(HealthMvcEndpoint.java:171)[spring-boot-actuator-1.5.4.RELEASE.jar: 1.5.4.RELEASE]在org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(HealthMvcEndpoint.java:145)[spring-boot-actuator-1.5.4.RELEASE.jar:1.5.4.RELEASE]在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[na:1.8.0_60] sun.reflect.DelegatingMethodAccessorImpl处,在sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)〜[na:1.8.0_60]在java.lang中调用(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_60]。 方法.invoke(Method.java:497)〜[na:1.8.0_60]在org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)[spring-web-4.3.9。 RELEASE.jar:4.3.9.RELEASE]在org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]在org.springframework.web的org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] .servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.servlet.mvc.method .annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMe (AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)[spring -webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]在org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)[spring-webmvc-4.3.9.RELEASE.jar:4.3 .9.RELEASE]在org.springframework.web的org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE]。 servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)[spring-webmvc-4.3.9.RELEASE.jar:4.3.9.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)[tomcat […]

Spring Actuator – 来自docker集装箱的度量聚合

我有一个Spring Boot REST服务应用程序。 此应用程序使用弹簧执行器来显示指标和健康信息。 我怎样才能从运行同一个应用程序的两个或多个容器中聚合这些信息?