You can configure retention interval period for metrics in the values.yaml file.

During deployment, if you want to update the retention interval period, then update the following parameter in the values.yaml file.
elasticsearch:
  retentionInterval: ''
For example:
elasticsearch:
  retentionInterval: 3w

For information on the Elasticsearch aggregation table, see the Retention of Metrics and Events Data section in the VMware Telco Cloud Service Assurance Configuration Guide.