Which `kube-prometheus-stack` values do you always change before going to production?
IntermediateProductionKubernetes & Multi-Cluster Observability
Answer
The defaults are tuned for a demo. Before production we set persistent storage, retention by time and size, real resources, HA replicas, an external cluster label, and open up the selectors so teams' ServiceMonitors are picked up without the Helm release label.
prometheus:
prometheusSpec:
replicas: 2
retention: 15d
retentionSize: 90GB # keep below the PVC size
externalLabels: { cluster: prod-eu-1 }
serviceMonitorSelectorNilUsesHelmValues: false
podMonitorSelectorNilUsesHelmValues: false
ruleSelectorNilUsesHelmValues: false
resources: { requests: { cpu: "2", memory: 12Gi }, limits: { memory: 16Gi } }
storageSpec:
volumeClaimTemplate:
spec: { storageClassName: gp3, resources: { requests: { storage: 100Gi } } }
alertmanager:
alertmanagerSpec: { replicas: 3 }
Also pin the chart version and keep the values file in Git.
More on Kubernetes & Multi-Cluster Observability
On a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?IntermediateHow do you monitor GPU nodes running ML workloads?Intermediate