Move code out of spring-boot-actuator-autoconfigure-all

Issue: 46071
This commit is contained in:
Andy Wilkinson 2025-06-04 10:50:01 +01:00 committed by Phillip Webb
parent d2c5d6f048
commit 06156f83d8
84 changed files with 342 additions and 470 deletions

View File

@ -1,110 +1,13 @@
{
"groups": [],
"properties": [
{
"name": "info",
"type": "java.util.Map<java.lang.String,java.lang.Object>",
"description": "Arbitrary properties to add to the info endpoint."
},
{
"name": "management.auditevents.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable storage of audit events.",
"defaultValue": true
},
{
"name": "management.defaults.metrics.export.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable default metrics exporters.",
"defaultValue": true
},
{
"name": "management.endpoints.jackson.isolated-object-mapper",
"type": "java.lang.Boolean",
"description": "Whether to use an isolated object mapper to serialize endpoint JSON.",
"defaultValue": true
},
{
"name": "management.endpoints.jmx.domain",
"defaultValue": "org.springframework.boot"
},
{
"name": "management.endpoints.jmx.exposure.include",
"defaultValue": "health"
},
{
"name": "management.endpoints.jmx.unique-names",
"type": "java.lang.Boolean",
"description": "Whether unique runtime object names should be ensured.",
"deprecation": {
"replacement": "spring.jmx.unique-names",
"level": "error"
}
},
{
"name": "management.health.defaults.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable default health indicators.",
"defaultValue": true
},
{
"name": "management.health.diskspace.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable disk space health check.",
"defaultValue": true
},
{
"name": "management.health.influxdb.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable InfluxDB health check.",
"defaultValue": true
},
{
"name": "management.health.livenessstate.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable liveness state health check.",
"defaultValue": false
},
{
"name": "management.health.mongo.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable MongoDB health check.",
"defaultValue": true
},
{
"name": "management.health.ping.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable ping health check.",
"defaultValue": true
},
{
"name": "management.health.probes.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable liveness and readiness probes.",
"defaultValue": false,
"deprecation": {
"replacement": "management.endpoint.health.probes.enabled"
}
},
{
"name": "management.health.rabbit.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable RabbitMQ health check.",
"defaultValue": true
},
{
"name": "management.health.readinessstate.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable readiness state health check.",
"defaultValue": false
},
{
"name": "management.health.ssl.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable SSL certificate health check.",
"defaultValue": true
},
{
{
"name": "management.httpexchanges.recording.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable HTTP request-response exchange recording.",
@ -118,201 +21,6 @@
"errors"
]
},
{
"name": "management.info.build.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable build info.",
"defaultValue": true
},
{
"name": "management.info.defaults.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable default info contributors.",
"defaultValue": true
},
{
"name": "management.info.env.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable environment info.",
"defaultValue": false
},
{
"name": "management.info.git.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable git info.",
"defaultValue": true
},
{
"name": "management.info.java.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable Java info.",
"defaultValue": false
},
{
"name": "management.info.os.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable Operating System info.",
"defaultValue": false
},
{
"name": "management.info.process.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable process info.",
"defaultValue": false
},
{
"name": "management.info.ssl.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable SSL certificate info.",
"defaultValue": false
},
{
"name": "management.logging.export.enabled",
"type": "java.lang.Boolean",
"description": "Whether auto-configuration of logging is enabled to export logs.",
"defaultValue": true
},
{
"name": "management.metrics.graphql.autotime.enabled",
"description": "Whether to automatically time web client requests.",
"defaultValue": true,
"deprecation": {
"level": "error",
"reason": "Requests are timed automatically."
}
},
{
"name": "management.metrics.graphql.autotime.percentiles",
"description": "Computed non-aggregable percentiles to publish.",
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles."
}
},
{
"name": "management.metrics.graphql.autotime.percentiles-histogram",
"description": "Whether percentile histograms should be published.",
"defaultValue": false,
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles-histogram."
}
},
{
"name": "management.metrics.mongo.command.enabled",
"description": "Whether to enable Mongo client command metrics.",
"defaultValue": true
},
{
"name": "management.metrics.mongo.connectionpool.enabled",
"description": "Whether to enable Mongo connection pool metrics.",
"defaultValue": true
},
{
"name": "management.metrics.web.client.request.autotime.enabled",
"description": "Whether to automatically time web client requests.",
"defaultValue": true,
"deprecation": {
"level": "error",
"reason": "Requests are timed automatically."
}
},
{
"name": "management.metrics.web.client.request.autotime.percentiles",
"description": "Computed non-aggregable percentiles to publish.",
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles."
}
},
{
"name": "management.metrics.web.client.request.autotime.percentiles-histogram",
"description": "Whether percentile histograms should be published.",
"defaultValue": false,
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles-histogram."
}
},
{
"name": "management.metrics.web.client.request.metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.client.requests.name",
"level": "error"
}
},
{
"name": "management.metrics.web.client.requests-metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.client.requests.name",
"level": "error"
}
},
{
"name": "management.metrics.web.server.auto-time-requests",
"type": "java.lang.Boolean",
"deprecation": {
"replacement": "management.metrics.web.server.request.autotime.enabled",
"level": "error"
}
},
{
"name": "management.metrics.web.server.request.autotime.enabled",
"description": "Whether to automatically time web server requests.",
"defaultValue": true,
"deprecation": {
"level": "error",
"reason": "Requests are timed automatically."
}
},
{
"name": "management.metrics.web.server.request.autotime.percentiles",
"description": "Computed non-aggregable percentiles to publish.",
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles."
}
},
{
"name": "management.metrics.web.server.request.autotime.percentiles-histogram",
"description": "Whether percentile histograms should be published.",
"defaultValue": false,
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles-histogram."
}
},
{
"name": "management.metrics.web.server.request.ignore-trailing-slash",
"type": "java.lang.Boolean",
"deprecation": {
"level": "error",
"reason": "Not needed anymore, direct instrumentation in Spring MVC."
}
},
{
"name": "management.metrics.web.server.request.metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.server.requests.name",
"level": "error"
}
},
{
"name": "management.metrics.web.server.requests-metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.server.requests.name",
"level": "error"
}
},
{
"name": "management.otlp.logging.export.enabled",
"type": "java.lang.Boolean",
"description": "Whether auto-configuration of logging is enabled to export OTLP logs."
},
{
"name": "management.otlp.tracing.export.enabled",
"type": "java.lang.Boolean",
@ -326,41 +34,6 @@
"replacement": "management.prometheus.metrics.export.pushgateway.address"
}
},
{
"name": "management.server.add-application-context-header",
"type": "java.lang.Boolean",
"description": "Add the \"X-Application-Context\" HTTP header in each response.",
"defaultValue": false
},
{
"name": "management.server.servlet.context-path",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.server.base-path",
"level": "error"
}
},
{
"name": "management.trace.http.enabled",
"deprecation": {
"replacement": "management.httpexchanges.recording.enabled",
"level": "error"
}
},
{
"name": "management.trace.http.include",
"deprecation": {
"replacement": "management.httpexchanges.recording.include",
"level": "error"
}
},
{
"name": "management.trace.include",
"deprecation": {
"replacement": "management.httpexchanges.recording.include",
"level": "error"
}
},
{
"name": "management.tracing.enabled",
"type": "java.lang.Boolean",
@ -386,68 +59,5 @@
"type": "java.lang.Boolean",
"description": "Whether auto-configuration of tracing is enabled to export Zipkin traces."
}
],
"hints": [
{
"name": "management.endpoints.web.cors.allowed-headers",
"values": [
{
"value": "*"
}
],
"providers": [
{
"name": "any"
}
]
},
{
"name": "management.endpoints.web.cors.allowed-methods",
"values": [
{
"value": "*"
}
],
"providers": [
{
"name": "any"
}
]
},
{
"name": "management.endpoints.web.cors.allowed-origins",
"values": [
{
"value": "*"
}
],
"providers": [
{
"name": "any"
}
]
},
{
"name": "management.health.status.order",
"values": [
{
"value": "UNKNOWN"
},
{
"value": "UP"
},
{
"value": "DOWN"
},
{
"value": "OUT_OF_SERVICE"
}
],
"providers": [
{
"name": "any"
}
]
}
]
}

