
kubectl logs, accessing node and kubelet logs, and options for cluster-wide log aggregation. Finally, you’ll see common centralized logging architectures and tools, how to build dashboards, and how to set up alerting rules.
What you will learn
- Cluster component monitoring: observing the API server, scheduler, controller-manager, etcd, kubelets, and node health/resource metrics.
- Application monitoring: exposing and scraping application metrics, using the Kubernetes
metrics-server, Prometheus for metric collection, and Grafana for visualization. - Logging fundamentals: using
kubectl logsfor pod debugging, finding node and kubelet logs, and using cluster-level log collectors. - Centralized log aggregation: architectures and tools such as Fluentd / Fluent Bit, Logstash, Elasticsearch / Kibana (EFK), and Loki as an alternative.
- Alerting and dashboards: integrating Alertmanager, creating alerts, and building Grafana dashboards to maintain cluster reliability.
- Hands-on exercises: practical labs to practice setup, querying, and troubleshooting.
Quick troubleshooting commands
Metrics vs logs: use metrics for trend analysis and alerting, and logs for detailed debugging and forensic investigation. Combine both for full observability.
Avoid sending sensitive or PII data to external logging backends without masking, encryption, and strict access controls. Review log retention and access policies before shipping logs off-cluster.
- Deploy a
metrics-serverand validate node metrics withkubectl top. - Install Prometheus + Grafana (or use a managed service) and create a dashboard for cluster CPU/memory usage.
- Instrument a sample app to expose a
/metricsendpoint and configure Prometheus to scrape it. - Use
kubectl logsto debug a failing pod, then forward logs to a Fluent Bit collector and view them in Kibana or Grafana Explore. - Configure Alertmanager with basic alert rules (e.g., node memory pressure, pod CrashLoopBackOff) and test notification routing.
- Kubernetes Official Documentation — Observability
- Prometheus
- Grafana
- Fluentd / Fluent Bit
- Elasticsearch / Kibana
- Loki (Grafana Labs)
- Alertmanager (Prometheus)