Uptime & status
Check from outside, as a user would, and tell people the truth on a page that does not depend on you.
The CityScript
This is all there is to it. Change it in the editor and the city redraws.
%% U · Uptime & status
%% Probes in three places hit the public URL. Three failures in a row open an incident and update the status page.
%% Prices are made up for the example, to show a cost line: what a service costs, with its vendor, plan and spec.
city 48x32
district probes "Probe locations" 3,3..15,17
district service "The service" 20,3..34,13
district comms "Communication" 38,3..46,17
building probe-dub depot in probes "Dublin"
floor probe-dub.f "Probe"
room probe-dub.http worker "HTTP check"
cost 29 "Uptime checks" vendor="Better Stack" plan=Pro spec="3 regions, 30 s checks"
building probe-fra depot in probes "Frankfurt"
floor probe-fra.f "Probe"
room probe-fra.http worker "HTTP check"
building probe-iad depot in probes "Virginia"
floor probe-iad.f "Probe"
room probe-iad.http worker "HTTP check"
building web factory in service "Shop"
floor web.f "Public site"
room web.edge proxy "Edge" port=443
room web.app service "App" port=3000
building status tower in comms "Status page"
floor status.f "Page"
room status.page service "status.shop.example" port=443
cost 29 "Status page" vendor=Atlassian plan="Statuspage Startup"
building incident tower in comms "Incident channel"
floor incident.f "People"
room incident.chat service "Chat room"
room incident.page service "Pager"
cost 21 "On-call" vendor=PagerDuty plan=Professional
pipeline incident-flow "Incident" probe-dub -> [3-failures] -> [alert] -> [open-incident] -> [update-status] -> status
step probe-dub "A check from Dublin fails three times in a row"
step status "The status page tells customers there is a problem"
link probe-dub.http -> web.edge "HTTPS check" variant=dashed
link probe-fra.http -> web.edge "HTTPS check" variant=dashed
link probe-iad.http -> web.edge "HTTPS check" variant=dashed
link web.edge -> web.app "HTTP" variant=emphasis
link incident.page -> incident.chat "page"