houston

Open source · MIT · self-hosted

Logs, traces, metrics and alerts for Cloudflare Workers

Send OpenTelemetry from your Workers. houston stores it as Iceberg tables on R2 in your own Cloudflare account, and gives you dashboards, notebooks that answer questions with charts, search, a trace waterfall, live tail and monitors, in a web app and a CLI your coding agent can use.

houston on GitHub Send data in 5 lines

Early, but usable end to end.

Houston overview, the built-in dashboard across every project: requests, error rate, p95 latency, log lines, error logs and services, then requests by project, request latency percentiles, span error rate by service and log lines by severity over the last hour Houston overview, the built-in dashboard across every project: requests, error rate, p95 latency, log lines, error logs and services, then requests by project, request latency percentiles, span error rate by service and log lines by severity over the last hour

Houston, do we have a problem?

Home opens on one big question box. Type what worries you, and a notebook opens with your question already asked.

  • Below it, one click to everything else: the Explorer, traces, services and live tail, the latest dashboards and notebooks, and the monitors firing.
  • Every page has the same two-row header: project, time range and Refresh always sit in the same place, and the page’s own tools go underneath.
  • The menu is grouped: Analysis (dashboards, notebooks), Observability (Explorer, traces, services, tail, monitors) and Settings.
houston Home: the "Houston, do we have a problem?" question box above link cards for Explore, Dashboards with Houston overview, Monitors with nothing firing, and the latest notebooks; the grouped menu on the left houston Home: the "Houston, do we have a problem?" question box above link cards for Explore, Dashboards with Houston overview, Monitors with nothing firing, and the latest notebooks; the grouped menu on the left

Dashboards over logs, spans and metrics

Charts on a semantic layer over all three signals, built with drizzle-cube. Houston overview comes ready: requests, errors, latency, logs, SQL and gen AI across every project.

  • A dashboard covers one project or every project. Yours are listed under Mine and the rest of the team’s under Others; everyone can open and edit them.
  • Edit, then Add chart or Add text. The top bar’s time range drives every chart, and each chart picks its granularity from it.
  • Results are cached in KV for a minute, so a dashboard the whole team has open costs one query per chart.
A houston dashboard in edit mode with Done, Add chart and Add text, filters on service and log severity, and charts of error spans by service and latency percentiles by service A houston dashboard in edit mode with Done, Add chart and Add text, filters on service and log severity, and charts of error spans by service and latency percentiles by service

Ask a question, get the charts that answer it

In a notebook, an agent queries the same cubes the dashboards use, then writes up what it found, with tables and charts beside the text.

  • Each step it takes, every query included, is listed beside the notebook. Ask a follow-up, or move and delete what it added.
  • Save as Dashboard turns the notebook into a dashboard with the same scope.
  • It runs on Workers AI in your own account. houston notebook ask does the same from a terminal.
A houston notebook answering "Which services had the most errors in the last hour, and how is their latency?": a written summary, a bar chart of error spans by service and a latency table per service, with the question and the agent’s steps on the right A houston notebook answering "Which services had the most errors in the last hour, and how is their latency?": a written summary, a bar chart of error spans by service and a latency table per service, with the question and the agent’s steps on the right

Search logs and spans

Filter on any field, drag across the histogram to zoom, and switch to aggregates without leaving the page.

  • Filters as chips: =, !=, ranges, contains, prefix and exists, on columns or on any attribute.
  • Count, percentiles and error rate, grouped by up to three fields. A query is a link, so it can be shared or saved.
  • The newest minute or two is still landing in storage. The histogram shades that band and points you at live tail.
houston Explorer: a severity filter chip for WARN, ERROR and FATAL, a stacked histogram of the last hour with the still-arriving band shaded at the right, and the matching log rows with service, message and attributes houston Explorer: a severity filter chip for WARN, ERROR and FATAL, a stacked histogram of the last hour with the still-arriving band shaded at the right, and the matching log rows with service, message and attributes

Ask in plain words, get a query you can edit

Type what you want to see. Workers AI proposes a query as ordinary filters, an aggregate and a group by.

  • The proposal is shown before it runs: apply it, change a chip, or discard it.
  • It writes the same query you would have built by hand, so nothing is hidden behind the model.
  • The same box is on the live tail page, and houston ask does it from a terminal.
houston Explorer with the question "errors by service in the last hour" proposed as a filter on severity ERROR and FATAL, the aggregate count, and a group by on service, with Apply and Discard houston Explorer with the question "errors by service in the last hour" proposed as a filter on severity ERROR and FATAL, the aggregate count, and a group by on service, with Apply and Discard

A waterfall that shows where the time went

Each span is coloured by type: HTTP in, HTTP out, database, AI, queue and scheduled work.

  • Self time is hatched, so a parent waiting on its children looks different from one doing the work.
  • A per-type breakdown in the header: how much of the request was database, how much was a model call.
  • The trace’s logs sit underneath, each linked to its span. SQL spans open with formatted SQL, AI spans with model and token counts.
houston trace waterfall for a checkout request across frontend, api-gateway, checkout, payments and inventory: eighteen spans coloured by type, hatched self time on the server spans, and the five logs from the trace below houston trace waterfall for a checkout request across frontend, api-gateway, checkout, payments and inventory: eighteen spans coloured by type, hatched self time on the server spans, and the five logs from the trace below

Watch rows as they arrive

Live tail streams logs or spans the moment they are ingested, before they reach search.

  • The same filters and the same ask box as the Explorer.
  • Pause it, then open the same query in the Explorer once the rows have landed.
  • From a terminal: houston tail service=api, or NDJSON with --json.
houston live tail streaming logs at five rows a second: frontend feature flags, inventory stock syncs, an email-worker rate-limit warning, gateway requests and health checks houston live tail streaming logs at five rows a second: frontend feature flags, inventory stock syncs, an email-worker rate-limit warning, gateway requests and health checks

Alerts on any aggregate, per group

A monitor is a query, a threshold and a window, checked every minute. Each group alerts on its own.

  • Preview the value over the last hours against the threshold, and test it before you save.
  • Alerts by email or to a Slack channel, with reminders while firing, a recovery threshold, history and mute.
  • Each check covers a window that ends three minutes ago, so it only judges data that has landed.
houston new-monitor editor: p95 of span duration per service, alert when above 1500 ms over 5 minutes checked every minute, a preview chart of each service against the threshold line, and a test result of Firing, with one service over the threshold houston new-monitor editor: p95 of span duration per service, alert when above 1500 ms over 5 minutes checked every minute, a preview chart of each service against the threshold line, and a test result of Firing, with one service over the threshold

Every service on one line

Spans, error rate, p50 and p95 latency, logs and error logs per service, for 15 minutes up to 7 days.

  • Each row links to that service’s logs in the Explorer and its traces.
  • Requests, errors and latency come from every span, not only the roots of traces.
houston Services for the last hour: eight services with span counts, error rates, p50 and p95 latency, log and error-log counts, and links to logs and traces houston Services for the last hour: eight services with span counts, error rates, p50 and p95 latency, log and error-log counts, and links to logs and traces

Metrics from the spans you already send

houston-otel counts every request, SQL statement and gen AI call it traces, and sends the counts as OpenTelemetry metrics. They are on by default.

  • Request, SQL and gen AI duration, by route, operation and model.
  • Gen AI token usage, input and output, and the cost in US dollars by model, from list prices you can override.
  • Houston overview charts all of them. Any other OTLP metrics land in the same Metrics cube.
The gen AI and SQL section of Houston overview: cost in US dollars, tokens, gen AI calls and average duration, SQL queries and average duration, then SQL duration by operation and gen AI duration by model over the last 30 minutes The gen AI and SQL section of Houston overview: cost in US dollars, tokens, gen AI calls and average duration, SQL queries and average duration, then SQL duration by operation and gen AI duration by model over the last 30 minutes

Sign-in for your team, nobody else

Google sign-in limited to your domains, or a link by email. Invite only.

  • Admins invite people, create projects, issue ingest keys and set up alert channels. Everyone signed in can search, tail, write monitors and build dashboards and notebooks.
  • Projects are shared by everyone signed in: one team, one place to look.
  • Email links are single use and expire after 15 minutes.
houston sign-in page: Continue with Google, or an email address for a sign-in link, beside the houston tracking-dish illustration houston sign-in page: Continue with Google, or an email address for a sign-in link, beside the houston tracking-dish illustration
How it works

One Worker in, Iceberg on R2, everything reads from there

No servers to run and no database to size. Storage is open Parquet files in your own bucket.

Telemetry flows from your Workers over OTLP into the houston Worker, through Basin streams into Iceberg tables on R2; the houston Worker reads them back with Basin SQL and serves the web app, the CLI and coding agents Your Workers OTLP houston Worker send() Basin streams 60 s roll Iceberg on R2 Basin SQL Web app houston CLI Coding agents
  1. Ingest. Your Workers, or anything that speaks OTLP/HTTP (protobuf or JSON, gzip), post logs, traces and metrics to /v1/* with a per-project key. The Worker validates every row before it is sent on.
  2. Store. Three Basin streams (logs, spans, metrics) roll into Iceberg tables on R2 about once a minute, as compressed Parquet.
  3. Query. The same Worker reads the tables back with Basin SQL. Dashboards and notebooks go through a semantic layer (drizzle-cube) that writes the same bounded SQL, and their results are cached in KV for a minute. Search runs a minute or two behind ingest; live tail, on a Durable Object, has no lag.
  4. Use. The web app, the houston CLI and the coding agents that drive it all call one API. Monitors run on a cron every minute. Notebooks run on Workers AI. Users, projects, monitors, dashboards and notebooks live in D1.
Sending data

Send data in 5 lines

@rocketflare/houston-otel is a Workers client with no runtime dependencies. It speaks OTLP over fetch, keeps one trace per request and sends in waitUntil after the response. Export never throws.

// wrangler.jsonc
"compatibility_flags": ["nodejs_compat"],
"vars": { "HOUSTON_OTLP_ENDPOINT": "https://houston.your-company.com", "HOUSTON_SERVICE_NAME": "shop-api" }
// then: wrangler secret put HOUSTON_API_KEY   (an ingest key from houston)
import { createHouston, houstonOptionsFromEnv } from '@rocketflare/houston-otel'
import { houstonMiddleware } from '@rocketflare/houston-otel/hono'

let houston: ReturnType<typeof createHouston> | undefined
const houstonFor = (env: Env) => (houston ??= createHouston(houstonOptionsFromEnv(env)))
app.use('*', houstonMiddleware((c) => houstonFor(c.env)))   // a span per request, sent in waitUntil
  • Logs: houston.log.*, or pino through pinoTransmit, carry the active trace and span id.
  • SQL: wrap a Neon, node-postgres or postgres.js client before Drizzle gets it, and every statement is a span. Parameter values are never read.
  • AI: traceGenAi records model, tokens and finish reasons as gen_ai spans, without prompts or completions.
  • Metrics: request, SQL and gen AI duration, gen AI token usage and gen AI cost in US dollars by model, made from those spans and sent with them. On by default; HOUSTON_METRICS=false turns them off.
  • Also cron ticks, queue batches and Workflow steps, each in the trace that started it.

The houston-otel README · Sending data and first monitors

A houston trace for a recommendations request with the AI span selected: the waterfall with HTTP in, HTTP out, a SELECT and a chat span, and the span drawer showing the model, provider, input and output tokens, finish reason and latency A houston trace for a recommendations request with the AI span selected: the waterfall with HTTP in, HTTP out, a SELECT and a chat span, and the span drawer showing the model, provider, input and output tokens, finish reason and latency
CLI and agents

Everything the app does, from a terminal

@rocketflare/houston searches, aggregates, tails, prints a trace as a text waterfall, asks questions, queries the cubes, reads and writes dashboards, asks a notebook and manages monitors. --json gives scripts and agents stable output; --url prints the link that opens the same query in the app.

  • Sign in once: login prints a code you confirm in a browser. Nothing listens on your machine, so it works over SSH and in containers.
  • houston cube query runs a semantic-layer query across every project, houston dashboards get overview prints Houston overview’s charts, and houston notebook ask streams a notebook’s answer: its text, each query it runs and the charts it adds.
  • houston skill install writes a skill that teaches coding agents the filter syntax, narrow windows, the search lag and when to reach for tail. Your agent reads the logs of the bug it is fixing.

The CLI and the agent skill

zsh — shop
npm i -g @rocketflare/houstonhouston login --url https://houston.your-company.comhouston logs severity=ERROR --since 15mTIME                     SEVERITY  SERVICE   BODY2026-11-29 08:33:18.126  ERROR     payments  webhook signature mismatch2026-11-29 08:32:55.661  ERROR     payments  webhook signature mismatchhouston agg p95:duration_ns --signal spans --by service --since 1hSERVICE       P95(duration_ns)recommender   2.01 semail-worker  351 mspayments      340 mshouston trace 3ec5b569746af55d9cd095dbfb660ebeT SPAN                     SERVICE      DURATIONH   POST /api/checkout     api-gateway    235 ms→     POST                 api-gateway    186 msH       POST /charges      payments       185 msD         SELECT charges   payments      28.9 mshouston skill installWrote ~/.claude/skills/houston/SKILL.md.
Cost and self-hosting

On your own Cloudflare account, at usage prices

houston is one Worker, a D1 database, an R2 bucket with Basin streams, and Resend for email. You deploy it on the Workers Paid plan, and your telemetry stays in your account.

  • Monitors are the main cost at low volume: one Basin SQL query per check, about $1.10 a month for a monitor checked every minute.
  • Searching is about $0.000025 a query. Ask is about $0.001 a question. Live tail costs nothing when nobody is watching.
  • A notebook question is several Workers AI calls (one per turn, up to 8) plus the queries it runs. Dashboard charts are one query each, cached for a minute.
  • Per GB ingested and kept, Basin and R2 come to about $0.10, against about $0.27 for the platform’s built-in Workers logs, which keep 7 days and take Cloudflare sources only.
  • A setup script creates the bucket, the catalog with compaction, and the three streams. Re-running it skips what exists.

The self-hosting guide

A best guess per month, data kept for a year
App trafficBasin ingestR2 after a yearPer month
10k requests a day2 GB, included~0.3 GB≈ $0
100k requests a day21 GB, included~28 GB≈ $0.50
1M requests a day210 GB, $16~280 GB≈ $45

On top of the $5 Workers Paid plan, plus monitors. It assumes each request sends about 5 spans and 2 logs (about 7 KB) through houston-otel. At 1M requests a day, the ingest Worker’s requests ($15) and D1 writes ($10) are a large share; trimming noisy attributes sends less. Cloudflare’s published prices as of late 2026: check them before you rely on them.