Skip to content

Commit ad3a141

Browse files
committed
Polish endpoints metadata
This commit introduces manual metadata for the endpoints.all.* namespace and polish the appendix following the work that happened in spring-projects#9692
1 parent 80793b3 commit ad3a141

File tree

2 files changed

+135
-27
lines changed

2 files changed

+135
-27
lines changed

spring-boot-actuator/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
{"properties": [
2+
{
3+
"name": "endpoints.all.enabled",
4+
"type": "java.lang.Boolean",
5+
"description": "Enable all endpoints.",
6+
"defaultValue": true
7+
},
8+
{
9+
"name": "endpoints.all.jmx.enabled",
10+
"type": "java.lang.Boolean",
11+
"description": "Enable all endpoints as JMX MBeans.",
12+
"defaultValue": true
13+
},
14+
{
15+
"name": "endpoints.all.web.enabled",
16+
"type": "java.lang.Boolean",
17+
"description": "Enable all endpoints as Web endpoints.",
18+
"defaultValue": true
19+
},
220
{
321
"name": "endpoints.configprops.keys-to-sanitize",
422
"type": "java.lang.String[]",

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 117 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,43 +1082,133 @@ content into your application; rather pick only the properties that you need.
10821082
# ACTUATOR PROPERTIES
10831083
# ----------------------------------------
10841084
1085-
# ENDPOINTS ({sc-spring-boot-actuator}/endpoint/AbstractEndpoint.{sc-ext}[AbstractEndpoint] subclasses)
1085+
# ALL ENDPOINTS
10861086
endpoints.all.enabled=true # Enable all endpoints.
1087-
endpoints.auditevents.enabled= # Enable the endpoint.
1088-
endpoints.autoconfig.enabled= # Enable the endpoint.
1089-
endpoints.beans.enabled= # Enable the endpoint.
1090-
endpoints.configprops.enabled= # Enable the endpoint.
1087+
endpoints.all.jmx.enabled=true # Enable all endpoints as JMX MBeans.
1088+
endpoints.all.web.enabled=true # Enable all endpoints as Web endpoints.
1089+
1090+
# AUDIT EVENTS ENDPOINT ({sc-spring-boot-actuator}/endpoint/AuditEventsEndpoint.{sc-ext}[AuditEventsEndpoint])
1091+
endpoints.auditevents.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1092+
endpoints.auditevents.enabled=true # Enable the auditevents endpoint.
1093+
endpoints.auditevents.jmx.enabled=true # Expose the auditevents endpoint as a JMX MBean.
1094+
endpoints.auditevents.web.enabled=true # Expose the auditevents endpoint as a Web endpoint.
1095+
1096+
# AUTO-CONFIGURATION REPORT ENDPOINT ({sc-spring-boot-actuator}/endpoint/AutoConfigurationReportEndpoint.{sc-ext}[AutoConfigurationReportEndpoint])
1097+
endpoints.autoconfig.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1098+
endpoints.autoconfig.enabled=true # Enable the autoconfig endpoint.
1099+
endpoints.autoconfig.jmx.enabled=true # Expose the autoconfig endpoint as a JMX MBean.
1100+
endpoints.autoconfig.web.enabled=true # Expose the autoconfig endpoint as a Web endpoint.
1101+
1102+
# BEANS ENDPOINT ({sc-spring-boot-actuator}/endpoint/BeansEndpoint.{sc-ext}[BeansEndpoint])
1103+
endpoints.beans.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1104+
endpoints.beans.enabled=true # Enable the beans endpoint.
1105+
endpoints.beans.jmx.enabled=true # Expose the beans endpoint as a JMX MBean.
1106+
endpoints.beans.web.enabled=true # Expose the beans endpoint as a Web endpoint.
1107+
1108+
# CONFIGURATION PROPERTIES REPORT ENDPOINT ({sc-spring-boot-actuator}/endpoint/ConfigurationPropertiesReportEndpoint.{sc-ext}[ConfigurationPropertiesReportEndpoint])
1109+
endpoints.configprops.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1110+
endpoints.configprops.enabled=true # Enable the configprops endpoint.
1111+
endpoints.configprops.jmx.enabled=true # Expose the configprops endpoint as a JMX MBean.
10911112
endpoints.configprops.keys-to-sanitize=password,secret,key,token,.*credentials.*,vcap_services # Keys that should be sanitized. Keys can be simple strings that the property ends with or regex expressions.
1092-
endpoints.env.enabled= # Enable the endpoint.
1093-
endpoints.env.keys-to-sanitize=password,secret,key,token,.*credentials.*,vcap_services # Keys that should be sanitized. Keys can be simple strings that the property ends with or regex expressions.
1094-
endpoints.flyway.enabled= # Enable the endpoint.
1095-
endpoints.health.enabled= # Enable the endpoint.
1096-
endpoints.health.mapping.*= # Mapping of health statuses to HttpStatus codes. By default, registered health statuses map to sensible defaults (i.e. UP maps to 200).
1097-
endpoints.heapdump.enabled= # Enable the endpoint.
1098-
endpoints.info.enabled= # Enable the endpoint.
1099-
endpoints.liquibase.enabled= # Enable the endpoint.
1100-
endpoints.logfile.enabled=true # Enable the endpoint.
1101-
endpoints.logfile.external-file= # External Logfile to be accessed.
1102-
endpoints.logfile.path=/logfile # Endpoint URL path.
1103-
endpoints.loggers.enabled=true # Enable the endpoint.
1104-
endpoints.mappings.enabled= # Enable the endpoint.
1105-
endpoints.metrics.enabled= # Enable the endpoint.
1106-
endpoints.metrics.filter.enabled=true # Enable the metrics servlet filter.
1107-
endpoints.metrics.filter.gauge-submissions=merged # Http filter gauge submissions (merged, per-http-method)
1108-
endpoints.metrics.filter.counter-submissions=merged # Http filter counter submissions (merged, per-http-method)
1109-
endpoints.shutdown.enabled= # Enable the endpoint.
1110-
endpoints.threaddump.enabled= # Enable the endpoint.
1111-
endpoints.trace.enabled= # Enable the endpoint.
1112-
endpoints.trace.filter.enabled=true # Enable the trace servlet filter.
1113+
endpoints.configprops.web.enabled=true # Expose the configprops endpoint as a Web endpoint.
11131114
11141115
# ENDPOINTS CORS CONFIGURATION ({sc-spring-boot-actuator}/autoconfigure/EndpointCorsProperties.{sc-ext}[EndpointCorsProperties])
11151116
endpoints.cors.allow-credentials= # Set whether credentials are supported. When not set, credentials are not supported.
11161117
endpoints.cors.allowed-headers= # Comma-separated list of headers to allow in a request. '*' allows all headers.
1117-
endpoints.cors.allowed-methods=GET # Comma-separated list of methods to allow. '*' allows all methods.
1118+
endpoints.cors.allowed-methods= # Comma-separated list of methods to allow. '*' allows all methods. When not set, defaults to GET.
11181119
endpoints.cors.allowed-origins= # Comma-separated list of origins to allow. '*' allows all origins. When not set, CORS support is disabled.
11191120
endpoints.cors.exposed-headers= # Comma-separated list of headers to include in a response.
11201121
endpoints.cors.max-age=1800 # How long, in seconds, the response from a pre-flight request can be cached by clients.
11211122
1123+
# ENVIRONMENT ENDPOINT ({sc-spring-boot-actuator}/endpoint/EnvironmentEndpoint.{sc-ext}[EnvironmentEndpoint])
1124+
endpoints.env.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1125+
endpoints.env.enabled=true # Enable the env endpoint.
1126+
endpoints.env.jmx.enabled=true # Expose the env endpoint as a JMX MBean.
1127+
endpoints.env.keys-to-sanitize=password,secret,key,token,.*credentials.*,vcap_services # Keys that should be sanitized. Keys can be simple strings that the property ends with or regex expressions.
1128+
endpoints.env.web.enabled=true # Expose the env endpoint as a Web endpoint.
1129+
1130+
# FLYWAY ENDPOINT ({sc-spring-boot-actuator}/endpoint/FlywayEndpoint.{sc-ext}[FlywayEndpoint])
1131+
endpoints.flyway.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1132+
endpoints.flyway.enabled=true # Enable the flyway endpoint.
1133+
endpoints.flyway.jmx.enabled=true # Expose the flyway endpoint as a JMX MBean.
1134+
endpoints.flyway.web.enabled=true # Expose the flyway endpoint as a Web endpoint.
1135+
1136+
# HEALTH ENDPOINT ({sc-spring-boot-actuator}/endpoint/HealthEndpoint.{sc-ext}[HealthEndpoint])
1137+
endpoints.health.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1138+
endpoints.health.enabled=true # Enable the health endpoint.
1139+
endpoints.health.jmx.enabled=true # Expose the health endpoint as a JMX MBean.
1140+
endpoints.health.mapping= # Mapping of health statuses to HttpStatus codes. By default, registered health statuses map to sensible defaults (i.e. UP maps to 200).
1141+
endpoints.health.web.enabled=true # Expose the health endpoint as a Web endpoint.
1142+
1143+
# HEAP DUMP ENDPOINT ({sc-spring-boot-actuator}/endpoint/HeapDumpWebEndpoint.{sc-ext}[HeapDumpWebEndpoint])
1144+
endpoints.heapdump.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1145+
endpoints.heapdump.enabled=true # Enable the heapdump endpoint.
1146+
endpoints.heapdump.web.enabled=true # Expose the heapdump endpoint as a Web endpoint.
1147+
1148+
# INFO ENDPOINT ({sc-spring-boot-actuator}/endpoint/InfoEndpoint.{sc-ext}[InfoEndpoint])
1149+
endpoints.info.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1150+
endpoints.info.enabled=true # Enable the info endpoint.
1151+
endpoints.info.jmx.enabled=true # Expose the info endpoint as a JMX MBean.
1152+
endpoints.info.web.enabled=true # Expose the info endpoint as a Web endpoint.
1153+
1154+
# LIQUIBASE ENDPOINT ({sc-spring-boot-actuator}/endpoint/LiquibaseEndpoint.{sc-ext}[LiquibaseEndpoint])
1155+
endpoints.liquibase.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1156+
endpoints.liquibase.enabled=true # Enable the liquibase endpoint.
1157+
endpoints.liquibase.jmx.enabled=true # Expose the liquibase endpoint as a JMX MBean.
1158+
endpoints.liquibase.web.enabled=true # Expose the liquibase endpoint as a Web endpoint.
1159+
1160+
# LOG FILE ENDPOINT ({sc-spring-boot-actuator}/endpoint/LogFileWebEndpoint.{sc-ext}[LogFileWebEndpoint])
1161+
endpoints.logfile.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1162+
endpoints.logfile.enabled=true # Enable the logfile endpoint.
1163+
endpoints.logfile.external-file= # External Logfile to be accessed. Can be used if the logfile is written by output redirect and not by the logging system itself.
1164+
endpoints.logfile.web.enabled=true # Expose the logfile endpoint as a Web endpoint.
1165+
1166+
# LOGGERS ENDPOINT ({sc-spring-boot-actuator}/endpoint/LoggersEndpoint.{sc-ext}[LoggersEndpoint])
1167+
endpoints.loggers.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1168+
endpoints.loggers.enabled=true # Enable the loggers endpoint.
1169+
endpoints.loggers.jmx.enabled=true # Expose the loggers endpoint as a JMX MBean.
1170+
endpoints.loggers.web.enabled=true # Expose the loggers endpoint as a Web endpoint.
1171+
1172+
# REQUEST MAPPING ENDPOINT ({sc-spring-boot-actuator}/endpoint/RequestMappingEndpoint.{sc-ext}[RequestMappingEndpoint])
1173+
endpoints.mappings.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1174+
endpoints.mappings.enabled=true # Enable the mappings endpoint.
1175+
endpoints.mappings.jmx.enabled=true # Expose the mappings endpoint as a JMX MBean.
1176+
endpoints.mappings.web.enabled=true # Expose the mappings endpoint as a Web endpoint.
1177+
1178+
# METRICS ENDPOINT ({sc-spring-boot-actuator}/endpoint/MetricsEndpoint.{sc-ext}[MetricsEndpoint])
1179+
endpoints.metrics.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1180+
endpoints.metrics.enabled=true # Enable the metrics endpoint.
1181+
endpoints.metrics.jmx.enabled=true # Expose the metrics endpoint as a JMX MBean.
1182+
endpoints.metrics.web.enabled=true # Expose the metrics endpoint as a Web endpoint.
1183+
endpoints.metrics.filter.counter-submissions= # Submissions that should be made to the counter.
1184+
endpoints.metrics.filter.enabled=true # Enable the metrics servlet filter.
1185+
endpoints.metrics.filter.gauge-submissions= # Submissions that should be made to the gauge.
1186+
1187+
# SHUTDOWN ENDPOINT ({sc-spring-boot-actuator}/endpoint/ShutdownEndpoint.{sc-ext}[ShutdownEndpoint])
1188+
endpoints.shutdown.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1189+
endpoints.shutdown.enabled=false # Enable the shutdown endpoint.
1190+
endpoints.shutdown.jmx.enabled=false # Expose the shutdown endpoint as a JMX MBean.
1191+
endpoints.shutdown.web.enabled=false # Expose the shutdown endpoint as a Web endpoint.
1192+
1193+
# STATUS ENDPOINT ({sc-spring-boot-actuator}/endpoint/StatusEndpoint.{sc-ext}[StatusEndpoint])
1194+
endpoints.status.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1195+
endpoints.status.enabled=true # Enable the status endpoint.
1196+
endpoints.status.jmx.enabled=true # Expose the status endpoint as a JMX MBean.
1197+
endpoints.status.web.enabled=true # Expose the status endpoint as a Web endpoint.
1198+
1199+
# THREAD DUMP ENDPOINT ({sc-spring-boot-actuator}/endpoint/ThreadDumpEndpoint.{sc-ext}[ThreadDumpEndpoint])
1200+
endpoints.threaddump.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1201+
endpoints.threaddump.enabled=true # Enable the threaddump endpoint.
1202+
endpoints.threaddump.jmx.enabled=true # Expose the threaddump endpoint as a JMX MBean.
1203+
endpoints.threaddump.web.enabled=true # Expose the threaddump endpoint as a Web endpoint.
1204+
1205+
# TRACE ENDPOINT ({sc-spring-boot-actuator}/endpoint/TraceEndpoint.{sc-ext}[TraceEndpoint])
1206+
endpoints.trace.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
1207+
endpoints.trace.enabled=true # Enable the trace endpoint.
1208+
endpoints.trace.filter.enabled=true # Enable the trace servlet filter.
1209+
endpoints.trace.jmx.enabled=true # Expose the trace endpoint as a JMX MBean.
1210+
endpoints.trace.web.enabled=true # Expose the trace endpoint as a Web endpoint.
1211+
11221212
# MANAGEMENT HTTP SERVER ({sc-spring-boot-actuator}/autoconfigure/ManagementServerProperties.{sc-ext}[ManagementServerProperties])
11231213
management.add-application-context-header=false # Add the "X-Application-Context" HTTP header in each response.
11241214
management.address= # Network address that the management endpoints should bind to.

0 commit comments

Comments
 (0)