Redis cache support for both Results Cache and Chunks Cache in Loki

Hi everyone,

I’m interested in configuring Redis as a caching backend for my Loki setup and want to clarify something from the documentation.

I understand that Loki supports Redis for the results cache , but I’m unclear about chunks cache support. Loki components | Grafana Loki documentation

Specifically, I’d like to know:

  • Can Redis be used for both resultsCache and chunksCache?

Hello!

query_range:
  align_queries_with_step: true
  cache_results: true
  parallelise_shardable_queries: true
  results_cache:
    cache:
      redis:
        endpoint: redis:6379
        expiration: 1h

chunk_store_config:
  chunk_cache_config:
    redis:
      endpoint: redis:6379
      expiration: 24h

something like this works for me
in this example loki and redis in containers inside same docker network