mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * observability/monitoring/configuring-the-monitoring-stack.adoc
|
|
|
|
:_mod-docs-content-type: CONCEPT
|
|
[id="configuring-persistent-storage_{context}"]
|
|
= Configuring persistent storage
|
|
|
|
Run cluster monitoring with persistent storage to gain the following benefits:
|
|
|
|
* Protect your metrics and alerting data from data loss by storing them in a persistent volume (PV). As a result, they can survive pods being restarted or recreated.
|
|
* Avoid getting duplicate notifications and losing silences for alerts when the Alertmanager pods are restarted.
|
|
|
|
// tag::CPM[]
|
|
[IMPORTANT]
|
|
====
|
|
In multi-node clusters, you must configure persistent storage for Prometheus and Alertmanager to ensure high availability.
|
|
====
|
|
// end::CPM[]
|
|
// tag::UWM[]
|
|
[IMPORTANT]
|
|
====
|
|
In multi-node clusters, you must configure persistent storage for Prometheus, Alertmanager, and Thanos Ruler to ensure high availability.
|
|
====
|
|
// end::UWM[]
|
|
|
|
[NOTE]
|
|
====
|
|
For production environments, it is highly recommended to configure persistent storage.
|
|
====
|
|
|
|
[id="persistent-storage-prerequisites_{context}"]
|
|
== Persistent storage prerequisites
|
|
|
|
ifdef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
|
|
* Use the block type of storage.
|
|
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
|
|
|
|
ifndef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
|
|
* Dedicate sufficient persistent storage to ensure that the disk does not become full.
|
|
|
|
* Use `Filesystem` as the storage type value for the `volumeMode` parameter when you configure the persistent volume.
|
|
+
|
|
[IMPORTANT]
|
|
====
|
|
* Do not use a raw block volume, which is described with `volumeMode: Block` in the `PersistentVolume` resource. Prometheus cannot use raw block volumes.
|
|
|
|
* Prometheus does not support file systems that are not POSIX compliant.
|
|
For example, some NFS file system implementations are not POSIX compliant.
|
|
If you want to use an NFS file system for storage, verify with the vendor that their NFS implementation is fully POSIX compliant.
|
|
====
|
|
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[] |