Commit Graph

1832 Commits

Author SHA1 Message Date
Andy Wilkinson 41424e4529 Merge branch '1.5.x'
Closes gh-10457
2017-10-02 15:24:12 +01:00
Andy Wilkinson 9102eb32d1 Polish 2017-10-02 13:34:32 +01:00
Phillip Webb b08e51f0b3 Increase WebClient testing timeout 2017-09-29 16:20:21 -07:00
Phillip Webb 69a1eebf68 Polish 2017-09-29 16:20:21 -07:00
Madhura Bhave f1cfad6755 Handle required parameters in endpoint infrastructure
Closes gh-10372
2017-09-29 14:41:58 -07:00
Andy Wilkinson eefdbb7341 Merge Actuator's loggers package into its logging package
Closes gh-10430
2017-09-28 19:47:07 +01:00
Phillip Webb 9e43b99966 Polish 2017-09-27 17:44:48 -07:00
Andy Wilkinson 7e2d7dcd1d Polish 2017-09-27 19:48:26 +01:00
Stephane Nicoll 3894229381 Fix status handling of /application/env/{propertyName}
This commit makes sure to return a 404 status if the env endpoint is
invoked with a property that does not exist in the environment.

Closes gh-10179
2017-09-27 11:45:50 +02:00
Stephane Nicoll c2c6f49cbc Improve output of `/application/env/{propertyName}`
This commit changes the output of a single property to mention the
actual value in the environment as well as the property source that
contributed to the value.

Closes gh-10178
2017-09-27 10:48:17 +02:00
Madhura Bhave 1e11f80181 Fix typo in package-info.java 2017-09-26 17:05:31 -07:00
Stephane Nicoll 61bbaf140c Fix checkstyle violation 2017-09-26 18:42:04 +02:00
Stephane Nicoll eb045f1da1 Fix value of property in PropertySource descriptor
Prior to this commit, if a key was present in multiple PropertySources,
all descriptors shared the same common value. This commit makes sure
that each PropertySource descriptor shows the value it defines rather
than the one that is promoted in the Environment.

Closes gh-10428
2017-09-26 18:16:53 +02:00
Andy Wilkinson 32102c693b Avoid using classes from spring-web in core web endpoint infrastructure
Closes gh-10358
2017-09-25 14:05:02 +01:00
Andy Wilkinson f0693989f1 Polish 2017-09-23 07:02:59 +01:00
Andy Wilkinson 16edf72faa Test support for HTTP range requests to endpoints returning a Resource
Closes gh-9978
2017-09-21 14:18:33 +01:00
Vedran Pavic cf151b1717 Add actuator endpoint for finding and deleting sessions
See gh-8342
2017-09-20 15:48:25 +02:00
Stephane Nicoll f43aa9444d Polish "Remove usage of `HttpStatus` in Web Endpoints"
Closes gh-10350
2017-09-20 11:27:06 +02:00
Vedran Pavic 6c6ce7221a Remove usage of `HttpStatus` in Web Endpoints
See gh-10350
2017-09-20 11:12:12 +02:00
Andy Wilkinson aca30950cf Polish "Align prefix match in BufferCounterService with DefaultCounterService"
See gh-10278
2017-09-20 06:51:22 +01:00
Venil Noronha dcb81a3da5 Align prefix match in BufferCounterService with DefaultCounterService
Closes gh-10278
2017-09-20 06:34:29 +01:00
Andy Wilkinson e0bb9e700b Tidy up generics in WebFluxEndpointHandlerMapping
Closes gh-10113
2017-09-19 20:52:51 +01:00
Andy Wilkinson 49bab63ca6 Update metrics endpoint to return list of distinct names
Closes gh-10336
2017-09-19 17:12:56 +01:00
Raja Kolli a4a0eef186 Upgrade to Hibernate Validator 6.0.2.Final
Closes gh-9969
2017-09-19 17:40:45 +02:00
Jon Schneider 71495d1ad9 Make WebMvcMetrics#tagWithException public
Closes gh-10318
2017-09-19 14:02:56 +02:00
Johnny Lim 5e35a34cba Polish
Closes gh-10308
2017-09-18 16:19:02 +02:00
Vedran Pavic b6b2fd4ce8 Make Audit events Web endpoint `after` parameter required
Closes gh-10322
2017-09-18 16:00:59 +02:00
Phillip Webb 86926bf0e5 Upgrade to Micrometer 1.0.0-rc.1
Closes gh-10300
2017-09-14 22:16:07 -07:00
Phillip Webb 324a00fd6d Polish 2017-09-14 18:33:03 -07:00
Phillip Webb 796d400318 Use correct `percentilesTime` call
Update `MetricsClientHttpRequestInterceptor` to use `percentilesTime`
rather than `percentiles`.

