Custom data retention
Data Retention Strategies
There are two ways to define retention in groundcover:
Simple - each type of data has a global retention period
Advanced - data is retained based on various criteria such as cluster, log level, namespace, etc.
For metrics, only the simple strategy is supported.
Controlling Retention
For BYOC deployments, the values will need to be set by the groundcover team. Please contact us to perform any retention changes.
Retention Field Format
Retention value format is: {amount}[h(ours), d(ays), w(eeks), y(ears)] .
For example: 4h, 30d, 6w, 1y
Simple Data Retention
The most common and simple way to configure retention in groundcover. Based solely on data type, without exceptions.
Default retention values
Below are the default retention values for BYOC:
Traces - 7 Days
Metrics - 30 days
Logs - 30 days
Events - 7 days
Custom Retention Overrides
The following is not supported for metrics - which allow only a global retention period
groundcover allows you to customize retention policies for your data to better manage storage and compliance requirements. You can define specific retention periods for logs, traces, and events based on various criteria such as cluster, log level, namespace and more.
The following rules apply:
Values not meeting any criteria will use the default retention period for the specific data type
In instances of overlapping overrides, the override with the shorter retention interval will be used
Examples of Custom Overrides
Traces
Traces with
cluster: prod,namespace: app- 7dTraces with
env: staging- 14dElse - 24h
Logs
Logs with
cluster: prod,level: info- 20dLogs with
cluster: prod,level: error- 30dElse - 3d
Events
Events with
cluster: dev,type: Warning- 15dElse - 15d
Available Retention Fields
Only exact matches are supported - regex or pattern matching is not available
You can use any of the fields below to specify custom retention for the relevant data type
Logs
clustersourceenvenv_typeworkloadnamespacelevel
Traces
clusterworkloadcontainersourceenvenv_typeprotocol_typeserverreturn_code
Events
clustersourceenv_nameentity_workloadentity_namespacetype
Last updated
