---
title: Control and observation
description: The smart home control plane, and why the monitoring stack sits outside the cluster
---

Two planes that are easy to confuse: the one that makes the house do things, and the one that says whether any of it is working. They overlap at Home Assistant, which feeds its readings to the monitoring and also runs watches of its own, on sensors going silent and on the network path, that notify directly. The network one can be silenced by the very outage it reports. The rules below are the ones built to survive a cluster outage.

## The control plane

Home Assistant sits at the center, and automations earn their way up in three levels: notify only, then act in the direction of turning things off or down, and only then turn things on.

Below it, one vendor acts on the world and another carries the sensor network. That split was discovered rather than designed. The plan had one vendor's hubs doing most of both, with the other vendor's existing remote covering the rest, until it turned out that commands taught to the hub could not leave its app, and that its bridge lost an air conditioner mode in translation. Infrared was unified on the other vendor, the second hub was never bought, and the first kept the sensor network. Either way, everything is operated through Home Assistant: one interface rather than one per vendor.

Infrared is also open-loop. It sends a command and hears nothing back, so the controller only knows what it last asked for, and real state has to be inferred from the room's temperature and humidity.

Sensors were standardized on Zigbee rather than Thread. Thread needs mains-powered routers to grow a mesh, the house has none, and a border router would have deepened the dependence on the hub. What was removed entirely is covered under [Dropped](/dropped#a-vendor-removed-entirely).

## Why monitoring lives outside the cluster

> **Alerts do not go where an outage silences them**
>
> A rule asking whether the infrastructure is healthy cannot depend on that infrastructure to deliver its answer. So the rules and Alertmanager run on obs-01, beside the cluster rather than in it. Dashboards inside the cluster are acceptable, because a graph is worth less during an outage than the alert is.

![Five sources, the Proxmox host, the hypervisor API, the network gear, the WAN probes and Home Assistant, converge on obs-01, which is highlighted and holds Prometheus 90d, Prometheus 5y, Loki 30d and Alertmanager. A highlighted arrow runs from obs-01 to the alert channel. Below, the talos-01 cluster has no alert rules. Inside it Alloy sends pod logs up to obs-01, Prometheus 12h feeds Grafana, and Grafana reads from obs-01.](/diagrams/what-watches-what.svg)

That costs a second Prometheus, and then a third. Each holds something the others do not:

| | Keeps | Because |
|:--|:--|:--|
| In the cluster | 12 hours | Kubernetes itself; long trends were never its job |
| obs-01 | 90 days | Host, hypervisor, network, line and Home Assistant, watched from outside the cluster |
| obs-01 | 5 years | Climate and power |

The third exists because retention belongs to an instance rather than a series. Five years of everything would cost about 126GB; five years of the few series worth keeping costs about 65MB. Those series earn it because Home Assistant keeps numeric readings indefinitely but lets a thermostat's set point expire, so comparing what was asked for across summers needs a store of its own. It has since also become where workstations push their telemetry, which that figure does not include.

Grafana stays in the cluster, as the exception on the viewing side. The chart ships its dashboards, so moving it out meant rebuilding them, while keeping it in the cluster meant adding data sources. An outage takes down the page that would show it, and that was accepted.

## One rule, one failure mode

The name of a firing alert should already be the diagnosis. The rule for the line going down was written to fire only when both public targets are unreachable and the gateway still answers, so it says the line rather than the house.

It then fired for thirteen hours and was wrong the whole time: the prober's ICMP socket had stopped reading replies while everything else reached the internet fine. The fix was a second opinion and a second name. `WanDown` now also needs HTTPS to fail, and `IcmpProberStuck` fires when ICMP is silent but HTTPS works. One means look at the line, the other means restart a container. If the gateway is gone too, `WanDown` deliberately stays silent and leaves that to other rules.

The in-cluster Prometheus carries no alert rules at all. Its recording rules stay, for the dashboards. That looks like an omission until you ask who would deliver an alert about the cluster being down. ArgoCD does send its own notices about failed syncs and degraded health from inside the cluster, and those stop with it.

## The gap that remains

Everything here watches the house from inside the house. If the line, the host and everything on it go quiet together, nothing is left to say so. Alertmanager has the small version of the same problem: when it stops, Prometheus notices and has nowhere to send that.

A heartbeat from outside would close it. It has not been built, so this is open rather than accepted.