View File

@ -1,27 +1,10 @@
org.springframework.boot.actuate.autoconfigure.audit.AuditAutoConfiguration
org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityHealthContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityProbesAutoConfiguration
org.springframework.boot.actuate.autoconfigure.beans.BeansEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.cloudfoundry.reactive.ReactiveCloudFoundryActuatorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.cloudfoundry.servlet.CloudFoundryActuatorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.condition.ConditionsReportEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.context.ShutdownEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.context.properties.ConfigurationPropertiesReportEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.endpoint.jackson.JacksonEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.env.EnvironmentEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.management.HeapDumpWebEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.management.ThreadDumpEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.observability.ObservabilityAutoConfiguration
org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.scheduling.ScheduledTasksEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.security.reactive.ReactiveManagementWebSecurityAutoConfiguration
org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration
org.springframework.boot.actuate.autoconfigure.ssl.SslHealthContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.ssl.SslObservabilityAutoConfiguration
org.springframework.boot.actuate.autoconfigure.startup.StartupEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.tracing.BraveAutoConfiguration
org.springframework.boot.actuate.autoconfigure.tracing.MicrometerTracingAutoConfiguration
org.springframework.boot.actuate.autoconfigure.tracing.NoopTracerAutoConfiguration

View File

@ -1,20 +0,0 @@
databaseChangeLog:
- changeSet:
id: 1
author: marceloverdijk
changes:
- createTable:
tableName: customer
columns:
- column:
name: id
type: int
autoIncrement: true
constraints:
primaryKey: true
nullable: false
- column:
name: name
type: varchar(50)
constraints:
nullable: false

