You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release v4.0.0 we start using TSDB. This issue has been opened to track the addition of a parametric log retention in the loki configuration. We should use the compactor component to do so because it is the long term supported way to do this, as stated in the official documentation.
Using the compactor we should pay attention to users that still have not migrated their store to TSDB since compactor does not support legacy stores. Below there are some configuration examples.
Details ⚙️
Compactor specific configuration: as shown in the official documentation the compactor is responsible for logs retention. Here an example configuration can be found.
Limits configuration: the retention period is configured in the limits_config section of Loki configuration. Here is an example.
...limits_config:
retention_period: 744h...
The value specified in retention_period is applied for all log streams. A more granular retention policy can be applied using retention_stream where a selector can be specified and the retention policy applies for all the streams that match the selector. Here an example:
With the release v4.0.0 we start using TSDB. This issue has been opened to track the addition of a parametric log retention in the loki configuration. We should use the compactor component to do so because it is the long term supported way to do this, as stated in the
official documentation
.Using the compactor we should pay attention to users that still have not migrated their store to TSDB since compactor does not support legacy stores. Below there are some configuration examples.
Details ⚙️
Compactor specific configuration: as shown in the official documentation the compactor is responsible for logs retention. Here an example configuration can be found.
Limits configuration: the retention period is configured in the
limits_config
section of Loki configuration. Here is an example.The value specified in
retention_period
is applied for all log streams. A more granular retention policy can be applied usingretention_stream
where a selector can be specified and the retention policy applies for all the streams that match the selector. Here an example:A per tenant override can also be specified to allow a further granular retention policy. Here the configuration:
Here the
overrides.yaml
example using theruntime overrides
:The text was updated successfully, but these errors were encountered: