canonical / loki-k8s-operator

https://charmhub.io/loki-k8s
Apache License 2.0
10 stars 16 forks source link

Allow Specifying retention periods for individual streams. #472

Open Osama-Kassem opened 1 week ago

Osama-Kassem commented 1 week ago

Enhancement Proposal

For audit compliance reasons, we'd like to keep a subset of our logs for an extended period of time. We can't set the retention-period config globally, as all logs would be stored for this period, and we'd run out of disk space very quickly. Currently, the charm docs say: Specifying retention periods for individual streams is not currently supported..

This feature is supported by compactor using the retention_stream configuration: https://grafana.com/docs/loki/latest/operations/storage/retention/#retention-configuration