actuator

error 401 - Spring boot actuator login/password in browser

好久不见. 提交于 2020-01-24 12:02:13
问题 I use spring boot with actuator and I add security configuration: management.port=8088 management.address=127.0.0.1 management.security.enabled=true security.user.name=admin security.user.password=secret management.security.role=SUPERUSER curl -u admin:secret http://127.0.0.1:8088/metrics is OK but with Chrome (http://127.0.0.1:8088/metrics): {"timestamp":1506692938036,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/metrics"}

Spring Boot Actuator - missing **loggers** and **logfile** endpoints

喜夏-厌秋 提交于 2019-12-24 18:51:12
问题 I am trying to set up Spring Boot Actuator (v2) with Spring MVC (v5) without @SpringBootApplication. I managed to get the endpoints up and running, at least they show some data. What I am wondering about are these two endpoints, mentioned in the title. According to Spring doc, both should be available. I have tried adding properties for logging: logging.level.org.springframework.boot.autoconfigure.logging=DEBUG logging.file=test.log But that didn't work either. My config for Actuator: Gradle

Spring boot actuator health endpoint

蹲街弑〆低调 提交于 2019-12-23 01:54:15
问题 I have create a PostgreSQL health indicator like this: @Component public class PostgresHealthIndicator extends AbstractHealthIndicator { @Autowired DataSource postgresDataSource; public DataSourceHealthIndicator dbHealthIndicator() { DataSourceHealthIndicator indicator = new DataSourceHealthIndicator(postgresDataSource); return indicator; } @Override protected void doHealthCheck(Health.Builder builder) throws Exception { Health h = dbHealthIndicator().health(); Status status = h.getStatus();