Prometheus & Grafana
The monitoring stack provides metrics collection, visualization, and alerting for the MEGATRON cluster.
Overview
| Component | Domain | Port | Namespace |
|---|---|---|---|
| Prometheus | prometheus.m3gatr0n.com | 9090 | monitoring |
| Grafana | grafana.m3gatr0n.com | 3000 | monitoring |
| AlertManager | alertmanager.m3gatr0n.com | 9093 | monitoring |
Prometheus
Prometheus scrapes metrics from Kubernetes pods, nodes, and services. Key metrics include:
- Node CPU, memory, disk, network
- Pod resource usage
- K3s API server latency
- Application-specific metrics
Grafana
Grafana provides dashboards for visualizing Prometheus metrics. Access at https://grafana.m3gatr0n.com.
AlertManager
AlertManager routes alerts from Prometheus to notification channels.
Known Issue: AlertManager is consuming 203% CPU (24K+ hours runtime). See Current Issues.
kubectl get pods -n monitoring
kubectl top pods -n monitoring
TODO: expand with dashboard inventory, alert rules, notification channels, and retention configuration.