Search
K

Customize Retention

Customize groundcover retention of logs, metrics and traces
If you require retention for very long time periods, please refer to our Customize Storage guide.

1. Configure a custom Helm values.yaml file

Either create a new custom-values.yaml or edit your existing groundcover values.yaml
global:
logs:
retention: 3d # {amount}[h(ours), d(ays), w(eeks), y(ears)]
traces:
retention: 24h # {amount}[h(ours), d(ays), w(eeks), y(ears)]
victoria-metrics-single:
server:
# -- Data retention period for metrics, {amount}[h(ours), d(ays), w(eeks), y(ears)], default is 7d
retentionPeriod: 7d

2. Upgrade groundcover installation

For groundcover CLI-based installations

groundcover deploy -f <custom-values.yaml>

For helm-based installations

helm upgrade <groundcover release name> groundcover/groundcover \
-n <groundcover namespace> --reuse-values -f <custom-values.yaml>