Skip to Content
Alzo

Dashboard and telemetry

alzo up serves a dashboard; no separate process is needed. Open the URL it prints. Inspect and debug walks through using it to find a failure.

The address is http://alzo.example.dev:20000 — or http://alzo-<id>.example.dev:<port> in a non-default worktree, where <port> is the first port of that worktree's block. The first up.started record carries the address, alzo instances lists it for every allocation, alzo status --json includes it on each running node, and alzo traces links directly to trace waterfalls. The hostname label is random and stored with the allocation; it cannot be reconstructed from a branch name.

It is plain HTTP on loopback and not behind the ingress, on purpose. The dashboard has no authentication and no token — a malicious local process can already run code as you, so a token would buy nothing and would leak through shell history and Referer headers — and the answer to that is that it is only ever reachable from this machine. alzo.example.dev resolves to 127.0.0.1 like every other Alzo hostname, so the name works here too; if your resolver cannot see the record, the printed address is 127.0.0.1 instead.

Node rows

Every node row carries three independent axes — lifecycle, health and build — and they are never collapsed into one. A service that is running perfectly while its build dependency is failing is not a red dot; it is running (stale: packages). A service waiting on something says which something:

✓ db          running                          8.2s    db.example.dev:20001
⚠ api         running (stale: packages)        4m 11s  https://api.example.dev
◦ apiWorker   waiting for migrate
✗ packages    build failed                     2 restarts

Uptime, restart count, exit code and process ID are all on the row, because crash-looping while you work is routine. A port is a link only where Alzo knows it speaks HTTP: an ingress route, or the port an http readiness probe checks. Any other port, such as PostgreSQL's above, shows the host:port you connect to.

The dashboard also shows filtered retained and console logs, resolved environment values, bounded health history, failed dependency chains, a typed dependency graph, group and tag facets, metrics, a hierarchical trace waterfall and a streaming NDJSON telemetry export. Every watched rebuild, rerun, restart, start or sync appears in one activity history, which alzo status --json carries too.

Shell

The Shell tab opens a fresh private terminal in the selected node's context: the node's resolved working directory and environment for a host process, or a native Docker terminal session for a running container. It is not an attachment to the service process itself. Terminal resize is live, closing the tab ends the session and its child processes, and shell input and output are never copied into retained logs.

Adding to the dashboard

Nodes contribute to the dashboard from the configuration. group sorts rows into sections and nests with /, links puts a URL on a row, commands puts a button on it, and defineInfo adds a panel that belongs to the workspace rather than to any one service:

const db = defineService({
  name: 'db',
  group: 'infrastructure/datastores',
  tags: ['stateful', 'critical-path'],
  provision: { image: 'postgres:17' },
  commands: [{ name: 'psql', run: 'psql -U postgres', in: 'container' }],
});

const workspace = defineInfo({
  name: 'workspace',
  group: 'workspace',
  fields: {
    Worktree: instance.name,
    Branch: instance.branch,
    Path: instance.path,
    Hostname: instance.isDefault ? 'api' : `api-${instance.id}`,
  },
  links: () => [{ label: 'Web', url: web.url.http }],
});

fields and links both take a callback because addresses are not known when the file is read — a panel exists to show them, so this is the common case rather than the exception. A declared command can also be run from the CLI with alzo run db:psql.

Telemetry

Alzo also runs an OpenTelemetry receiver and injects OTEL_EXPORTER_OTLP_ENDPOINT into every service. Supervised host Node.js processes are automatically preloaded with @alzo/otel-node: inbound HTTP requests to CommonJS and ES module servers, plus outgoing HTTP and Undici requests, produce traces, and Node.js runtime measurements produce metrics, with one-second export intervals and always-on tracing. Existing OpenTelemetry environment variables and NODE_OPTIONS win or are preserved. The preload uses OpenTelemetry JS SDK 3, which propagates W3C Trace Context and Baggage unless OTEL_PROPAGATORS lists others (tracecontext, baggage, b3, b3multi). It has no Jaeger propagator: jaeger in that list is skipped, so OTEL_PROPAGATORS=jaeger on its own leaves the service propagating no trace context, and the SDK warns only when OTEL_LOG_LEVEL is set. Set ALZO_OTEL_NODE_DISABLED=true to skip only Alzo's preload when the application owns its SDK; OTEL_SDK_DISABLED=true disables OpenTelemetry entirely.

For a Node.js container, install @alzo/otel-node in the image and declare instrumentation: { node: true }; Alzo then adds the same preload by package name inside the container. A missing package fails at Node.js startup instead of silently producing no telemetry. Other runtimes need their own OpenTelemetry SDK, pointed at the injected endpoint. The dashboard's own page also reports its document-load and request traces to the local receiver.

const tracedWorker = defineService({
  name: 'traced-worker',
  provision: { image: 'acme/worker-with-alzo-otel:dev' },
  instrumentation: { node: true },
});

Alzo collects no usage data and sends nothing anywhere. The receiver is a local process; the telemetry it receives is your application's, not ours.

Standalone dashboard

The dashboard also runs on its own, as a telemetry receiver for applications that do not use Alzo. Its npm package is private and npx alzo-dashboard is not published yet, so build and run the container from the Alzo checkout:

docker build -f packages/dashboard-standalone/Dockerfile -t alzo-dashboard .
docker run --rm \
  -p 127.0.0.1:4317:4317 -p 127.0.0.1:4318:4318 -p 127.0.0.1:4319:4319 \
  alzo-dashboard

The process generates and prints a random token at startup. Open http://127.0.0.1:4319 and use alzo as the username and that token as the password. OpenTelemetry clients send the same value as Authorization: Bearer <token>. Set ALZO_DASHBOARD_TOKEN only when a stable, externally managed token is required; a configured token is never echoed to logs. The standalone dashboard has no Shell tab, because it owns no graph or runtime.

On this page