Deleting expired metrics (TTL)
Written by
Updated at August 21, 2024
In Yandex Monitoring, there are two types of metrics:
- Custom metrics.
- System metrics automatically collected from all active Yandex Cloud resources.
Metrics for which no new values have been received for 30 days are considered expired and automatically deleted from Yandex Monitoring. Automatic deletion of expired metrics is run once a day.
After you delete a resource, the collection of its metrics stops. The metrics data of deleted resources continues to be available for 30 days. After this period, metrics are automatically deleted.
Some services have special conditions:
- For Yandex Managed Service for Prometheus®, there is a separate retention period quota for expired metrics.
- For Yandex Compute Cloud, expired metrics are stored for 7 days. For example, if your folder hosts a VM and you delete or stop it on
August 1, 2020
, its metrics will be available in Yandex Monitoring untilAugust 8, 2020
.
To set a shorter retention period, contact technical support