Commit Graph

502 Commits (76ea2d9dd4bc27371f11e79eb8bd4788167fcec4)

Author SHA1 Message Date
Stephane Nicoll ad6a888e47 Polish 7 years ago
Stephane Nicoll f99752283f Fix relaxed binding examples
Closes gh-12750
7 years ago
Stephane Nicoll bf06854218 Merge branch '1.5.x' 7 years ago
Rui Figueira 958aa5db55 Remove outdated reference to `EnvironmentTestUtils`
Documentation still refers to the now deprecated `EnvironmentTestUtils`
class instead of `TestPropertyValues` for setting environment values in
tests.

This commit replaces it with `TestPropertyValues` and provides an
equivalent code example.

Closes gh-12711
7 years ago
Stephane Nicoll b6f9b46be8 Only create a WebTestClient with WebFlux
This commit updates WebTestClientAutoConfiguration to only create a
WebTestClient when running a WebFlux-based application as mocking the
context only works with that mode at the moment.

Closes gh-12318
7 years ago
Stephane Nicoll 7dbeaaa932 Polish "Remove HierarchicalNameMapper as a configured @Bean"
Closes gh-12683
7 years ago
Jon Schneider 8572a091b8 Remove HierarchicalNameMapper as a configured @Bean
HierarchicalNameMapper is not a component that can be shared amongst
multiple monitoring systems.

See gh-12683
7 years ago
Attila Pápai 95385cecba Add space between right parentheses and next word
Closes gh-12722
7 years ago
Benjamin Graf 101a42c572 Fix outdated import statements
Closes gh-12697
7 years ago
Stephane Nicoll c90806477c Fix outdated reference to DurationUnit
Closes gh-12708
7 years ago
Kazuki YAMAMOTO aac716cb8c Fix typo
Closes gh-12666
7 years ago
Stephane Nicoll ccbfcbedf0 Add support for org.jooq.RecordUnmapperProvider
Closes gh-12560
7 years ago
Andy Wilkinson 1f35abacd6 Polish “Configure Kotlin compiler to use -java-parameters by default”
Closes gh-12641
7 years ago
Rui Figueira 5e2726f896 Configure Kotlin compiler to use -java-parameters by default
See gh-12641
7 years ago
Stephane Nicoll 404f22e5f9 Polish "Document @WebFluxTest limitation with RouterFunction"
See gh-10683
7 years ago
Madhura Bhave db7d47704a Document @WebFluxTest limitation with RouterFunction
Fixes gh-10683
7 years ago
Madhura Bhave a6a523bc51 Fix typos 7 years ago
Stephane Nicoll d9beafa45f Merge branch '1.5.x' 7 years ago
Madhura Bhave fa6ee8e34d Clarify h2-console requires a servlet-based web app
Fixes gh-12603
7 years ago
Stephane Nicoll 64a4f70564 Avoid use of `foo` and `bar` in doc 7 years ago
sdeleuze 561c24b328 Fix Kotlin @ConfigurationProperties example
Closes gh-12633
7 years ago
Andy Wilkinson 95b0e874f9 Merge branch '1.5.x' 7 years ago
Denis Washington a09ee17cbf Add OAuth2 server implementation section to docs
As auto-configuration for Spring Security OAuth has been removed
from Spring Boot 2.0 and Spring Security 5 doesn't have OAuth
2.0 Authorization / Resource Server support yet, it has not
been obvious at all how to implement an OAUth 2.0 server with
Spring Boot 2.0.

For that reason, this new section briefly explains the current
temporary situation and points to the spring-security-oauth2-autoconfigure
module that restores the auto-configuration support for OAuth
2.0 Authorization and Resource Servers.

Closes gh-12491
7 years ago
Stephane Nicoll 3e826c1a01 Fix typo in Micrometer examples
Closes gh-12529
7 years ago
Brian Clozel b8e8647391 Fix Servlet requirements in reference docs
As of Spring Framework 5.0, only Servlet 3.1+ containers are supported.
See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x

This commit updates the reference documentation to reflect that and also
removes sections describing pre-Servlet 3.1 solutions, as those are not
supported anymore.

Fixes gh-12370
7 years ago
Brian Clozel 2561f320e8 War deployment is not supported for WebFlux apps
Even though War deployment is supported by Spring Framework itself for
WebFlux applications, this is not the case currently in Spring Boot.

Fixes gh-12455
7 years ago
Stephane Nicoll 5320081d0b Revert "Only create a WebTestClient with WebFlux"
This reverts commit 282bd9f
7 years ago
Stephane Nicoll 282bd9f0db Only create a WebTestClient with WebFlux
This commit updates WebTestClientAutoConfiguration to only create a
WebTestClient when running a WebFlux-based application as mocking the
context only works with that mode at the moment.

Closes gh-12318
7 years ago
Jon Schneider 172794d446 Correct default Wavefront proxy port in docs
Closes gh-12471
7 years ago
dreis2211 0d3f3e46dd Fix typos
Closes gh-12468
7 years ago
Stephane Nicoll 7f9ab8078f Merge branch '1.5.x' 7 years ago
Stephane Nicoll 42629cb8ae Add support for ConnectionNameStrategy
This commit detects if a `ConnectionNameStrategy` bean exists in the
context and associates it with the auto-configured RabbitMQ's
`ConnectionFactory` when that is the case.

Closes gh-12367
7 years ago
Stephane Nicoll bc47b715c3 Add a note about the use of `*` with YAML
Closes gh-12361
7 years ago
seongwoon.lee 762793b812 Remove a redundant trailing slash in doc
Closes gh-12365
7 years ago
Madhura Bhave 4ca1e6ae4e Polish "Fix typo in TestDatabaseAutoConfiguration"
Closes gh-12350
7 years ago
Madhura Bhave b6e09e8311 Merge branch '1.5.x' 7 years ago
Cristian Greco b552842b9d Fix link to Spring Data JPA in docs
Closes gh-12342
7 years ago
Andy Wilkinson 85900796d3 Remove stale tip about ManagementContextConfiguration for endpoints
Closes gh-12312
7 years ago
Andy Wilkinson 2c882a47d0 Merge pull request #12324 from Jon Schneider
* gh-12324:
  Polish "Improve docs on custom metrics"
  Improve docs on custom metrics
7 years ago
Andy Wilkinson d7499387d8 Polish "Improve docs on custom metrics"
Closes gh-12324
7 years ago
Jon Schneider 25ff82f1d7 Improve docs on custom metrics
See gh-12324
7 years ago
Stephane Nicoll 6533278191 Update reference guide to stop mentioning setWebEnvironment
Closes gh-12330
7 years ago
Stephane Nicoll 7f5b7a6b47 Polish contribution
Closes gh-12326
7 years ago
Johnny Lim 751c444166 Polish
See gh-12326
7 years ago
Andy Wilkinson 9f7e840416 Improve documentation for using configuration processor with Gradle
Closes gh-12316
7 years ago
Stephane Nicoll 8b5ad5b942 Replace outdated Spring Integration metrics section with a link 7 years ago
Stephane Nicoll 8a6664869e Fix typo 7 years ago
Phillip Webb 9bee9e9cf9 Polish 7 years ago
Brian Clozel 14d36c9ad8 Polish
Closes gh-12268
7 years ago
Phillip Webb 3e4da3cc37 Polish 7 years ago
Stephane Nicoll 9ce96fbd89 Document support for java.util.Duration
Closes gh-12244
7 years ago
Stephane Nicoll cb96bbd9be Polish
See https://github.com/micrometer-metrics/micrometer-docs/issues/14
7 years ago
Stephane Nicoll b4c901cab6 Merge branch '1.5.x' 7 years ago
Phillip Webb c0d79b9273 Rationalize multi-document config file handling
Update `PropertySourceLoader` so that it no longer needs to deal with
matching multi-document files using the `spring.profile` property. The
loader now simply returns one or more `PropertSource` instances for a
given `Resource`.

All property matching now occurs in the `ConfigFileApplicationListener`.
This allows document processing logic to be contained in a single place,
and allows us to rationalize the algorithm so that negative matching
profiles are processed last.

