Cluster Monitoring & Logging
Observability in Kubernetes relies on three pillars:
- Metrics: Gathered via the Kubernetes
metrics-serverand scraped by Prometheus. - Logs: Captured from container
stdoutandstderrby agents like Fluentbit or Promtail and sent to Grafana Loki or Elasticsearch. - Cluster Dashboard: Web-based UI providing an overview of cluster health, resource utilization, and pod status.
# Check node CPU and memory consumptionkubectl top nodes
# Check pod resource utilizationkubectl top pods -A