Prometheus log retention policy configuration not working
Issue
- Prometheus pods not retaining logs as per the set configuration in the configmap
user-workload-monitoring-configandcluster-monitoring-configavailable under respective namespacesopenshift-user-workload-monitoringandopenshift-monitoring:
apiVersion: v1
kind: ConfigMap
metadata:
name: <name>
namespace: <namespace>
data:
config.yaml: |
prometheus:
retention: 2h
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.