Skip to main content

Phase 4 — Monitoring Stack

Visibility into cluster health, node metrics, and application performance.


Stack

ToolPurpose
PrometheusMetrics collection & storage
GrafanaDashboards & visualization
LokiLog aggregation (phase 11)
AlertmanagerAlerts & notifications

Install kube-prometheus Stack

kubectl apply -f https://github.com/prometheus-operator/prometheus-operator/releases/latest/download/bundle.yaml

This deploys the Prometheus Operator which manages Prometheus, Grafana, and Alertmanager via CRDs.


Access Grafana

kubectl port-forward svc/grafana -n monitoring 3000:3000

Open: http://localhost:3000

Default credentials: admin / admin


Key Dashboards to Import

DashboardGrafana ID
Kubernetes cluster overview7249
Node exporter full1860
k3s cluster monitoring13770

Done When

✔ Prometheus scraping all nodes
✔ Grafana dashboards showing metrics
✔ Node CPU, RAM, disk visible