See gh-9970
2017-09-14 16:11:19 -07:00
Andy Wilkinson 962b3df9c6 Add and polish package-info.java for actuator
Closes gh-10298
2017-09-14 17:44:37 +01:00
Jon Schneider c2958c27ab Replace Boot's own metrics with support for Micrometer
Closes gh-9970
2017-09-14 17:15:46 +01:00
Johnny Lim bd2d08bcd0 Polish
Closes gh-10282
2017-09-14 15:13:51 +02:00
Stephane Nicoll d89f3f9f2a Remove useless ConfigurationProperties on HeapDumpEndpoint
Closes gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll 5e7dbe8f4a Move configuration of LogFileWebEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll d7f3008122 Move configuration of EnvironmentEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll bb622292ba Move configuration of ConfigurationPropertiesReportEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll 0d62b0cb3c Move configuration of TraceEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Spring Buildmaster 30eb937a83 Next Development Version 2017-09-12 10:54:22 +00:00
Stephane Nicoll 40e6f004da Enable info and status endpoints by default
Closes gh-10161
2017-09-12 12:51:26 +02:00
Stephane Nicoll 222ed44bd4 Replace enabledByDefault to DefaultEnablement
This commit introduces a DefaultEnablement enum that replaces the
"enabledByDefault" boolean flag of Endpoint. This allows to better
control what indicates the default enablement of an endpoint.

With DefaultEnablement#ENABLED, the endpoint is enabled unless an
endpoint specific property says otherwise. With DefaultEnabled#DISABLED,
the endpoint is disabled unless an endpoint specific property says
otherwise. DefaultEnablement#NEUTRAL provides a dedicated option to
indicate that we should resort to the default settings in absence of
a specific property.

See gh-10161
2017-09-12 12:23:04 +02:00
Andy Wilkinson 3882552b43 Polish 2017-09-12 10:22:35 +01:00
Phillip Webb 2e51b48cd9 Refactor actuator package locations
Restructure actuator packages to improve structure. The following
changes have been made:

 - Separate actuator and actuator auto-configuration into different
   modules.
 - Move endpoint code into `spring-boot-actuator`.
 - Move `Endpoint` implementations from a single package into
   technology specific packages.
 - Move `HealthIndicator` implementations from a single package into
   technology specific packages.
 - As much as possible attempt to mirror the `spring-boot` package
   structure and class naming in `spring-boot-actuator` and
   `spring-boot-actuator-autoconfigure`.
 - Move `DataSourceBuilder` and DataSource meta-data support from
   `spring-boot-actuator` to `spring-boot`.

Fixes gh-10261
2017-09-12 00:11:20 -07:00
Andy Wilkinson 85493367b6 Rework health response structure to eliminate chance of key clashes
Previously, if a health's details contained a key named status (either
because an indicator bean was named statusHealthIndicator or an
indicator added an entry named status to its details) this would
clash with the health's own status as the details were serialized as
siblings of the status field.

This commit updates Health to remove @JsonAnyGetter from getDetails().
This means that all of a Health's details will now be nested within
a separate details field, thereby preventing a possible clash with
the status field.

Closes gh-10249
2017-09-11 14:37:13 +01:00
Andy Wilkinson c06de245d9 Allow endpoints to be mapped to /
This commit removes the restriction that was added in 4a61e45 to
prevent / from being used as the management context path when the
management context was not using a different port

The management context path can now be set to / irrespective of the
configuration of the management port. To avoid a possible clash
with the application's welcome page or similar, the links "endpoint"
that is mapping to the management context path is disabled when
the management context path is /.

As part of allowing / to be used as the management context path again,
the handling of endpoint mappings and the creation of paths for
individual operations has been consolidated into a new EndpointMapping
class that is used across the three (MVC, WebFlux, and Jersey)
implementations.

See gh-9898
2017-09-08 09:38:41 +01:00
Johnny Lim fd1b460027 Remove EndpointServletWebAutoConfigurationTests
Closes gh-10228
2017-09-08 10:04:03 +02:00
Andy Wilkinson 2e19f0b3e5 Upgrade to Jersey 2.26
Closes gh-10217
2017-09-07 20:09:24 +01:00
Madhura Bhave 86cd7275a1 MVC endpoints bean methods are @ConditionalOnMissingBean
Fixes gh-10105
2017-09-06 15:32:10 -07:00
Stephane Nicoll 905e851219 Fix build failure 2017-09-06 15:23:13 +02:00
Johnny Lim 30262e3bc1 Polish
Closes gh-10168
2017-09-06 12:52:24 +02:00