Fixes gh-12159
7 years ago
Phillip Webb 29c3be3590 Polish 7 years ago
Andy Wilkinson 8d73ab088a Document new endpoint infrastructure
Closes gh-10001
7 years ago
Stephane Nicoll cd522dadcd Revert "Add Kafka health indicator"
Closes gh-12225
7 years ago
Kedar Joshi b189d88b94 Polish
Closes gh-12208
7 years ago
Johnny Lim dc715a352a Update doc to align with TomcatEmbeddedServletContainerFactory renaming
Closes gh-12215
7 years ago
Johnny Lim d441a8a89a Polish
Closes gh-12205
7 years ago
Andy Wilkinson 782ab2803e Polish documentation regarding target class proxying
Closes gh-12196
7 years ago
Stephane Nicoll 13b736b1cd Migrate remaining duration-based properties for Rabbit
Closes gh-12192
7 years ago
Stephane Nicoll e1fd9df7b9 Fix usage of management.server.add-application-context-header
Closes gh-12190
7 years ago
Stephane Nicoll 976a23d977 Fix duration unit of spring.messages.cache-duration
Closes gh-12183
7 years ago
Stephane Nicoll 2b729bf114 Fix description of `checkpoint-interval`
See gh-12181
7 years ago
Stephane Nicoll 09ff815f00 Harmonize metadata
Closes gh-12177
7 years ago
Stephane Nicoll 865775e955 Fix statsd example
Closes gh-12162
7 years ago
Johnny Lim 50c07d0772 Polish
Closes gh-12156
7 years ago
Stephane Nicoll 75505c78f5 Polish 7 years ago
Phillip Webb 4bde6b80ee Refactor YAML profile to deal with "!" profiles
Drop `SpringProfileDocumentMatcher` and replace it with two new
implementations that restrict when YAML documents are loaded. YAML
sections are now restricted both on the specific profile that is being
loaded, and the profiles that are currently accepted.

The `PropertySourceLoader` interface has been refined to include a
predicate that determines when a profile is accepted. The
`ConfigFileApplicationListener` simply delegates the predicate logic to
the `Environment`.

Fixes gh-8011
7 years ago
Stephane Nicoll b03fd99209 Polish 7 years ago
Stephane Nicoll d7e000da53 Add missing JMX section 7 years ago
Johnny Lim 1bd94b3499 Remove an obsolete warning in doc
Closes gh-12150
7 years ago
Stephane Nicoll e7db69be7a Polish
See gh-11869
7 years ago
Phillip Webb 349987d9be Switch show details default to ShowDetails.NEVER
Closes gh-11869
7 years ago
Stephane Nicoll 0492d53117 Polish 7 years ago
Stephane Nicoll 6f59dd6b17 Polish "Update documentation to reference webjars-locator-core"
Closes gh-12135
7 years ago
Nikola Kološnjaji 4da4a4d385 Update documentation to reference webjars-locator-core
See gh-12135
7 years ago
Stephane Nicoll 0a795b005e Add missing documentation
See gh-12129
7 years ago
Andy Wilkinson 3e4baf744e Use role-based security to show details in the health endpoint
Closes gh-11869
7 years ago
Stephane Nicoll a5960bc0c3 Polish 7 years ago
Johnny Lim 88b184ca23 Polish 7 years ago
Stephane Nicoll 1e932860c4 Specify default micrometer values
This commit adds micrometer's default values for each monitoring
system with tests that validate those defaults are consistent. This
makes sure that those defaults are part of the metadata and any tooling
support that uses it.

Closes gh-12089
7 years ago
Stephane Nicoll 202ed7b72b Polish 7 years ago
Stephane Nicoll 6c85ed70e4 Polish "Add SignalFxConfig source property"
Closes gh-12066
7 years ago
Stephane Nicoll 1dab83adaa Polish "Restore behavior of management.metrics.export.simple.enabled"
Closes gh-12106
7 years ago
Phillip Webb 1d83e87bcd Validate @ConfigurationProperties on @Bean methods
Refactor `ConfigurationPropertiesBindingPostProcessor` to allow JSR-303
validation on `@ConfigurationProperties` defined at the `@Bean` method
level.

JSR-303 validation is now applied when a JSR-303 implementation is
available and `@Validated` is present on either the configuration
properties class itself or the `@Bean` method that creates it.

