Skip to content

Commit cd5ec8d

Browse files
authored
Merge pull request #72913 from eromanova97/OBSDOCS-884
OBSDOCS-884: OCP, default retention time for in-cluster prometheus
2 parents c0b831d + 3e6a32f commit cd5ec8d

2 files changed

+9
-3
lines changed

modules/monitoring-granting-users-permission-to-monitor-user-defined-projects.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// * monitoring/enabling-monitoring-for-user-defined-projects.adoc
44

5+
:_mod-docs-content-type: CONCEPT
56
[id="granting-users-permission-to-monitor-user-defined-projects_{context}"]
67
= Granting users permission to monitor user-defined projects
78

modules/monitoring-modifying-retention-time-and-size-for-prometheus-metrics-data.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
[id="modifying-retention-time-and-size-for-prometheus-metrics-data_{context}"]
77
= Modifying the retention time and size for Prometheus metrics data
88

9-
By default, Prometheus automatically retains metrics data for 15 days. You can modify the retention time for
9+
By default, Prometheus retains metrics data for the following durations:
10+
11+
* *Core platform monitoring*: 15 days
12+
* *Monitoring for user-defined projects*: 24 hours
13+
14+
You can modify the retention time for
1015
ifndef::openshift-dedicated,openshift-rosa[]
1116
Prometheus
1217
endif::openshift-dedicated,openshift-rosa[]
@@ -21,12 +26,12 @@ Note the following behaviors of these data retention settings:
2126
* 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.
2227
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.
2328
* 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.
24-
* If you do not explicitly define values for either `retention` or `retentionSize`, retention time defaults to 15 days and retention size is not set.
29+
* 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.
2530
* If you define values for both `retention` and `retentionSize`, both values apply.
2631
If any data blocks exceed the defined retention time or the defined size limit, Prometheus purges these data blocks.
2732
* If you define a value for `retentionSize` and do not define `retention`, only the `retentionSize` value applies.
2833
* If you do not define a value for `retentionSize` and only define a value for `retention`, only the `retention` value applies.
29-
* If you set the `retentionSize` or `retention` value to number 0, the default settings apply. The default settings set retention time to 15 days and do not set a value for retention size.
34+
* 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.
3035
3136
.Prerequisites
3237

0 commit comments

Comments
 (0)