Prometheus & Grafana

The monitoring stack provides metrics collection, visualization, and alerting for the MEGATRON cluster.

Overview

ComponentDomainPortNamespace
Prometheusprometheus.m3gatr0n.com9090monitoring
Grafanagrafana.m3gatr0n.com3000monitoring
AlertManageralertmanager.m3gatr0n.com9093monitoring

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.