Kubernetes Monitoring Stack Overview

Prerequisites
Install Helm first if it is not available on your control node:
Add Prometheus Community Helm Repository
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
Deploy kube-prometheus-stack with Helm
kubectl create ns monitoring
helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring
# Optional: customize values.yaml and apply with upgrade --install
wget https://raw.githubusercontent.com/prometheus-community/helm-charts/main/charts/kube-prometheus-stack/values.yaml
helm upgrade --install monitoring prometheus-community/kube-prometheus-stack -n monitoring -f values.yaml
Verify Pods and Access Dashboards via Port Forwarding
kubectl get pods -n monitoring
NAMESPACE NAME READY STATUS RESTARTS AGE
monitoring alertmanager-monitoring-kube-prometheus-alertmanager-0 2/2 Running 0 5m
monitoring monitoring-grafana-596asdsd79-pm5f6 3/3 Running 0 5m
monitoring monitoring-kube-prometheus-operator-qwe14dbc64-22qtl 1/1 Running 0 5m
monitoring monitoring-kube-state-metrics-7fasdqw55b-7qk22 1/1 Running 0 5m
monitoring monitoring-prometheus-node-exporter-2aslt 1/1 Running 0 5m
monitoring prometheus-monitoring-kube-prometheus-prometheus-0 2/2 Running 0 5m
Forward ports locally via stable Kubernetes Services to access Grafana (3000), Prometheus (9090), and Alertmanager (9093):
kubectl port-forward -n monitoring svc/monitoring-grafana 3000:80
kubectl port-forward -n monitoring svc/monitoring-kube-prometheus-prometheus 9090:9090
kubectl port-forward -n monitoring svc/monitoring-kube-prometheus-alertmanager 9093:9093