Standard Spring validation is also supported using a validator bean
named `configurationPropertiesValidator`, or by having the configuration
properties implement `Validator`.

The commit also consolidates tests into a single location.

Fixes gh-10803
7 years ago
Phillip Webb 9e75680e6f Polish 7 years ago
Madhura Bhave 51de220b55 Enable CSRF protection by default
Fixes gh-11758
7 years ago
Andy Wilkinson c1c162ab0c Polish "Add auto-configuraton for exporting metrics to Wavefront"
Closes gh-12068
7 years ago
Jon Schneider 142dbb2213 Add auto-configuration for exporting metrics to Wavefront
See gh-12068
7 years ago
Stephane Nicoll e2cb5349ba Merge micrometer docs
Closes gh-11930
7 years ago
Andy Wilkinson 87953b32b1 Merge pull request #12073 from Sébastien Deleuze
* gh-12073:
  Polish "Add Kotlin support reference documentation"
  Add Kotlin support reference documentation
7 years ago
Andy Wilkinson d96c570664 Polish "Add Kotlin support reference documentation"
Closes gh-12073
7 years ago
sdeleuze 889a06b65b Add Kotlin support reference documentation
See gh-12073
7 years ago
Brian Clozel 0c1aac14a0 Move server.display-name configuration property
The `server.display-name` configuration property is used to configure
the application display name for Servlet-based applications.

This commit moves that property to:
`server.servlet.application-display-name` and keeps the same defaults.

Closes gh-8624
7 years ago
Brian Clozel 1f8d489e5a Improve reference doc for WebTestClient
Closes gh-11203
7 years ago
Andy Wilkinson a19b1946d3 Clarify that both Java 8 and 9 are supported
Closes gh-12027
7 years ago
Andy Wilkinson 25520a9e32 Polish “Auto-configure FileDescriptorMetrics”
Closes gh-12022
7 years ago
Stephane Nicoll 83e0978a03 Polish 7 years ago
Stephane Nicoll b28cabdb12 Polish "Remove unnecessary config options for metrics"
Closes gh-12017"
7 years ago
Stephane Nicoll 28f5392787 Polish "Add health indicator for reactive MongoDB"
Closes gh-11997
7 years ago
Phillip Webb 3bec55e16c Formatting 7 years ago
Madhura Bhave 3880bdb908 Add example for customizing webflux security
Closes gh-11928
7 years ago
Phillip Webb f34aa6f4d8 Migrate to Spring Integration Micrometer support
Remove custom `SpringIntegrationMetrics` and instead provide
auto-configuration to the direct Micrometer support added in Spring
Integration 5.0.2.

Closes gh-11985
7 years ago
Andy Wilkinson 384a4ed6a9 Use metrics export.*.enabled properties to control auto-configuration
Closes gh-11978
7 years ago
Phillip Webb 0348889fd7 Polish 7 years ago
Andy Wilkinson e49d50fe9d Improve testing of metrics auto-configuration
Closes gh-11970
7 years ago
Johnny Lim 5a9865dabb Polish
Closes gh-12004
7 years ago
Brian Clozel 2be0c46562 Remove TestRestTemplate constructors taking template args
As discussed in gh-11872, `TestRestTemplate` constructor variants taking
a `RestTemplate` argument are confusing since the main goal of that
class is to mutate `RestTemplate`.

This commit removes all those constructor variants and replaces them
with `RestTemplateBuilder` arguments when possible.

