Skip to content

Platform observability

This guide is for platform operators maintaining an installation. Use the administrator portal for platform health and lifecycle evidence. For a tenant’s application charts and logs, see Worker observability.

Inspect platform health

Platform operators use Platform → Overview for platform-owned volume and service posture, Fleet for host pressure and placed-service readiness, and Observability for focused platform metrics, browser performance, user activity, lifecycle events, and service logs. These views avoid mixing every tenant’s detailed charts into one dense dashboard. Each focus area has a separate page and shares the selected time window. Select a service in a Fleet host’s details to open logs with both service and host already selected. Filter and pagination state lives in the URL; the update timestamp describes the selected view’s last collection. See Operator console for the investigation workflow and recent-history limits.

Platform-wide operational view for platform operators

Prometheus, Loki, Tempo, and Grafana are preconfigured for deeper operator investigation. Their dashboards are recreated during provisioning, so an operator can investigate a newly created appliance immediately without carrying forward observability data from an older fleet.

The rollout objectives are bounded measurements rather than continuous SLIs. The deterministic compute canary requires 99.99% correct responses within 250 ms. The integrated profile separately requires 99.99% correct R2 write/read-back plus durable queue acceptances within 250 ms. Series are kept distinct by test ID so separate deployment runs are not accidentally merged into a synthetic long-term window.

Queue delivery service level

The current platform objective is: 99.99% of messages accepted by a queue with a configured consumer receive their first delivery attempt no later than the configured batch window plus 250 ms, measured over a rolling 24 hours.

The deadline starts when a durably accepted message becomes eligible for delivery. Requested delivery delay and intentional batch collection time are therefore excluded. A message is evaluated once against its stored deadline; missing messages remain bad events even when no attempt was observed. Retries do not reset the deadline. Consumer execution and acknowledgement latency are shown as context but remain the Worker author’s responsibility and are not part of this scheduling SLI. Queues without a consumer are ineligible rather than counted as failures, and no eligible traffic produces no SLI value rather than a synthetic pass.

Prometheus recording rules calculate 5-minute, 30-minute, 1-hour, 6-hour, and 24-hour windows. Fast-burn and slow-burn alerts are evaluated in Prometheus and shown in Grafana. The appliance does not configure an external Alertmanager, so these alerts are diagnostic state rather than outbound notifications.

Storage service levels

The service-level dashboard has independent read availability and write availability objectives of 99.99% over a rolling 24 hours. Reads enter success counts only after the body completes with the expected length. Writes enter success counts after blob storage and metadata commit succeed. Fast failures, truncated streams, internal exceptions, disk exhaustion, and operations left unfinished by a storage-process restart count as failures. Explicit client cancellations, expected user results such as missing keys or failed conditions, and configured tenant-quota rejections are recorded separately and excluded.

Read first-byte and write finalization objectives currently use candidate thresholds of 5 ms and 25 ms, respectively. Latency attainment and budgets are visible, but latency burn alerts are disabled pending baseline evidence. storage_read_target_ms, storage_write_target_ms, and storage_latency_slo_enabled control this policy in Ansible. Each latency series includes its threshold so changing the target does not combine different policies. Availability burn alerts are enabled immediately.

The service timer starts at the authorized GET/PUT object handler, before its catalog and blob work. First-byte timing ends when the first object-body chunk is available; only one chunk is prefetched, preserving streaming and backpressure. Empty objects use end-of-stream availability. Finalization starts when the last upload byte is consumed and ends at successful acknowledgement preparation. Total duration and transferred bytes remain available to reveal slow uploads, downloads, and storage backpressure. Bytes are exported when an operation settles, not continuously during long transfers.

The current scope is object GET (including ranges) and single PUT through S3, Worker bindings, or the console. HEAD operations are diagnostic only; copy, list, delete, and multipart operations are outside these initial objectives. S3 authentication, ingress transport, and Worker-adapter buffering are outside the service timer and are included in caller measurements. No claim of replicated durability or power-loss safety follows from an acknowledgement SLI.

