{"id":1014,"slug":"watchtron","title":"Watchtron: Did the Deploy Actually Work?","excerpt":"A green checkmark means the pipeline exited 0. watchtron fires synthetic traffic at the live site after a deploy and fails it unless the new build proves it's serving real requests.","content":"\u003cp\u003eI sort of wound up with a formidable little fleet of sites.. tronswan, chomptron, swantron, mt, wrenchtron, jswan.dev. The DevX dawg in me naturally wanted to know if they were up.\u003c/p\u003e\n\u003cp\u003eSo I wrote the dead simplest thing that could tell me. \u003cstrong\u003e\u003ca href=\"https://github.com/swantron/uptime-monitor\"\u003euptime-monitor\u003c/a\u003e\u003c/strong\u003e is 234 lines in one file.. a GitHub Actions cron that pings every site every 5 minutes and writes uptime to a public gist. No VM, no terraform, $0. It only tips over when GitHub tips over. I\u0026rsquo;d build it the same way again.\u003c/p\u003e\n\u003cp\u003eBut it can\u0026rsquo;t tell me whether a \u003cem\u003edeploy\u003c/em\u003e worked. Every deploy hands me a green checkmark, and the checkmark just means the pipeline exited 0. A \u003ccode\u003eHEAD /\u003c/code\u003e coming back 200 can be a CDN handing you a cached page while the app behind it is face-down. A pinger falls for that too.\u003c/p\u003e\n\u003ch2 id=\"otel-backwards\"\u003eOTel, Backwards\u003c/h2\u003e\n\u003cp\u003eUsually you instrument with OpenTelemetry so you can stare at dashboards after something breaks. I flipped it around. Right after a deploy, fire some synthetic traffic at the live URL, tag every request with a trace id, and check that the telemetry for \u003cem\u003ethat exact run\u003c/em\u003e shows up. If it does, the request made it all the way to the real app.. not a cache, not a stale instance. If it doesn\u0026rsquo;t, or it\u0026rsquo;s slow, the deploy fails.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca href=\"https://github.com/swantron/watchtron\"\u003ewatchtron\u003c/a\u003e\u003c/strong\u003e is a prober, a tiny control plane on a free-tier GCE e2-micro, and a reusable workflow any repo can call after its deploy job:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-yaml\" data-lang=\"yaml\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\u003cspan style=\"color:#f92672\"\u003everify\u003c/span\u003e:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e  \u003cspan style=\"color:#f92672\"\u003eneeds\u003c/span\u003e: \u003cspan style=\"color:#ae81ff\"\u003edeploy\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e  \u003cspan style=\"color:#f92672\"\u003euses\u003c/span\u003e: \u003cspan style=\"color:#ae81ff\"\u003eswantron/watchtron/.github/workflows/verify.yml@main\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e  \u003cspan style=\"color:#f92672\"\u003ewith\u003c/span\u003e:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    \u003cspan style=\"color:#f92672\"\u003eservice\u003c/span\u003e: \u003cspan style=\"color:#ae81ff\"\u003etronswan\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    \u003cspan style=\"color:#f92672\"\u003eversion\u003c/span\u003e: \u003cspan style=\"color:#ae81ff\"\u003e${{ github.sha }}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e  \u003cspan style=\"color:#f92672\"\u003esecrets\u003c/span\u003e:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    \u003cspan style=\"color:#f92672\"\u003eotlp_endpoint\u003c/span\u003e: \u003cspan style=\"color:#ae81ff\"\u003e${{ secrets.WATCHTRON_OTLP_ENDPOINT }}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e    \u003cspan style=\"color:#f92672\"\u003etoken\u003c/span\u003e: \u003cspan style=\"color:#ae81ff\"\u003e${{ secrets.WATCHTRON_TOKEN }}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThe fleet is all over the place.. DigitalOcean, Cloud Run, GitHub Pages, Firebase, a self-hosted PDS.. and one workflow covers all of it. The two Express apps I actually own also report back their own span and git SHA, so watchtron can tie the response to the probe and confirm the build that answered is the one that just shipped. Green means \u003cem\u003ethis build\u003c/em\u003e is serving, not just \u003cem\u003esomething\u003c/em\u003e.\u003c/p\u003e\n\u003ch2 id=\"two-tools-one-strip\"\u003eTwo Tools, One Strip\u003c/h2\u003e\n\u003cp\u003eI started bolting history and dashboards onto watchtron and caught myself rebuilding the uptime monitor, worse. So I quit. The pinger is the heartbeat, watchtron is the deploy gate. Instead of competing, they share a chart: one strip per site, green up, red down, little triangles where deploys landed.\u003c/p\u003e\n\u003cp\u003e\u003cimg src=\"/uploads/2026/06/watchtron-dashboard.png\" alt=\"watchtron dashboard: per-service uptime strips with verified-deploy markers\"\n  loading=\"lazy\"\n  decoding=\"async\"\n/\u003e\n\u003c/p\u003e\n\u003cp\u003eIt\u0026rsquo;s up at \u003ca href=\"https://watch.swantron.com\"\u003ewatch.swantron.com\u003c/a\u003e, with a cleaner cut on \u003ca href=\"https://tronswan.com/status\"\u003etronswan.com/status\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eThe dashboard paid for itself right away: its staleness flag noticed watchtron\u0026rsquo;s own cron had gone quiet. GitHub disables scheduled workflows after ~60 days without a commit. The uptime monitor has a dirty keepalive for exactly this. watchtron\u0026rsquo;s cron.. did not.\u003c/p\u003e\n\u003cp\u003eSource: \u003ca href=\"https://github.com/swantron/watchtron\"\u003egithub.com/swantron/watchtron\u003c/a\u003e\u003c/p\u003e\n","date":"2026-06-15T00:00:00Z","permalink":"https://swantron.com/2026/06/15/watchtron/","link":"https://swantron.com/2026/06/15/watchtron/","path":"/2026/06/15/watchtron/","featuredImage":"/uploads/2026/06/watchtron-dashboard.png","categories":[],"tags":[]}