From 167c8caf6367d25d8b5849f9ae7f1e4467fdfae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Wed, 23 Apr 2025 11:21:40 +0200 Subject: [PATCH] Add an explicit note about having to enable cache metrics See gh-23047 --- .../docs/antora/modules/reference/pages/actuator/metrics.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc index f3e1d0d4f6b..866f6fb1a52 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc @@ -912,6 +912,9 @@ The following cache libraries are supported: * Any compliant JCache (JSR-107) implementation * Redis +WARNING: Metrics should be enabled for the auto-configuration to pick them up. +Refer to the documentation of the cache library you are using for more details. + Metrics are tagged by the name of the cache and by the name of the javadoc:org.springframework.cache.CacheManager[], which is derived from the bean name. NOTE: Only caches that are configured on startup are bound to the registry.