loki
loki copied to clipboard
Documentation feedback: /docs/sources/configure/storage.md
Working variant:
storageConfig:
tsdb_shipper:
active_index_directory: var/loki/index
cache_location: var/loki/index_cache
cache_ttl: 24h
Without 'var' we need to mount emptyDir.
:notebook_with_decorative_cover: Assuming a context where Loki is deployed using Docker containers in Kubernetes, due to the mention of emptyDir.
Changing the absolute path to a relative path would cause data to be written into the overlay filesystem of the container, which should never be done.
The documentation should explain that any data directories referenced in the config should always be mounted persistent volumes. emptyDir may be suitable for certain cases, but should be used with caution, because it's ephemeral storage and may be limited in size (especially when backed by memory).
@chaudum, but how does it work if we use cloud storage? Loki already has PV by default. Do we need extra volumes in any case?