All Products
Search
Document Center

Application Real-Time Monitoring Service:Automatically archive Prometheus instances

Last Updated:Oct 10, 2024

Alibaba Cloud Managed Service for Prometheus provides the archival storage feature to automatically retain metric data for a long period at low costs.

Billing

The archival storage feature uses the pay-as-you-go billing method, and charges fees based on the amount of retained data. For more information, see Archival storage.

Archival storage

Each Prometheus instance is configured with a specific data storage duration. After the duration ends, the data is automatically compressed and migrated to the archival storage media if the archival storage feature is enabled. Assume that a 90-day default storage duration and a 60-day archival storage duration are configured for a Prometheus instance. Take note of the following information:

  • Data is retained for up to 150 days, and will be automatically deleted when the retention period expires.

  • Data created within the last 90 days is stored in the default storage media.

  • Data created from the last 150 days to the last 91 days is stored in the archival storage media.

image

Limits

  • Archival storage duration: You can select a duration of 60, 90, 180, or 365 days.

  • Query request: Only one request is allowed at a time for an Alibaba Cloud account to query the archived data. If you send more than one request, the system reports a timeout error. However, the query requests are unlimited for data in the default storage media.

  • This feature supports only Prometheus instances that use the pay-by-observable-data billing mode.

Enable and use the archival storage feature

You can take the following steps to enable and use the archival storage feature for a Prometheus instance.

Enable archival storage for a new instance

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Managed Service for Prometheus > Instances.

  3. On the Instances page, click Create Prometheus Instance.

  4. On the Create Instance page, set the Instance Type parameter to General-purpose Instance, click the image icon to turn on Automatic Archiving, and set the storage duration and other parameter as prompted.

    image

  5. Click Create Now.

Enable archival storage for an existing instance

  1. On the Instances page, find the Prometheus instance and click Settings in the Actions column.

  2. On the Settings page, click the Storage Duration tab.

  3. In the Storage Settings section, click the image icon to turn on Automatic Archiving, set the Storage Duration parameter, and click Save.

Disable archival storage

  1. On the Instances page, find the Prometheus instance and click Settings in the Actions column.

  2. On the Settings page, click the Storage Duration tab.

  3. In the Storage Settings section, click the image icon to turn off Automatic Archiving, and click Save.