View File

@ -1,31 +0,0 @@
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot ::
2017-08-08 17:12:30.910 INFO 19866 --- [ main] s.f.SampleWebFreeMarkerApplication : Starting SampleWebFreeMarkerApplication with PID 19866
2017-08-08 17:12:30.913 INFO 19866 --- [ main] s.f.SampleWebFreeMarkerApplication : No active profile set, falling back to default profiles: default
2017-08-08 17:12:30.952 INFO 19866 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@76b10754: startup date [Tue Aug 08 17:12:30 BST 2017]; root of context hierarchy
2017-08-08 17:12:31.878 INFO 19866 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2017-08-08 17:12:31.889 INFO 19866 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2017-08-08 17:12:31.890 INFO 19866 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.16
2017-08-08 17:12:31.978 INFO 19866 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-08-08 17:12:31.978 INFO 19866 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1028 ms
2017-08-08 17:12:32.080 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2017-08-08 17:12:32.084 INFO 19866 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2017-08-08 17:12:32.349 INFO 19866 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@76b10754: startup date [Tue Aug 08 17:12:30 BST 2017]; root of context hierarchy
2017-08-08 17:12:32.420 INFO 19866 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(jakarta.servlet.http.HttpServletRequest)
2017-08-08 17:12:32.421 INFO 19866 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(jakarta.servlet.http.HttpServletRequest,jakarta.servlet.http.HttpServletResponse)
2017-08-08 17:12:32.444 INFO 19866 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-08-08 17:12:32.444 INFO 19866 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-08-08 17:12:32.471 INFO 19866 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-08-08 17:12:32.600 INFO 19866 --- [ main] o.s.w.s.v.f.FreeMarkerConfigurer : ClassTemplateLoader for Spring macros added to FreeMarker configuration
2017-08-08 17:12:32.681 INFO 19866 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-08-08 17:12:32.744 INFO 19866 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http)
2017-08-08 17:12:32.750 INFO 19866 --- [ main] s.f.SampleWebFreeMarkerApplication : Started SampleWebFreeMarkerApplication in 2.172 seconds (JVM running for 2.479)

View File

@ -28,6 +28,9 @@ description = "Spring Boot Actuator AutoConfigure"
dependencies {
api(project(":spring-boot-project:spring-boot-actuator"))
api(project(":spring-boot-project:spring-boot-autoconfigure"))
implementation("com.fasterxml.jackson.core:jackson-databind")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
optional(project(":spring-boot-project:spring-boot-web-server"))

View File

@ -1,6 +1,17 @@
{
"groups": [],
"properties": [
{
"name": "info",
"type": "java.util.Map<java.lang.String,java.lang.Object>",
"description": "Arbitrary properties to add to the info endpoint."
},
{
"name": "management.auditevents.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable storage of audit events.",
"defaultValue": true
},
{
"name": "management.cloudfoundry.enabled",
"type": "java.lang.Boolean",
@ -59,11 +70,156 @@
"since": "3.4.0"
}
},
{
"name": "management.endpoints.jackson.isolated-object-mapper",
"type": "java.lang.Boolean",
"description": "Whether to use an isolated object mapper to serialize endpoint JSON.",
"defaultValue": true
},
{
"name": "management.endpoints.jmx.domain",
"defaultValue": "org.springframework.boot"
},
{
"name": "management.endpoints.jmx.exposure.include",
"defaultValue": "health"
},
{
"name": "management.endpoints.jmx.unique-names",
"type": "java.lang.Boolean",
"description": "Whether unique runtime object names should be ensured.",
"deprecation": {
"replacement": "spring.jmx.unique-names",
"level": "error"
}
},
{
"name": "management.endpoints.web.exposure.include",
"defaultValue": [
"health"
]
},
{
"name": "management.health.defaults.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable default health indicators.",
"defaultValue": true
},
{
"name": "management.health.diskspace.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable disk space health check.",
"defaultValue": true
},
{
"name": "management.health.livenessstate.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable liveness state health check.",
"defaultValue": false
},
{
"name": "management.health.ping.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable ping health check.",
"defaultValue": true
},
{
"name": "management.health.probes.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable liveness and readiness probes.",
"defaultValue": false,
"deprecation": {
"replacement": "management.endpoint.health.probes.enabled"
}
},
{
"name": "management.health.readinessstate.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable readiness state health check.",
"defaultValue": false
},
{
"name": "management.info.build.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable build info.",
"defaultValue": true
},
{
"name": "management.info.defaults.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable default info contributors.",
"defaultValue": true
},
{
"name": "management.info.env.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable environment info.",
"defaultValue": false
},
{
"name": "management.info.git.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable git info.",
"defaultValue": true
},
{
"name": "management.info.java.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable Java info.",
"defaultValue": false
},
{
"name": "management.info.os.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable Operating System info.",
"defaultValue": false
},
{
"name": "management.info.process.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable process info.",
"defaultValue": false
},
{
"name": "management.info.ssl.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable SSL certificate info.",
"defaultValue": false
},
{
"name": "management.server.add-application-context-header",
"type": "java.lang.Boolean",
"description": "Add the \"X-Application-Context\" HTTP header in each response.",
"defaultValue": false
},
{
"name": "management.server.servlet.context-path",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.server.base-path",
"level": "error"
}
},
{
"name": "management.trace.http.enabled",
"deprecation": {
"replacement": "management.httpexchanges.recording.enabled",
"level": "error"
}
},
{
"name": "management.trace.http.include",
"deprecation": {
"replacement": "management.httpexchanges.recording.include",
"level": "error"
}
},
{
"name": "management.trace.include",
"deprecation": {
"replacement": "management.httpexchanges.recording.include",
"level": "error"
}
}
],
"hints": [

View File

@ -1,9 +1,26 @@
org.springframework.boot.actuate.autoconfigure.audit.AuditAutoConfiguration
org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityHealthContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.availability.AvailabilityProbesAutoConfiguration
org.springframework.boot.actuate.autoconfigure.beans.BeansEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.condition.ConditionsReportEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.context.ShutdownEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.context.properties.ConfigurationPropertiesReportEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.endpoint.jackson.JacksonEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.endpoint.jmx.JmxEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.env.EnvironmentEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.health.HealthEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.info.InfoContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.info.InfoEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.logging.LogFileWebEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.logging.LoggersEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.management.HeapDumpWebEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.management.ThreadDumpEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.scheduling.ScheduledTasksEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.startup.StartupEndpointAutoConfiguration
org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthContributorAutoConfiguration
org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration

View File

@ -19,7 +19,6 @@ package org.springframework.boot.actuate.autoconfigure.condition;
import java.util.Arrays;
import java.util.Collections;
import jakarta.annotation.PostConstruct;
import org.junit.jupiter.api.Test;
import org.springframework.boot.actuate.autoconfigure.condition.ConditionsReportEndpoint.ContextConditionsDescriptor;
@ -66,10 +65,10 @@ class ConditionsReportEndpointTests {
Config(ConfigurableApplicationContext context) {
this.context = context;
setupAutoConfigurationReport();
}
@PostConstruct
void setupAutoConfigurationReport() {
private void setupAutoConfigurationReport() {
ConditionEvaluationReport report = ConditionEvaluationReport.get(this.context.getBeanFactory());
report.recordEvaluationCandidates(Arrays.asList("a", "b"));
report.recordConditionEvaluation("a", mock(Condition.class), mock(ConditionOutcome.class));

View File

@ -1,6 +1,12 @@
{
"groups": [],
"properties": [
{
"name": "management.health.rabbit.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable RabbitMQ health check.",
"defaultValue": true
},
{
"name": "spring.rabbitmq.dynamic",
"type": "java.lang.Boolean",

View File

@ -1,4 +1,12 @@
{
"properties": [
{
"name": "management.health.mongo.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable MongoDB health check.",
"defaultValue": true
}
],
"hints": [
{
"name": "spring.data.mongodb.field-naming-strategy",

View File

@ -1,6 +1,32 @@
{
"groups": [],
"properties": [
{
"name": "management.metrics.graphql.autotime.enabled",
"description": "Whether to automatically time web client requests.",
"defaultValue": true,
"deprecation": {
"level": "error",
"reason": "Requests are timed automatically."
}
},
{
"name": "management.metrics.graphql.autotime.percentiles",
"description": "Computed non-aggregable percentiles to publish.",
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles."
}
},
{
"name": "management.metrics.graphql.autotime.percentiles-histogram",
"description": "Whether percentile histograms should be published.",
"defaultValue": false,
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles-histogram."
}
},
{
"name": "spring.graphql.schema.file-extensions",
"defaultValue": ".graphqls,.gqls"

View File

@ -14,16 +14,13 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.autoconfigure.web.jersey;
package org.springframework.boot.jersey.actuate.autoconfigure.web;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.servlet.ServletContainer;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.jersey.actuate.autoconfigure.web.JerseyChildManagementContextConfiguration;
import org.springframework.boot.jersey.actuate.autoconfigure.web.JerseySameManagementContextConfiguration;
import org.springframework.boot.jersey.actuate.autoconfigure.web.ManagementContextResourceConfigCustomizer;
import org.springframework.boot.jersey.autoconfigure.JerseyApplicationPath;
import org.springframework.boot.test.context.FilteredClassLoader;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;

View File

@ -14,15 +14,13 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.autoconfigure.web.jersey;
package org.springframework.boot.jersey.actuate.autoconfigure.web;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.servlet.ServletContainer;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.jersey.actuate.autoconfigure.web.JerseySameManagementContextConfiguration;
import org.springframework.boot.jersey.actuate.autoconfigure.web.ManagementContextResourceConfigCustomizer;
import org.springframework.boot.jersey.autoconfigure.DefaultJerseyApplicationPath;
import org.springframework.boot.jersey.autoconfigure.JerseyApplicationPath;
import org.springframework.boot.test.context.FilteredClassLoader;

View File

@ -1,6 +1,12 @@
{
"groups": [],
"properties": [
{
"name": "management.defaults.metrics.export.enabled",
"type": "java.lang.Boolean",
"description": "Whether to enable default metrics exporters.",
"defaultValue": true
},
{
"name": "management.metrics.binders.files.enabled",
"type": "java.lang.Boolean",
@ -1515,6 +1521,106 @@
"defaultValue": [
"."
]
},
{
"name": "management.metrics.web.client.request.autotime.enabled",
"description": "Whether to automatically time web client requests.",
"defaultValue": true,
"deprecation": {
"level": "error",
"reason": "Requests are timed automatically."
}
},
{
"name": "management.metrics.web.client.request.autotime.percentiles",
"description": "Computed non-aggregable percentiles to publish.",
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles."
}
},
{
"name": "management.metrics.web.client.request.autotime.percentiles-histogram",
"description": "Whether percentile histograms should be published.",
"defaultValue": false,
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles-histogram."
}
},
{
"name": "management.metrics.web.client.request.metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.client.requests.name",
"level": "error"
}
},
{
"name": "management.metrics.web.client.requests-metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.client.requests.name",
"level": "error"
}
},
{
"name": "management.metrics.web.server.auto-time-requests",
"type": "java.lang.Boolean",
"deprecation": {
"replacement": "management.metrics.web.server.request.autotime.enabled",
"level": "error"
}
},
{
"name": "management.metrics.web.server.request.autotime.enabled",
"description": "Whether to automatically time web server requests.",
"defaultValue": true,
"deprecation": {
"level": "error",
"reason": "Requests are timed automatically."
}
},
{
"name": "management.metrics.web.server.request.autotime.percentiles",
"description": "Computed non-aggregable percentiles to publish.",
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles."
}
},
{
"name": "management.metrics.web.server.request.autotime.percentiles-histogram",
"description": "Whether percentile histograms should be published.",
"defaultValue": false,
"deprecation": {
"level": "error",
"reason": "Should be configured globally via management.metrics.distribution.percentiles-histogram."
}
},
{
"name": "management.metrics.web.server.request.ignore-trailing-slash",
"type": "java.lang.Boolean",
"deprecation": {
"level": "error",
"reason": "Not needed anymore, direct instrumentation in Spring MVC."
}
},
{
"name": "management.metrics.web.server.request.metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.server.requests.name",
"level": "error"
}
},
{
"name": "management.metrics.web.server.requests-metric-name",
"type": "java.lang.String",
"deprecation": {
"replacement": "management.observations.http.server.requests.name",
"level": "error"
}
}
]
}

View File

@ -1,6 +1,16 @@
{
"groups": [],
"properties": [
{
"name": "management.metrics.mongo.command.enabled",
"description": "Whether to enable Mongo client command metrics.",
"defaultValue": true
},
{
"name": "management.metrics.mongo.connectionpool.enabled",
"description": "Whether to enable Mongo connection pool metrics.",
"defaultValue": true
},
{
"name": "spring.data.mongodb.grid-fs-database",
"type": "java.lang.String",

View File

@ -11,6 +11,11 @@
"level": "error"
}
},
{
"name": "management.opentelemetry.logging.export.enabled",
"type": "java.lang.Boolean",
"description": "Whether auto-configuration of logging is enabled to export logs over OTLP."
},
{
"name": "management.otlp.logging",
"type": "org.springframework.boot.opentelemetry.actuate.autoconfigure.logging.OpenTelemetryLoggingExportProperties",