spring-boot-actuator

“httptrace” endpoint of Spring Boot Actuator doesn't exist anymore with Spring Boot 2.2.0

≯℡__Kan透↙ 提交于 2020-04-11 01:59:30
问题 With Spring Boot 2.2.0 the "httptrace" Actuator endpoint doesn't exist anymore. How can I get this functionality back? 回答1: The functionality has been removed by default in Spring Boot 2.2.0. To fix it, add this configuration to the Spring environment: management.endpoints.web.exposure.include: httptrace and provide a HttpTraceRepository bean like this: @Configuration // @Profile("actuator-endpoints") /* register bean only if profile is set if you want */ public class

Unable to connect to Command Metric Stream. in Hystrix Dashboard issue

橙三吉。 提交于 2020-01-27 04:28:19
问题 Before posting this question, I went through numerous links like : Unable to connect to Command Metric Stream for Hystrix Dashboard with Spring Cloud and Unable to connect to Command Metric Stream in Spring Cloud + Hystrix + Turbine - MIME type ("text/plain") that is not "text/event-stream" and so on, but still things are not working for me. I am using Spring Boot V2.2.2.RELEASE. 2020-01-14 22:52:23.805 INFO 8436 --- [io-8080-exec-10] ashboardConfiguration$ProxyStreamServlet : Proxy opening

Upgraded spring boot from 2.1.0 to 2.2.2.RELEASE , now getting exception while starting

醉酒当歌 提交于 2020-01-25 08:24:04
问题 I am upgraded SpringBoot version 2.1.0 to 2.2.2.RELEASE java : openjdk11 spring-boot: v2.2.0.RELEASE springCloudVersion : Hoxton.RC1 Error : APPLICATION FAILED TO START Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: springfox.documentation.spring.web.plugins.DocumentationPluginsManager.createContextBuilder(DocumentationPluginsManager.java:152) The following method did not exist: org.springframework.plugin.core

Spring Boot Security PreAuthenticated Scenario with Anonymous access

a 夏天 提交于 2020-01-25 08:06:46
问题 I have a Spring Boot (1.5.6) application that is using the "pre-authenticated" authentication scenario (SiteMinder) from Spring Security. I have a need to expose the actuator "health" endpoint anonymously meaning the requests to that endpoint will not go through SiteMinder and as a result, the SM_USER header will not be present in the HTTP Request Header. The problem I'm facing is that no matter how I try to configure the "health" endpoint, the framework is throwing an org.springframework

Routing multiple URLs to Spring Boot Actuator's health endpoint

删除回忆录丶 提交于 2020-01-23 13:04:18
问题 I have an app configured to serve Spring Boot Actuator's health endpoint at /manage/health. Unfortunately due to some details of the infrastructure I'm deploying to I need to alias both / and /health over to /manage/health. I don't see an option to customize just the health endpoint URL via properties. I'm assuming there's no way to add extra @RequestMapping annotations that apply to a controller I don't own. I'd prefer to explicitly define the required aliases as opposed to some traffic

Spring Boot Actuator - MAX property

孤者浪人 提交于 2020-01-22 02:28:26
问题 I am using Spring Boot Actuator dependency to get insights of application. For that, I have used Spring Boot Admin. Configuration for client-server is working fine. I have to measure the count, total-time, max for endpoints which are going to execute. uri:/user/asset/getAllAssets TOTAL_TIME: 831ms MAX: 0ms uri:/user/getEmployee/{employeeId} TOTAL_TIME: 98ms MAX: 0ms Why MAX (time) is 0 while TOTAL_TIME: is Xms While I execute generalize form localhost:8889/actuator/metrics/http.server

Spring Boot 2.0 Not Registering Custom Actuator Endpoint

不羁的心 提交于 2020-01-21 14:39:26
问题 I've recently upgraded a project from Spring Boot 1.5.1 to 2.0.0 and our custom actuator endpoint is not getting registered. I've tried the following endpoint migration guides (docs.spring.io, github, and spring.io) to migrate our custom endpoint with the new approach but it doesn't work. Here is a simplified endpoint I'm trying to register: @Component @Endpoint(id = "time") public class TimeEndpoint { @ReadOperation public Map<String, Object> getTimeInfo() { return new HashMap<String, Object

spring boot logback rolling file append-er not working

陌路散爱 提交于 2020-01-14 05:22:07
问题 I am developing a spring boot application, where I am reading the logback configuration from a YML file which is in Consul . Following are the configuration I have used in the YML file. logging: file: ./logs/application.log pattern: console: "%d %-5level %logger : %msg%n" file: "%d %-4relative [%thread] %-5level %logger{35} - %msg%n" level: org.springframework.web: ERROR com.myapp.somepackage: DEBUG appenders: logFormat: "%d %-4relative [%thread] %-5level %logger{35} - %msg%n"

Spring Boot Actuator Endpoints security doesn't work with custom Spring Security Configuration

坚强是说给别人听的谎言 提交于 2020-01-12 04:49:06
问题 This is my Spring Boot 1.5.1 Actuator application.properties : #Spring Boot Actuator management.contextPath: /actuator management.security.roles=R_0 This is my WebSecurityConfig : @Configuration @EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private UserDetailsService userDetailsService; @Value("${logout.success.url}") private String logoutSuccessUrl; @Override protected void configure(HttpSecurity http) throws Exception { // @formatter:off

Spring Boot Actuator and Log4j2

回眸只為那壹抹淺笑 提交于 2020-01-04 02:39:27
问题 In a Spring-Application I am trying to use Log4j2 instead of the default logging implementation Logback. So in my pom.xml I excluded spring-boot-starter-logging and included spring-boot-starter-log4j2 . So I am able to use Log4j2. But if I open now the Spring Boot Acuator endpoint localhost:8080/actuator/loggers I am not seeing all Loggers anymore. With Logback there were several hundred Loggers but with Log4j2 I am seeing only about 10. My question is: How can I see the full list of all