-
Task
-
Resolution: Done
-
Normal
-
None
-
devex docs #227 Nov 3-Nov 24, devex docs #228 Nov 24-Dec 15, devex docs #229 Dec 15-Jan 5, devex docs #230 Jan 5-Jan 26, devex docs #231 Jan 26-Feb 16
-
5
-
---
-
---
Goals
- Expose Loki's stream-based retention capabilities in the LokiStack custom resources for OpenShift Administrators.
- Expose Loki's stream-based retention capabilities in the LokiStack custom resource for OpenShift Application owners.
Motivation
The Loki Operator manages LokiStack resources that consists of a set of Loki components for ingestion/querying and optionally a gateway microservice that ensures authenticated and authorized access to logs stored by Loki. Retention in Loki has always been global for a cluster and deferred to the underlying object store. Since v2.3.0 Loki can handle retention through the Compactor component. Retention can be configured per tenant and per stream. These different retention configurations allow storage cost control and meet security and compliance requirements in a more granular way. A common use case for custom policies is to delete high-frequency logs earlier than other (low-frequency) logs.
Acceptance Criteria
- The OpenShift Administrator can enable the retention via the LokiStack custom resource.
- The OpenShift Administrator can declare per-tenant and global policies through the LokiStack custom resource ordered by priority.
Risk and Assumptions
- Assuming the OpenShift Administrators are the single eliglibable persona to configure stream-based retention polices for all application owners
- OpenShift Application owners can only delegate their retention policy requests w/o having access rights to edit the Lokistack custom resource.
Documentation Considerations
[rkratky] Provide procedure docs for enabling/configuring the retention policies.
Additional Notes
- Enhancement Proposal (Upstream): Loki Operator Stream-based Retention