Closes gh-11872
7 years ago
Stephane Nicoll eec3eed5f5 Mention how to configure the web application type in tests
Closes gh-11025
7 years ago
Stephane Nicoll 51de8ae6be Polish doc
See gh-11803
7 years ago
Stephane Nicoll ce36529ef8 Fix javadoc generation 7 years ago
Stephane Nicoll 7473642f58 Harmonize endpoints exclude property
Closes gh-11914
7 years ago
Madhura Bhave f68f23bb52 Remove documentation that's no longer applicable 7 years ago
Stephane Nicoll 2c40383524 Polish 7 years ago
Phillip Webb 5de46c3186 Polish 7 years ago
Andy Wilkinson 7b32cf82df Exclude documentation examples from main API Javadoc 7 years ago
Stephane Nicoll 0f6a13c9b3 Warn users about the caching implications of @MockBean and @SpyBean
Closes gh-10182
7 years ago
Andy Wilkinson 4beb6be179 Rename HTTP trace properties and packages
Closes gh-11934
7 years ago
Stephane Nicoll 509b068338 Clarify logging level documentation
Closes gh-11949
7 years ago
Stephane Nicoll 7cd19822c6 Polish "Add Kafka health indicator"
Closes gh-11515
7 years ago
Andy Wilkinson 76a450dfba Format with Eclipse Oxygen SR2 7 years ago
Andy Wilkinson 9a456924e4 Remove - from path-match and content-negotiation properties
Closes gh-11913
7 years ago
Stephane Nicoll 63d2e944ba Polish "Add influx property to govern whether db is auto-created or not"
Closes gh-11922
7 years ago
Andy Wilkinson 43285fb77c Document that WRITE_DATES_AS_TIMESTAMPS is disabled by default
Closes gh-11898
7 years ago
Andy Wilkinson 04083e7571 Link to Gradle plugin docs rather than duplicating build info example
Closes gh-11933
7 years ago
Andy Wilkinson 8605499a64 Provide more control over when the health endpoint shows details
Closes gh-11869
7 years ago
Phillip Webb d8de8752ea Change metrics exporters to auto-configurations
Refactor `*ExportConfiguration` classes to be regular auto-configuration
classes.

Also removed the `@ConditionalOnProperty` guards for `.enabled` properties
since auto-configuration can now be excluded in the usual way. Enabled
properties remain where applicable and are adapted for Micrometer to use
as it sees fit.

Fixes gh-11838
7 years ago
Phillip Webb 20ec7a6b52 Polish 7 years ago
Phillip Webb 6889ad59b8 Support property based MeterFilters
Add per-meter property support for `enabled`, `percentiles-histogram`,
`percentiles` and `sla`.

Fixes gh-11800
7 years ago
Andy Wilkinson 7d561f5ed0 Polish "Align with Micrometer's standardized cache metrics"
Closes gh-11918
7 years ago
Phillip Webb eab0b84a80 Polish 'Add support for multi baseDn;
Update multi baseDn support to use the recently introduced
`@Delimter` annotation

Closes gh-11764
7 years ago
Eddú Meléndez 270dc2cd72 Add support for multi baseDn
Update LDAP properties and auto-configuration to support multiple
base DN values.

See gh-11764
7 years ago
Madhura Bhave d0a2613241 Document CF actuator limitation if context-path changes
Closes gh-9081
7 years ago
dreis2211 81459efffa Use HTTPS URLs where applicable 7 years ago
Phillip Webb c3ec316890 Move Application* and *FileWriter classes
Move `ApplicationHome`, `ApplicationPid` and `ApplicationTemp` to the
`system` package. Since `system` package is now much lower level, the
existing `FileWriter` implementations also needed to move to prevent
package tangles.

Fixes gh-8614
7 years ago
Madhura Bhave 84fafe1db0 Illustrate that endpoint expose & exclude take a list
Closes gh-11861
7 years ago
Madhura Bhave 3a7d5953a8 Fix typo 7 years ago
Johnny Lim 3cead7693d Polish
Closes gh-11871
7 years ago
Madhura Bhave 905666e797 Document usage of `AuthenticationEventPublisher`
Closes gh-11420
7 years ago
Andy Wilkinson a6bb48a2f4 Remove remaining references to no longer supported container versions
Closes gh-11504
7 years ago
Andy Wilkinson de11fa6279 Replace references to jcl-over-slf4j with details of spring-jcl
Closes gh-10138
7 years ago
Stephane Nicoll 9d6cc3be46 Polish 7 years ago
Phillip Webb 6328de9e20 Add Madhura as a document author 7 years ago
Stephane Nicoll 86c1fe529d Polish 7 years ago
Andy Wilkinson 356efaa7c8 Rename trace to httptrace
Closes gh-11806
7 years ago
Madhura Bhave 134628a62d Add PathRequest to reactive security for parity 7 years ago
Madhura Bhave e80c22cbf8 Add RequestMatcher for H2 console
Fixes gh-11704
7 years ago
Phillip Webb af50a18da9 Polish 7 years ago