From 7550f92ea5ce0b6d6ae6c6f7aeabd7522ac4b559 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 13 Apr 2018 14:50:44 +0200 Subject: [PATCH] Clarify DataSource metrics section for custom DataSources Closes gh-12851 --- .../src/main/asciidoc/production-ready-features.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index b3516f6127..dbbb824b68 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -1757,6 +1757,10 @@ these gauges has a name that is prefixed by `jdbc`. Metrics are also tagged by the name of the `DataSource` computed based on the bean name. +TIP: By default, Spring Boot provides metadata for all supported data sources; you can +add additional `DataSourcePoolMetadataProvider` beans if your favorite data source isn't +supported out of the box. See `DataSourcePoolMetadataProvidersConfiguration` for examples. + Also, Hikari-specific metrics are exposed with a `hikaricp` prefix. Each metric is tagged by the name of the Pool (can be controlled with `spring.datasource.name`).