Commit Graph

1805 Commits (5e35a34cbab77ccc6a696adbde6773b7b7364a19)

Author SHA1 Message Date
Johnny Lim 5e35a34cba Polish
Closes gh-10308
7 years ago
Vedran Pavic b6b2fd4ce8 Make Audit events Web endpoint `after` parameter required
Closes gh-10322
7 years ago
Phillip Webb 86926bf0e5 Upgrade to Micrometer 1.0.0-rc.1
Closes gh-10300
7 years ago
Phillip Webb 324a00fd6d Polish 7 years ago
Phillip Webb 796d400318 Use correct `percentilesTime` call
Update `MetricsClientHttpRequestInterceptor` to use `percentilesTime`
rather than `percentiles`.

See gh-9970
7 years ago
Andy Wilkinson 962b3df9c6 Add and polish package-info.java for actuator
Closes gh-10298
7 years ago
Jon Schneider c2958c27ab Replace Boot's own metrics with support for Micrometer
Closes gh-9970
7 years ago
Johnny Lim bd2d08bcd0 Polish
Closes gh-10282
7 years ago
Stephane Nicoll d89f3f9f2a Remove useless ConfigurationProperties on HeapDumpEndpoint
Closes gh-10263
7 years ago
Stephane Nicoll 5e7dbe8f4a Move configuration of LogFileWebEndpoint
See gh-10263
7 years ago
Stephane Nicoll d7f3008122 Move configuration of EnvironmentEndpoint
See gh-10263
7 years ago
Stephane Nicoll bb622292ba Move configuration of ConfigurationPropertiesReportEndpoint
See gh-10263
7 years ago
Stephane Nicoll 0d62b0cb3c Move configuration of TraceEndpoint
See gh-10263
7 years ago
Stephane Nicoll 40e6f004da Enable info and status endpoints by default
Closes gh-10161
7 years ago
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
7 years ago
Andy Wilkinson 3882552b43 Polish 7 years ago
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
7 years ago
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
7 years ago
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
7 years ago
Johnny Lim fd1b460027 Remove EndpointServletWebAutoConfigurationTests
Closes gh-10228
7 years ago
Andy Wilkinson 2e19f0b3e5 Upgrade to Jersey 2.26
Closes gh-10217
7 years ago
Stephane Nicoll 905e851219 Fix build failure 7 years ago
Johnny Lim 30262e3bc1 Polish
Closes gh-10168
7 years ago
Stephane Nicoll 8b88c6e884 Polish 7 years ago
Stephane Nicoll e244d75bd2 Restore `endpoints.env.keys-to-sanitize` binding
Closes gh-10174
7 years ago
Brian Clozel 1cf7c32a1e Polish 7 years ago
Stephane Nicoll 7388b4b768 Fix build failure 7 years ago
Andy Wilkinson f1c5fc41b4 Polish 7 years ago
Andy Wilkinson ad4ce9cf57 Return objects from trace, audit event, and thread dump endpoints
Closes gh-7648
7 years ago
Andy Wilkinson a6b30a3aab Reflect context hierarchy in beans endpoint’s response structure
Closes gh-10156
7 years ago
Andy Wilkinson ab54801143 Improve structure of response from configprops endpoint
Closes gh-10162
7 years ago
Andy Wilkinson 9242def4c0 Improve structure and JSON serialization of beans endpoint's response
Closes gh-10156
7 years ago
Andy Wilkinson 9ffbfb0d80 Ensure that endpoints are created before their web extensions
Closes gh-10140
7 years ago
Stephane Nicoll 37d92807d6 Polish test
See gh-10139
7 years ago
Mark Paluch 0e2f7c57ee Close reactive Redis connection after health check
Closes gh-10153
7 years ago
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
7 years ago
Andy Wilkinson 7fc12bc8a3 Polish 7 years ago
Johnny Lim db76112700 Polish
See gh-10109
7 years ago
Phillip Webb 2c97d3a5e9 Polish 7 years ago
Stephane Nicoll 441dd2bc16 Move endpoints.trace.filter to management.trace.filter
Closes gh-10007
7 years ago
Stephane Nicoll 54781c73b5 Move endpoints.metrics.filter to management.metrics.filter
See gh-10007
7 years ago
Stephane Nicoll 1897d76cda Merge branch '1.5.x' 7 years ago
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
7 years ago
Johnny Lim 118f65556f Remove unused ExpectedExceptions
Closes gh-10101
7 years ago
Stephane Nicoll 3ef3b40783 Rename EndpointType to EndpointExposure
Closes gh-10100
7 years ago
Phillip Webb f9e5b07eec Polish endpoint 7 years ago
Stephane Nicoll 98455e30dc Rename default endpoint settings to "default"
Closes gh-10098
7 years ago
Madhura Bhave 919dfd3f90 Remove unused properties and constants
Since the autoconfig totally backs off in the presence
of a WebSecurityConfigurerAdapter, there is no need to
order them ahead of/after the one provided by Spring Boot.

See gh-7958
7 years ago
Stephane Nicoll f6134a8862 Polish 7 years ago
Stephane Nicoll da65158eae Disable Jolokia by default
To be consistent with Actuator web endpoints, Jolokia is now disabled
by default.

Closes gh-10090
7 years ago