A separate Durable Object records operation starts and terminal results in SQLite. It resolves unfinished operations as interrupted on the next process invocation, including when the metrics endpoint is the first request after a restart. A running but stuck request remains visible as pending, with an oldest-pending-age alert; it is never counted as successful. Missing storage scrapes have their own coverage alert. Requests that cannot reach the service are outside its counters and must be detected by ingress/probe observations.

On a disposable local demonstration, run the isolated storage benchmark with:

.cache/control-plane-venv/bin/python tools/benchmark_storage.py
STORAGE_ITERATIONS=200 STORAGE_CONCURRENCY=8 \
  .cache/control-plane-venv/bin/python tools/benchmark_storage.py

It creates a uniquely named probe Worker and bucket, deploys the Worker through Wrangler, and measures S3 and R2 bindings under mixed 4 KiB, 64 KiB, and 1 MiB read/write traffic. Each object is read twice and verified byte-for-byte. The report separates caller first-byte/total latency from exact service-level counter deltas and checks that every measured read/write appears in those counters. This is a closed-loop, configurable-concurrency benchmark, not a fixed-rate traffic profile. Caller measurements include connection setup.

A separate serial phase uses fsync and POSIX_FADV_DONTNEED on only that run’s probe blobs, then compares cache-advised reads with repeated reads. It does not drop global caches or touch other buckets. These are not guaranteed disk-cold measurements: guest eviction is advisory, and host/device caches are uncontrolled. A short successful run does not establish four-nines reliability. Evidence is saved under artifacts/performance/storage-*/. Probe objects are individually deleted and temporary credentials revoked; the empty probe bucket and Worker remain identifiable for inspection.

Collection and retention

The console uses separate HTTP connection pools for telemetry ingestion and interactive queries. Ingestion has at most 16 active writes and a two-second deadline including admission. A connection-pool timeout replaces the write pool for subsequent batches; an ambiguous failed batch is not replayed. An exhausted query pool is likewise replaced for subsequent queries. ermahgerd_telemetry_ingest_requests_total distinguishes accepted batches from failures by exception type or upstream HTTP status. Console service logs record the same failure category without event contents or credentials.

Alloy collects VM, process, systemd, runtime cgroup, control-plane, storage, queue, and HAProxy metrics; it forwards selected journals to Loki and OTLP traces to Tempo. Beyla adds eBPF HTTP and network observations for HAProxy and the runtime pool. The control plane emits deployment, validation, activation, proxy-publication, rollback, and recovery events as traces and structured lifecycle records.

Ingress records use a bounded HAProxy ring and guest-loopback RFC5424 transport to Alloy. Paths exclude query strings and are bounded; request bodies, cookies, and authorization headers are not collected. The channel can lose records during collector failures or buffer overflow.

Prometheus retains seven days or 8 GB; Loki and Tempo retain seven days. Telemetry persists across make down and is discarded with make destroy.

Browser client evidence

The landing page, tenant console, administrator console, public status page, and Access sign-in surface report bounded browser errors, page performance, Web Vitals, security-policy violations, and OpenTelemetry spans through their own same-origin /collect endpoint. The endpoint accepts only those five platform origins, has independent ingress and collector rate limits, and is not an ingestion API for tenant applications.

Browser records remove query strings, fragments, invitation tokens, and user identity before export. Console capture is disabled, so arbitrary form values and developer logging do not become telemetry. Source maps are generated for the deployed release but resolved only from the local console installation; the collector never downloads a source map from a reported URL.

Platform operators can inspect browser errors under Observability → Logs by selecting Browser clients. Browser spans enter Tempo and preserve W3C trace context through the console, control plane, and participating data services. Tempo remains an internal troubleshooting backend: tenant sessions cannot query platform-client traces, and its seven-day retention applies.

