Does Prometheus delete data?

Does Prometheus delete data?

There may be a time when you want to delete data from the Prometheus TSDB database. Data will be automatically deleted after the storage retention time has passed. By default it is 15 days. If you want to delete specific data earlier, then you are able.

How do I remove old data from Prometheus?

However, if you need to manually remove this data from the system, you can use the rest API that is provided by the Prometheus component.

  1. To delete metrics data, see Delete Series .
  2. To remove the deleted data from the disk, and clean up the disk space, see Clean Tombstones .

How to use and remove trend information from time series?

Running the example first fits the linear model to the integer-indexed observations and plots the trend line (green) over the original dataset (blue). Next, the trend is subtracted from the original dataset and the resulting detrended dataset is plotted.

How long does it take to purge old data?

Retention is set to 30 days by default. The oldest ingested data is purged first (the “First In First Out” approach). Consider an example environment with retention behavior Continue ingress and purge old data: Data retention time is set to 400 days. Capacity is set to S1 unit, which contains 30 GB of total capacity.

How many days does it take to retain 30GB of data?

Assume the environment’s ingress rate may increase to an average 0.189 GB per day. In that busy time frame, about 158 days of data are retained (30GB/0.189 = 158.73 days of retention). This time is less than the desired data retention time frame.

When to purge old data in azure time?

The Purge old data setting purges data once the environment’s limits (retention time, size, or count, whichever comes first) are reached. Retention is set to 30 days by default. The oldest ingested data is purged first (the “First In First Out” approach). Consider an example environment with retention behavior Continue ingress and purge old data: