FluxGlow

How do I make a service health wallboard?

Run a small script every minute that checks each service and writes one node for each. With no arrows between them, the board lays them out as a grid that fills the screen.

What it looks like

board.json
{
  "title": "Production",
  "updated": "2026-11-11T17:00:00Z",
  "stale_after": 180,
  "nodes": [
    { "id": "api", "label": "API", "state": "ok", "value": 82, "unit": "ms", "badge": "Healthy", "caption": "Since", "since": "2026-11-08T17:10:00Z" },
    { "id": "web", "label": "Web", "state": "ok", "value": 140, "unit": "ms", "badge": "Healthy", "caption": "Since", "since": "2026-11-08T17:10:00Z" },
    { "id": "search", "label": "Search", "state": "warn", "value": 910, "unit": "ms", "badge": "Slow", "caption": "Since", "since": "2026-11-11T16:48:00Z" },
    { "id": "payments", "label": "Payments", "state": "bad", "badge": "Down", "caption": "Since", "since": "2026-11-11T16:57:00Z" },
    { "id": "database", "label": "Database", "state": "ok", "value": 3, "unit": "ms", "badge": "Healthy", "caption": "Since", "since": "2026-11-05T07:40:00Z" },
    { "id": "email", "label": "Email", "state": "ok", "value": 220, "unit": "ms", "badge": "Healthy", "caption": "Since", "since": "2026-11-11T05:20:00Z" }
  ]
}

What the states mean for a service

StateFor a service
ok, greenAnswering, and fast enough.
warn, amberAnswering, but slower than you would like, or running on its spare.
bad, redNot answering, or answering with errors.
run, blueBeing deployed or restarted on purpose.
idle, greySwitched off on purpose, or not checked at this hour.

A script that feeds it

This uses nothing outside Python's standard library. It times a request to each address, calls anything slower than 800 ms a warning, and remembers how long each service has been in its present state.

service_health.py
"""Checks a list of health addresses and writes the result as a FluxGlow board. Run it every minute."""
import json
import os
import time
import urllib.request
from datetime import datetime, timezone

CHECKS = [
    ("api", "API", "https://api.example.com/health"),
    ("web", "Web", "https://www.example.com/"),
    ("search", "Search", "https://search.example.com/health"),
]
SLOW_MS = 800

now = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")

# The last board says how long each service has been in its current state.
try:
    with open("board.json") as f:
        before = {n["id"]: n for n in json.load(f)["nodes"]}
except (OSError, ValueError, KeyError):
    before = {}

nodes = []
for node_id, label, url in CHECKS:
    node = {"id": node_id, "label": label}
    started = time.monotonic()
    try:
        with urllib.request.urlopen(url, timeout=5) as response:
            response.read()
        ms = round((time.monotonic() - started) * 1000)
        slow = ms > SLOW_MS
        node.update(state="warn" if slow else "ok", value=ms, unit="ms", badge="Slow" if slow else "Healthy")
    except OSError:  # refused, timed out, or answered with an error status
        node.update(state="bad", badge="Down")

    last = before.get(node_id, {})
    unchanged = last.get("state") == node["state"] and "since" in last
    node.update(caption="Since", since=last["since"] if unchanged else now)
    nodes.append(node)

board = {
    "title": "Production",
    "updated": now,
    "stale_after": 180,  # three missed runs and the wall goes grey
    "nodes": nodes,
}
with open("board.json.tmp", "w") as f:
    json.dump(board, f, indent=2)
os.replace("board.json.tmp", "board.json")

Run it every minute from cron, and copy the file to where the board reads it:

crontab
* * * * * cd /opt/board && python3 service_health.py && aws s3 cp board.json s3://your-bucket/board.json --content-type application/json --cache-control no-cache

Who watches the watcher?

A health board has one dangerous failure: the checking script dies, and the wall stays green. The script guards against that by writing updated and "stale_after": 180. If three runs are missed, the board goes grey and says when it last heard from the script.

Run the script somewhere other than the servers it checks. A checker that goes down with the thing it checks reports nothing.

If you already have monitoring

Keep it. The board does not replace the system that pages someone at night. Have the script ask your monitoring system for its current results, in place of making requests of its own, and write those as nodes. The wall then agrees with the alerts, because it is reading from the same place.

What to put in each orb

  • One number at most: response time, error rate or queue depth. Pick whichever people ask about.
  • since with a caption of "Since" shows how long a service has been down, or how long it has been fine.
  • Group by what the room cares about. Six orbs named for what customers use are easier to act on than sixty named for hosts.
  • Why has my board gone grey?

    A grey board has stopped trusting what it is showing. Either the file says it should have been rewritten by now and was not, or the last attempts to read it failed. A line at the bottom of the board says which.

  • How is FluxGlow different from Grafana, a status page or a build monitor plugin?

    Those tools collect data or publish incidents. FluxGlow does neither. It draws the states you give it, big enough to read from across a room, and it can be on a screen in minutes because there is nothing to install or connect.

  • Where can I host a board file?

    Anywhere that serves the file over https, lets other websites read it, and does not cache it for long. A storage bucket, a public GitHub repository or a web server you already run will all do.

All questions