What is kube-prometheus-stack and what does it install?
BeginnerConceptKubernetes Monitoring, Scale & Cloud
Answer
kube-prometheus-stack is the prometheus-community Helm chart that gives you a full Kubernetes monitoring setup in one release:
- Prometheus Operator and its CRDs
- Prometheus and Alertmanager (managed by the operator)
- Grafana with ready-made dashboards
- node-exporter (DaemonSet) and kube-state-metrics
- ServiceMonitors for kubelet/cAdvisor, API server, CoreDNS, and control-plane components
- Default alerting and recording rules from the kubernetes-mixin
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring --create-namespace
On managed clusters (EKS, GKE, AKS) we disable the scrapes for control-plane components we cannot reach, such as kubeScheduler, kubeControllerManager and kubeEtcd, to avoid permanent TargetDown alerts.
More on Kubernetes Monitoring, Scale & Cloud
What CRDs does the Prometheus Operator provide?IntermediateHow does the Prometheus Operator decide which ServiceMonitors to load?IntermediateWhich cAdvisor container memory metric should you watch, and why?IntermediateHow do metrics-server and the custom/external metrics APIs relate to HPA?IntermediateWhich kube-state-metrics metrics do you use most?BeginnerWhat endpoints does the kubelet expose for Prometheus?Advanced