Configure VM Storage Retention

This page describes the steps to configure and update the retention period for VictoriaMetrics (vmStorage) by modifying the ad-core.yaml configuration file.

Step 1: Generate ad-core.yaml (if not already present)

Check whether the following file exists:

Bash
Copy

If the file is not present, generate it using:

Bash
Copy

Step 2: Open the Configuration File

Edit the following file:

Bash
Copy

Step 3: Locate the ad-vmstorage Section

Find the following configuration block:

Bash
Copy

Step 4: Add the Retention Period

Update the environment section as shown below:

Bash
Copy

Replace 31d with the required retention duration.

Example values:

  • 7d → 7 days
  • 30d → 30 days
  • 90d → 90 days

Step 5: Save and Exit the File

Save and close the file.

Step 6: Restart the Services

Run the following command to apply the changes:

Bash
Copy
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches