Interview Prep/Monitoring & Observability/Kubernetes Monitoring, Scale & Cloud

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes Monitoring, Scale & Cloud