Commit Graph

1812 Commits

Author SHA1 Message Date
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
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
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
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
Stephane Nicoll
8b88c6e884 Polish 2017-09-06 12:41:51 +02:00
Stephane Nicoll
e244d75bd2 Restore endpoints.env.keys-to-sanitize binding
Closes gh-10174
2017-09-06 12:25:10 +02:00
Brian Clozel
1cf7c32a1e Polish 2017-09-06 11:52:05 +02:00
Stephane Nicoll
7388b4b768 Fix build failure 2017-09-06 11:43:34 +02:00
Andy Wilkinson
f1c5fc41b4 Polish 2017-09-05 12:52:38 +01:00
Andy Wilkinson
ad4ce9cf57 Return objects from trace, audit event, and thread dump endpoints
Closes gh-7648
2017-09-05 12:13:25 +01:00
Andy Wilkinson
a6b30a3aab Reflect context hierarchy in beans endpoint’s response structure
Closes gh-10156
2017-09-05 12:13:25 +01:00
Andy Wilkinson
ab54801143 Improve structure of response from configprops endpoint
Closes gh-10162
2017-09-05 12:13:25 +01:00
Andy Wilkinson
9242def4c0 Improve structure and JSON serialization of beans endpoint's response
Closes gh-10156
2017-09-04 14:40:15 +01:00
Andy Wilkinson
9ffbfb0d80 Ensure that endpoints are created before their web extensions
Closes gh-10140
2017-09-04 11:01:52 +01:00
Stephane Nicoll
37d92807d6 Polish test
See gh-10139
2017-09-04 10:01:14 +02:00
Mark Paluch
0e2f7c57ee Close reactive Redis connection after health check
Closes gh-10153
2017-09-04 08:44:21 +02:00
Stephane Nicoll
a274c78fa0 Add support for reactive health indicator
This commit introduces a "ReactiveHealthIndicator" contract that can be
implemented for health checks against a reactive API.

When running in a WebFlux-based web app, the health and status endpoints
transparently use this in a WebFlux-based application and regular
HealthIndicator are executed on the elastic scheduler.

When running in a Servlet-based web app, the endpoints includes and
adapts available ReactiveHealthIndicators automatically

Closes gh-7972
2017-09-01 15:18:48 +02:00
Andy Wilkinson
7fc12bc8a3 Polish 2017-08-30 17:34:07 +01:00
Johnny Lim
db76112700 Polish
See gh-10109
2017-08-30 10:33:53 +02:00
Phillip Webb
2c97d3a5e9 Polish 2017-08-29 15:59:32 -07:00
Stephane Nicoll
441dd2bc16 Move endpoints.trace.filter to management.trace.filter
Closes gh-10007
2017-08-29 17:09:19 +02:00
Stephane Nicoll
54781c73b5 Move endpoints.metrics.filter to management.metrics.filter
See gh-10007
2017-08-29 17:04:59 +02:00
Stephane Nicoll
1897d76cda Merge branch '1.5.x' 2017-08-29 14:00:23 +02:00
Paul Vorbach
04ca7f137d Identify and fix incomplete assertions
Several calls to assertThat lacked a following assertion most often due
to wrong use of parenthesis.

See gh-10084
2017-08-29 13:49:28 +02:00