Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Archive > Implementation Guide—Red Hat OpenShift Container Platform 4.10 on AMD-powered Dell Infrastructure > Adding storage for monitoring pods
By default, alert and metrics data are stored in an empty directory. When the pods are deleted, the data is also deleted. The section describes how to save the data in PVs.
To add PV storage to Prometheus and Alert Manager pods:
[core@csah-pri ~] oc create -f <YAML file>
[core@csah-pri ~]$ oc edit configmap cluster-monitoring-config -n openshift-monitoring
apiVersion: v1
data:
config.yaml: |
prometheusk8s:
volumeClaimTemplate:
metadata:
name: prometheusdb
spec:
storageClassName: dellcsi-powerstore-sc
resources:
requests:
storage: 40Gi
alertmanagerMain:
volumeClaimTemplate:
metadata:
name: alertmanager
spec:
storageClassName: dellcsi-powerstore-sc
resources:
requests:
storage: 40Gi
kind: ConfigMap
metadata:
creationTimestamp: "2022-07-21T11:26:25Z"
name: cluster-monitoring-config
namespace: openshift-monitoring
resourceVersion: "224297251"
uid: c684630e-09e4-48bd-8327-0dd9df40e35d
[core@csah-pri ~]$ oc get pods -n openshift-monitoring | grep -i -E "alertmanager|prometheus-k8s"
alertmanager-main-0 6/6 Running 0 4m44s
alertmanager-main-1 6/6 Running 0 4m44s
prometheus-k8s-0 6/6 Running 0 4m48s
prometheus-k8s-1 6/6 Running 0 4m48s