diff --git a/pkg/storage/chunk/cache/fifo_cache.go b/pkg/storage/chunk/cache/fifo_cache.go index 5c63da2c27de..2392bc837153 100644 --- a/pkg/storage/chunk/cache/fifo_cache.go +++ b/pkg/storage/chunk/cache/fifo_cache.go @@ -4,6 +4,7 @@ import ( "container/list" "context" "flag" + "fmt" "sync" "time" "unsafe" @@ -98,7 +99,7 @@ type cacheEntry struct { // NewFifoCache returns a new initialised FifoCache of size. func NewFifoCache(name string, cfg FifoCacheConfig, reg prometheus.Registerer, logger log.Logger) *FifoCache { - util_log.WarnExperimentalUse("In-memory (FIFO) cache", logger) + util_log.WarnExperimentalUse(fmt.Sprintf("In-memory (FIFO) cache - %s", name), logger) if cfg.DeprecatedSize > 0 { flagext.DeprecatedFlagsUsed.Inc() diff --git a/pkg/storage/chunk/cache/redis_cache.go b/pkg/storage/chunk/cache/redis_cache.go index 284457980330..ec3491db7e7d 100644 --- a/pkg/storage/chunk/cache/redis_cache.go +++ b/pkg/storage/chunk/cache/redis_cache.go @@ -2,6 +2,7 @@ package cache import ( "context" + "fmt" "github.com/go-kit/log" "github.com/go-kit/log/level" @@ -18,7 +19,7 @@ type RedisCache struct { // NewRedisCache creates a new RedisCache func NewRedisCache(name string, redisClient *RedisClient, logger log.Logger) *RedisCache { - util_log.WarnExperimentalUse("Redis cache", logger) + util_log.WarnExperimentalUse(fmt.Sprintf("Redis cache - %s", name), logger) cache := &RedisCache{ name: name, redis: redisClient,