Monitoring a Homelab With node_exporter and Grafana
Bottom line: Node_exporter plus Prometheus plus Grafana gives real alerting on temperatures, SMART, disk fill and service state for about 200 MB of RAM. The value is not the graphs — it is the alert rules, so write those first and treat the dashboards as debugging aids.
Components
node_exporterper host, 9100smartctl_exporterfor drive attributes- Prometheus scraping every 15 s, 30-day retention
- Alertmanager routing to a chat webhook
- Grafana for read-only debugging views
The rules worth writing
1 | - alert: DiskWillFillIn4Days |
predict_linear on the available bytes is the one people skip and the one that prevents the outage: it fires on trend, days before the disk is full.
SMART specifically
node_exporter --collector.textfile.directory plus a smartctl -a cron writing a .prom file. Watch Reallocated_Sector_Ct, Media_Wearout_Indication and Temperature_Celsius — a nonzero reallocated count that grows is a failing disk regardless of what the overall SMART verdict says.
Retention and cardinality
Do not keep raw per-core CPU series for 30 days; drop them with metric_relabel_configs and keep aggregates. A homelab Prometheus that hits 40 GB is a configuration problem.
Alert fatigue control
Every rule needs for: so a blip does not page. Route warnings to a muted channel and only criticals to the phone. A rule that fires more than twice a week without action should be widened or deleted.
Grafana as secondary
One dashboard per host with CPU, memory, disk trend, network and temperatures. Read it when an alert fires; do not monitor it as a primary surface.
Operating notes
Write the alert rules first; the dashboards are for debugging after an alert fires.
1 | - alert: DiskWillFillIn4Days |
predict_linear on available bytes fires on trend, days before the disk fills — the rule people skip.
SMART
--collector.textfile.directory plus a smartctl -a cron writing .prom. Watch reallocated sectors, wear indication and temperature; a growing reallocated count is a failing disk regardless of the overall verdict.
Cardinality
Drop per-core CPU series after 30 days with metric_relabel_configs; keep aggregates. A homelab Prometheus at 40 GB is a config problem.
Fatigue control
Every rule needs for:. Warnings to a muted channel, criticals to the phone. A rule firing twice a week without action gets widened or deleted.
FAQ
How much RAM does a node_exporter, Prometheus and Grafana stack use?
About 200 MB of RAM. That covers real alerting on temperatures, SMART attributes, disk fill and service state. The article’s point is that the alert rules carry the value, not the graphs.
How does the DiskWillFillIn4Days alert work?
It uses predict_linear on node_filesystem_avail_bytes for the root mountpoint over a 6-hour window, projecting 4 days ahead, with a for: of 1 hour. Because it fires on trend rather than current usage, it triggers days before the disk is actually full. The article calls it the rule people skip and the one that prevents the outage.
How do I get SMART data into Prometheus?
Run node_exporter with --collector.textfile.directory and have a cron job run smartctl -a and write a .prom file into that directory. Watch Reallocated_Sector_Ct, Media_Wearout_Indication and Temperature_Celsius. A nonzero reallocated count that keeps growing means a failing disk regardless of the overall SMART verdict.
Why is my homelab Prometheus using so much disk?
Likely raw high-cardinality series such as per-core CPU kept for the full 30-day retention. Drop those with metric_relabel_configs and keep aggregates instead. A homelab Prometheus that reaches 40 GB is a configuration problem, not a capacity requirement.
How do I stop alert rules from paging me constantly?
Give every rule a for: so a brief blip does not fire. Route warnings to a muted channel and send only criticals to the phone. Any rule that fires more than twice a week without prompting action should be widened or deleted.






