Skip to content

Cluster Monitoring & Logging

Observability in Kubernetes relies on three pillars:

  1. Metrics: Gathered via the Kubernetes metrics-server and scraped by Prometheus.
  2. Logs: Captured from container stdout and stderr by agents like Fluentbit or Promtail and sent to Grafana Loki or Elasticsearch.
  3. Cluster Dashboard: Web-based UI providing an overview of cluster health, resource utilization, and pod status.
Terminal window
# Check node CPU and memory consumption
kubectl top nodes
# Check pod resource utilization
kubectl top pods -A