Commit Graph

36 Commits (0419d42b7ca37611955bc0211359c215e5477fa4)

Author SHA1 Message Date
Andy Wilkinson 41424e4529 Merge branch '1.5.x'
Closes gh-10457
7 years ago
dreis2211 756398b52c Replace some String.length() checks with String.isEmpty()
Closes gh-10451
7 years ago
Madhura Bhave f1cfad6755 Handle required parameters in endpoint infrastructure
Closes gh-10372
7 years ago
Andy Wilkinson eefdbb7341 Merge Actuator's loggers package into its logging package
Closes gh-10430
7 years ago
Andy Wilkinson f396740a2f Rename Micrometer Clock bean: clock -> micrometerClock
Closes gh-10436
7 years ago
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
7 years ago
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
7 years ago
dreis2211 f3472beed8 Remove redundant semicolons
Closes gh-10422
7 years ago
Andy Wilkinson 32102c693b Avoid using classes from spring-web in core web endpoint infrastructure
Closes gh-10358
7 years ago
Andy Wilkinson f0693989f1 Polish 7 years ago
Vedran Pavic cf151b1717 Add actuator endpoint for finding and deleting sessions
See gh-8342
7 years ago
Raja Kolli a4a0eef186 Upgrade to Hibernate Validator 6.0.2.Final
Closes gh-9969
7 years ago
Andy Wilkinson d1cf308bd2 Polish 7 years ago
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 e59d70ea03 Change micrometer properties to use adapters
Update configuration property classes used with micrometer so that
they no longer directly implement `Config` interfaces. Properties
are now adapted to Config implementations independently.

See gh-9970
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 21b645fba8 Add missing ObjectProvider for missing beans
Update `MetricsAutoConfiguration` to use an `ObjectProvider` to guard
against missing beans.

See gh-9970
7 years ago
Andy Wilkinson 3942ba2e68 Consistently use the spring.metrics configuration property prefix
See gh-9970
7 years ago
Stephane Nicoll 5efcbad751 Polish 7 years ago
Stephane Nicoll ddde3c5695 Add error metadata for the Micrometer migration
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
Stephane Nicoll 033939e3c0 Add error metadata for Security-related keys 7 years ago
Johnny Lim bd2d08bcd0 Polish
Closes gh-10282
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 82fd18cee3 Polish 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 46dfe38b60 Rework security request matchers
Update the security request matchers so that a bean is no longer needed
when the matcher is used. Matchers can now be build by starting from
the `EndpointRequest` or `StaticResourceRequest` classes. For example:

http.authorizeRequests()
  .requestMatchers(EndpointRequest.to("status", "info")).permitAll()
  .requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole("ACTUATOR")
  .requestMatchers(StaticResourceRequest.toCommonLocations()).permitAll()

Closes gh-7958
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