Why Monitor Kubernetes?
Monitoring gives you visibility into cluster health, resource usage, and application performance on your Breeze. Prometheus collects metrics and Grafana visualizes them in dashboards.
Install with Helm
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install monitoring prometheus-community/kube-prometheus-stack \
--namespace monitoring --create-namespace \
--set prometheus.prometheusSpec.retention=7d \
--set grafana.adminPassword=YourSecurePasswordVerify the Deployment
kubectl get pods -n monitoring
kubectl get svc -n monitoringAccess Grafana
kubectl port-forward -n monitoring svc/monitoring-grafana 3000:80 --address 0.0.0.0Visit http://your-breeze-ip:3000 and log in with username admin and the password you set.
Built-in Dashboards
The kube-prometheus-stack includes pre-configured dashboards for:
- Cluster resource usage (CPU, memory, disk)
- Node-level metrics
- Pod and container metrics
- Kubernetes API server health
Query Metrics with PromQL
Access Prometheus directly:
kubectl port-forward -n monitoring svc/monitoring-kube-prometheus-prometheus 9090:9090 --address 0.0.0.0Example queries:
# CPU usage by namespace
sum(rate(container_cpu_usage_seconds_total[5m])) by (namespace)
# Memory usage by pod
container_memory_working_set_bytes{namespace="default"}Set Up Alerts
Create a PrometheusRule resource:
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: app-alerts
namespace: monitoring
spec:
groups:
- name: app
rules:
- alert: HighMemoryUsage
expr: container_memory_working_set_bytes > 500000000
for: 5m
labels:
severity: warningPrometheus and Grafana give you full observability into everything running on your Breeze.