Observability → Browser performance shows navigation and console API p95 latency and Core Web Vitals. User activity shows human browser sessions, browser failures, and successful or failed console mutation workflows. Automated browser tours carry an explicit synthetic marker and are excluded from these human-experience views. Prometheus dimensions use only bounded portal, page-group, product-area, and outcome vocabularies; URLs, organization and resource identifiers, sessions, releases, and browser versions remain in the detailed evidence rather than metric labels.

Human activity and failures across the platform portals

Console workflow activity is a product-usage signal, not an authoritative resource, quota, or billing record. Holdings and metered operations continue to come from the service that owns the capability. Alloy derives these aggregate browser counters and duration histograms while forwarding the original records to Loki, so the aggregate and its investigation evidence remain correlated.

Use the self-cleaning live case as a proactive browser synthetic, not merely a process-readiness check:

make test SUITE=platform CASE=frontend-telemetry

The check uses an iPhone-sized viewport to visit the public landing and status pages, sign into the tenant and administrator portals, and open representative organization, Worker, observability, Fleet, and platform-event views. It fails on uncaught browser errors, unexpected failed requests or HTTP responses, content-security-policy violations, and conservative navigation, API, LCP, CLS, and INP budgets. The budgets can be overridden with the corresponding ERMAHGERD_BROWSER_* environment variables when a deliberately slower test environment needs a documented exception.

The same run performs a read-only native SQLite query, captures its browser trace identifier, and requires one connected ancestry chain across the browser, console, control plane, and database service. It also queries Loki by the exact Faro session identifiers created by the test and requires persisted evidence from every visited portal. A detailed, ignored JSON report is retained under artifacts/browser-synthetics/. If the organization has no database, the check creates and then removes a temporary one.

Worker runtime traces

The shared runtime exports organization-scoped OTLP traces for HTTP, queue, scheduled, and service-binding invocations. A trace uses workerd’s native trace and parent identifiers and includes the dispatcher request, a bounded worker.invoke span around tenant execution, and completed runtime-generated spans for platform calls such as quota admission, code loading, and bound data services. Trusted binding wrappers add named spans for D1, R2, Queues, Key-value, static assets, Images, AI, Vectorize, and Worker service calls. Tenant Workers can add native custom spans through their execution context; bounded app.* attributes are retained beside runtime and binding evidence.

Only the trusted trace tail can reach the host-local OTLP receiver. Tenant code does not receive that binding or direct Tempo access. Native application spans join the current invocation before the tail exports it. Export uses an attribute allowlist: authorization and cookie headers are discarded, full URLs are reduced to scheme, host, and path, query strings are never retained, and application attributes must use the bounded app.* namespace. Organization, Worker, version, and request identifiers remain searchable resource attributes. Tempo applies the same seven-day retention as the rest of the trace store. The tenant console’s Observability → Invocations view queries a tenant-scoped facade rather than Tempo directly. Start with any combination of Workers and a time window, then narrow by invocation type, executions containing errors, an operation name (including a child binding call), or minimum/maximum duration in milliseconds. These conditions search retained traces before the 100-result cap is applied. Results open by operation name and show the Worker, error-span count, and recorded duration. Ten rows appear per page; sorting and pagination apply to the retrieved matches, not the whole retained history. A capped result explicitly asks you to narrow the search. Filters, sorting, and pagination survive opening an execution and using browser history to return to the results. Missing timing is shown as Not recorded, not an invented duration. New invocation records derive elapsed duration from the trace-tail onset and outcome boundaries when the runtime does not provide accounting; unavailable CPU accounting remains unavailable rather than appearing as a measured zero.

The detail view exposes a bounded span hierarchy without returning unapproved trace attributes. The facade also returns a narrow service resource allowlist (service.name, service.namespace, and service.version) so the selected-span inspector can distinguish Worker execution from trusted binding work without exposing tenant or internal topology attributes. Correlated retained events are loaded through the same tenant-authorized console surface and shown inline with their span.

