Spotting a machine that stopped talking
Vigil monitors a fleet of production machines that report their state over MQTT. A machine can fail in two ways: it crashes and its connection drops, or its software freezes while the connection stays open. The second one is the hard case. The detector below is Vigil's own code, compiled to WebAssembly, watching 50 simulated machines in your browser.
Alerts
How the detector decides
A crash is easy to see. The machine's TCP connection closes without an MQTT disconnect, and the broker publishes the "last will" the machine registered when it connected. Vigil reports it at once.
A frozen machine is invisible to the broker: the MQTT client keeps answering pings from its own thread, so the connection looks fine. Vigil looks at the rhythm instead. It keeps the last 100 gaps between a machine's messages and, at any moment, asks how unlikely the current silence would be for a healthy machine. That number is φ. At φ = 8 the silence has less than a one in a hundred million chance of being normal, and the machine is reported.
Because the threshold comes from each machine's own rhythm, a machine that reports every 5 seconds is not flagged after 2 seconds of quiet, while one that reports twice a second is.
The machines and the arrival times of their messages are simulated here. The MQTT broker, Kafka, TimescaleDB and the dashboards are not on this page: they ran in production, below.
How it ran in production
The full pipeline, from the MQTT broker through a Go gateway and Kafka to the detector and a stream processor writing to TimescaleDB, ran on a small cloud VM from October to November 2026, with the same random crashes and freezes as above. Over its last seven days:
Numbers come from the pipeline's own Prometheus metrics, exported on 24 November 2026. The ingestion path was also load-tested at 16,000 messages per second from 8,000 machines without losing any (report).