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.
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
Log on to the ARMS console.
In the left-side navigation pane, choose .
On the Instances page, click Create Prometheus Instance.
On the Create Instance page, set the Instance Type parameter to General-purpose Instance, click the
icon to turn on Automatic Archiving, and set the storage duration and other parameter as prompted.
Click Create Now.
Enable archival storage for an existing instance
On the Instances page, find the Prometheus instance and click Settings in the Actions column.
On the Settings page, click the Storage Duration tab.
In the Storage Settings section, click the
icon to turn on Automatic Archiving, set the Storage Duration parameter, and click Save.
Disable archival storage
On the Instances page, find the Prometheus instance and click Settings in the Actions column.
On the Settings page, click the Storage Duration tab.
In the Storage Settings section, click the
icon to turn off Automatic Archiving, and click Save.