Monitoring Homelab

Production-style Prometheus, Grafana and Alertmanager stack on a 3-node Proxmox cluster, paging through PagerDuty.

View on GitHub →
PrometheusGrafanaAlertmanagerblackbox_exporterPagerDutyProxmox VE

A full monitoring and alerting pipeline on my 3-node Proxmox VE cluster. Every config file was written by hand, no helper scripts or one-click installers, so that I understand what each line does.

Monitoring data flow: node_exporter and blackbox_exporter feed Prometheus, which feeds Grafana and Alertmanager; Alertmanager pages through PagerDuty
Data flow from exporters to my phone.

What’s running

  • node_exporter on each Proxmox host, exposing CPU, memory, disk and network metrics.
  • Prometheus scraping every target every 15 seconds and evaluating the alert rules.
  • Grafana with a custom cluster-overview dashboard.
  • Alertmanager grouping alerts and routing them to PagerDuty.
  • blackbox_exporter probing the HTTP endpoints of the services I run.

Everything except node_exporter runs together in one LXC container; node_exporter runs directly on each host because it needs the host’s kernel data.

Alert rules

Seven rules, each with a for duration chosen so a short spike does not page me.

AlertFires whenForSeverity
NodeDownnode_exporter unreachable1 mincritical
DiskSpaceWarningroot partition above 85%5 minwarning
DiskSpaceCriticalroot partition above 95%2 mincritical
HighMemoryUsageRAM above 90%5 minwarning
HighCPUUsageCPU above 95%10 minwarning
EndpointDownHTTP probe fails2 mincritical
SlowResponseresponse slower than 5 s5 minwarning
Prometheus rules page showing the blackbox_alerts and node_alerts groups, all inactive
All seven rules loaded and quiet.

Dashboards

Grafana cluster overview dashboard with CPU, memory, disk and uptime panels for one node
Custom cluster-overview dashboard in Grafana.

Paging

Alertmanager sends firing alerts to PagerDuty through the Events API. PagerDuty opens an incident and sends a text message; if I do not acknowledge it, it calls. From crash to phone buzz is about three minutes for most alerts: the for duration plus Alertmanager’s grouping window.

I chose PagerDuty over Telegram or Discord because it is what companies use, and I wanted to set up real incident management: escalation policies, acknowledgements, on-call.

PagerDuty service page for Homelab-Alerts showing a resolved incident for an unreachable endpoint
A resolved test incident in PagerDuty.

The cluster underneath

Three second-hand small-form-factor PCs running Proxmox VE 9 as a cluster with high availability enabled. Storage is local on each node, with a ZFS pool on host-1 for backups. Without shared storage an HA failover copies the container disk to another node, which takes minutes rather than seconds; fine for a homelab. All nodes are connected over a private overlay, with no ports exposed to the internet.

Diagram of three Proxmox nodes and the services running on each
The three nodes and what runs where. Hostnames in the source diagram are lab names.

What I learned

  • How Prometheus works under the hood: the pull model, scrape jobs, relabelling and PromQL.
  • Why Alertmanager is a separate component: grouping, routing and silencing are their own problem.
  • How companies handle incidents with PagerDuty: on-call, escalation and acknowledgement.

The install was the easy part. Understanding what each metric means, choosing thresholds that do not cry wolf, and building dashboards that actually help took most of the time.

← All projects