This topic describes how to adjust the storage duration of data samples that use the pay-as-you-go and subscription billing methods.

Procedure

By default, each data sample is stored for 15 days. If you want to store data for a longer duration, perform the following steps to adjust the storage duration:

  1. Log on to the Prometheus Service console.
  2. In the top navigation bar, select the region where the Prometheus instance resides. Then, click the name of the Prometheus instance.
  3. In the left-side navigation pane, click Settings. On the page that appears, click the Storage Duration tab. Set the storage duration and click Save.
    Note
    • You can change the storage duration to 30 days, 60 days, 90 days, or 180 days.
    • You cannot change the storage durations of the data samples for Prometheus instances for Alibaba Cloud services, such as Elastic Compute Service, ApsaraDB for MongoDB, and ApsaraDB for Redis. For more information about Prometheus instance types, see What is Prometheus Service?

Subscription

To adjust the storage duration of data samples that use the subscription billing method, perform the following steps:

  1. Log on to the Prometheus Service console.
  2. In the top navigation bar of the Prometheus Service console, select the region in which the Prometheus instance resides. Locate the instance in the instance list, choose Service Change > Specification Upgrade in the Actions column, and adjust the storage duration.