Commit 7550f92e authored by Stephane Nicoll's avatar Stephane Nicoll

Clarify DataSource metrics section for custom DataSources

Closes gh-12851
parent 29a719df
......@@ -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`).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment