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

During deployment, if you want to update the retention interval period, then add the following parameters in the values-user-overrides.yaml file.
appSpecs:
  elasticsearch:
    additionalValuesFile: values-retention-<ranging from 1w-7w>

elasticsearch:
  retentionInterval: <ranging from 1w-7w>
If the retentionInterval is for 3w, then set the additionalvaluesFile parameter to 3w as shown in the following example.
appSpecs:
  elasticsearch:
    additionalValuesFile: values-retention-3w

elasticsearch:
  retentionInterval: 3w