You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/monitoring-modifying-retention-time-and-size-for-prometheus-metrics-data.adoc
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,15 @@
8
8
9
9
By default, Prometheus retains metrics data for the following durations:
10
10
11
+
ifndef::openshift-dedicated,openshift-rosa[]
11
12
* *Core platform monitoring*: 15 days
12
13
* *Monitoring for user-defined projects*: 24 hours
14
+
endif::openshift-dedicated,openshift-rosa[]
15
+
16
+
ifdef::openshift-dedicated,openshift-rosa[]
17
+
* *Core platform monitoring*: 11 days
18
+
* *Monitoring for user-defined projects*: 24 hours
19
+
endif::openshift-dedicated,openshift-rosa[]
13
20
14
21
You can modify the retention time for
15
22
ifndef::openshift-dedicated,openshift-rosa[]
@@ -26,12 +33,22 @@ Note the following behaviors of these data retention settings:
26
33
* Data in the `/wal` and `/head_chunks` directories counts toward the retention size limit, but Prometheus never purges data from these directories based on size- or time-based retention policies.
27
34
Thus, if you set a retention size limit lower than the maximum size set for the `/wal` and `/head_chunks` directories, you have configured the system not to retain any data blocks in the `/prometheus` data directories.
28
35
* The size-based retention policy is applied only when Prometheus cuts a new data block, which occurs every two hours after the WAL contains at least three hours of data.
36
+
ifndef::openshift-dedicated,openshift-rosa[]
29
37
* If you do not explicitly define values for either `retention` or `retentionSize`, retention time defaults to 15 days for core platform monitoring and 24 hours for user-defined project monitoring. Retention size is not set.
38
+
endif::openshift-dedicated,openshift-rosa[]
39
+
ifdef::openshift-dedicated,openshift-rosa[]
40
+
* If you do not explicitly define values for either `retention` or `retentionSize`, retention time defaults to 11 days for core platform monitoring and 24 hours for user-defined project monitoring. Retention size is not set.
41
+
endif::openshift-dedicated,openshift-rosa[]
30
42
* If you define values for both `retention` and `retentionSize`, both values apply.
31
43
If any data blocks exceed the defined retention time or the defined size limit, Prometheus purges these data blocks.
32
44
* If you define a value for `retentionSize` and do not define `retention`, only the `retentionSize` value applies.
33
45
* If you do not define a value for `retentionSize` and only define a value for `retention`, only the `retention` value applies.
46
+
ifndef::openshift-dedicated,openshift-rosa[]
34
47
* If you set the `retentionSize` or `retention` value to `0`, the default settings apply. The default settings set retention time to 15 days for core platform monitoring and 24 hours for user-defined project monitoring. By default, retention size is not set.
48
+
endif::openshift-dedicated,openshift-rosa[]
49
+
ifdef::openshift-dedicated,openshift-rosa[]
50
+
* If you set the `retentionSize` or `retention` value to `0`, the default settings apply. The default settings set retention time to 11 days for core platform monitoring and 24 hours for user-defined project monitoring. By default, retention size is not set.
0 commit comments