Binding streams are stored as neutral ermahgerd.binding resources rather than receiving tenant identity from a child invocation. The tenant facade returns them only as part of a trace containing exactly one authenticated organization; conflicting organization resources or unexpected namespaces reject the entire lookup. Service credentials, SQL, prompts, object or message bodies, and other unapproved attributes are never returned.

Validate on a disposable installation

The following integration suites use the local demonstration profile, create test resources, and may redeploy probe Workers. They are not commands for investigating a live customer’s deployment. Run them separately from provisioning and use their retained evidence to compare platform changes.

make test SUITE=platform    # telemetry, isolation, ingress, and collection checks
make test SUITE=services    # binding spans plus data-service contracts
make test SUITE=continuity  # planned deployment continuity under traffic
make test SUITE=chaos       # compact-Lima host and runtime faults

The compute continuity case uses the deterministic sum Worker as a platform canary. Its thresholds require correct responses, no dropped iterations, p95 below 250 ms, p99 below one second, and at least 99.99% correct responses within 250 ms. It deliberately does not make arbitrary tenant Worker response time a platform SLO. Results, k6 samples, deployment intervals, lifecycle records, and reports are saved beneath artifacts/performance/.

The compact-Lima host-cpu, host-memory, host-disk, host-network-delay, and host-network-loss cases run a smaller constant-rate k6 canary before, during, and after a bounded Chaosd fault. The runtime-kill and runtime-terminate cases use the same canary while Chaosd sends SIGKILL or SIGTERM to one exact shared compute-pool member and systemd recovers it. database-startup-recovery separately applies a brief loopback delay, restarts the database service, and requires a timed-out clustered metadata call, logged database identity, bounded retry, recovered readiness, and no process restart loop. The Host qualification Grafana dashboard correlates CPU utilization, available memory, disk utilization and write throughput, filesystem headroom, loopback service throughput, TCP retransmits, softnet drops, PSI, OOM counters, warnings, request correctness, latency, and fault lifecycle markers. Pressure alone is not an application outage. See Host fault qualification for the commands, cleanup boundary, and evidence requirements.

The service continuity case deploys the dedicated rollout-services probe through Wrangler. At a constant 10 new jobs/second, each HTTP invocation writes a unique R2 object, reads it back for correctness, then durably enqueues a job. The queue handler reads the same object, verifies its document, writes an idempotent receipt, and acknowledges. Both handlers belong to the deployed Worker, so the three revisions exercise HTTP and native queue delivery cutovers while work is pending. Receipt polling adds HTTP traffic beyond the 10 job submissions/second.

The services probe has its own 99.99%-within-250-ms acceptance check; it does not feed the compute-only canary SLI. Queue completion is measured separately: every accepted job must have a matching receipt within 10 seconds, and queue counters must reconcile with accepted jobs after draining. Reports include R2 round-trip and enqueue latency, receipt-observation p50/p95/p99/max, retries, consumer version counts, and queue backlog/oldest-age snapshots taken approximately every second. Receipt latency includes the 200-ms polling interval and R2 read, not just handler execution. These are bounded, synthetic regression checks, not a general promise about arbitrary application latency or exactly-once delivery.

The service profile uses the test-only rollout-probes bucket/queue and rollout-probes-dlq, refuses to start with pending primary-queue work or a foreign consumer, and serializes local runs. It never purges existing messages. Objects are retained under run-specific probes/services-rollout-<id>-<iteration>/ prefixes for diagnosis. Do not use these fixture names for application data. Detailed reconciliation is in services-report.json; queue-samples.json and the usual k6, Loki, Tempo, and Prometheus artifacts share its run directory. RATE, DURATION, DEPLOY_COUNT, and DEPLOY_INTERVAL_SECONDS configure either profile. Leave enough duration after the last deployment to observe its handlers.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close