Skip to main content

Overview

The Metrics page is the customer-facing configuration surface for metrics collection and reporting behavior. Actual Genesis Metrics page showing collection mode and reporting settings.

What customers configure here

  • the metrics mode,
  • destination or bridge settings,
  • reporting interval,
  • upload frequency,
  • related metrics credentials or configuration values.

Environment-specific behavior

Some deployments show additional instructions or approval actions when external metrics delivery requires extra configuration. In Snowflake / SPCS bridge-mode deployments, the page can show Approve External Access and Assign to Genesis controls for outbound metrics delivery. After you trigger those actions, Genesis rechecks the assignment immediately and updates the section in place as soon as the external access integration is confirmed.

OTLP export

Genesis can export metrics directly to any OpenTelemetry-compatible collector — Prometheus, Datadog, Grafana Cloud, New Relic, Honeycomb, Splunk Observability, OpenObserve, and so on — over the standard OTLP/gRPC or OTLP/HTTP transports. This path is configured separately from metrics.mode, so you can run OTLP on its own or alongside the existing logs, SQL, or bridge pipeline.

Configuration

For grpc, Genesis performs a short startup availability check against the configured endpoint before enabling OTLP export. If the collector is unreachable, OTLP export is disabled cleanly and Genesis continues running. Set OTEL_METRICS_FORCE_ENABLE=true only when you need to skip that preflight (for example, when the collector starts after Genesis).
Restart required. All observability.metrics.* settings are read once at startup. After changing any of them — including enabling OTLP for the first time, swapping the endpoint, or rotating an auth header — restart Genesis for the change to take effect.

Headers and authentication

observability.metrics.headers follows the W3C OTLP header convention: a comma-separated list of key=value pairs. The exporter URL-decodes each value before sending, so any character that is awkward to store in a flat config field (spaces, commas, =, etc.) must be percent-encoded. The single most common gotcha is the space inside Bearer tokens: the Genesis Secrets UI strips literal spaces from values to prevent accidental copy-paste damage, so you must enter the space as %20. You can also store the entire header string in the Secrets panel and reference it from observability.metrics.headers — the exporter resolves secret-backed values before parsing.

What gets exported

Every data point Genesis exports carries a global instance attribute identifying the Genesis instance (set via server.instance_name or GENESIS__SERVER__INSTANCE_NAME). The OpenTelemetry instrumentation scope name is genesis.metrics. Counters are exported with delta temporality (each export carries the increments since the previous export, not a cumulative total). Gauges are sampled at export time. Hosted Try Me instances also add a tryme_instance attribute to every metric row, set to the instance’s Fly app name. This is present when demo mode and demo.provisioner_url are configured and FLY_APP_NAME is set; it is omitted from laptop mode and other installations.

Gauges (point-in-time values)

purpose values: user_chat (interactive chat), scheduled_job (scheduler-driven), blueprint (blueprint execution), handoff (delegated work), unknown, or * (total across all purposes).

Counters (delta-exported)

LLM counter attribute values:
  • model — literal model string the request was sent with (e.g. gpt-5, claude-sonnet-4-6, cortex-claude-sonnet-4-6); "unknown" if the response did not include it.
  • provider — openai, anthropic, cortex, litellm_proxy, etc.; "unknown" if not reported.
  • bot_id — agent identifier associated with the LLM call. Use this dimension to attribute LLM usage and cache misses to a bot. Thread identifiers are not exported as dimensions; per-thread cost remains in the thread’s own thread_stats_v1 aggregate.
  • execution_origin (only present for proxied / classified calls) — for example interactive_user, scheduled_background, handoff_initiated, blueprint_runtime. Lets you separate human-driven cost from background-automation cost.
  • credential_type (only present for proxied calls) — for example api_key, service_account, oauth_user.

Privacy

  • user_id is hashed before being attached to any metric: your collector receives the unsalted SHA-256 of the user identifier (64 hex characters), not the identifier itself. The same user hashes the same on every deployment, and anyone who already knows an identifier can check it against its hash. Rows recorded by releases before this change carry the 32-character salted hash those releases made.
  • No prompt content, completion content, or tool arguments are exported as metric attributes. Only metric values, counter increments, and the attribute fields listed in the tables above.
  • The tool_name and bot_id attributes are emitted as-is and may appear in your collector. If you treat bot or tool names as sensitive, scope your collector’s data retention accordingly.

Verifying it works

After enabling OTLP and restarting Genesis, look in the server logs at startup for one of these messages: When endpoints are logged, Genesis automatically strips credentials (user:pass@) and query tokens from the URL before logging, so it is safe to share these log lines for troubleshooting.

Thread health probe log lines

Genesis emits single-line THREAD_HEALTH_PROBE records in server logs to correlate slow threads without enabling debug tracing. Search logs for that prefix, then filter by phase=: Each line uses stable key=value segments (for example thread_id, bot_id, compression_event_count, dur_ms). Values with spaces are JSON-escaped. Thread message reads also emit THREAD_MESSAGES_FETCH records. The import_ms field reports the worker’s import duration in milliseconds to one decimal place; it is - when that timing is unavailable or invalid. The record also includes snapshot, formatting, RPC, and total-duration timings when available.

Suggested first dashboards

Metrics-mode combinations

When OTLP export is enabled, Genesis combines it with the selected metrics.mode instead of replacing that mode:
  • DISABLED: OTLP only
  • LOGS: logs plus OTLP
  • SQL: logging plus SQL storage, and OTLP when enabled
  • BRIDGE: logging plus SQL storage, scheduled bridge uploads, and OTLP when enabled
Billing usage counters are also stored locally in every mode, including DISABLED and LOGS; this billing-only store does not turn on other local metrics. It is not uploaded unless the bridge is enabled. If metrics.mode is SQL or BRIDGE but metrics.destination is missing, Genesis keeps logging plus OTLP enabled when OTLP is configured instead of turning metrics off completely. metrics.report_interval_s controls the SQL exporter cadence. OTLP uses its own observability.metrics.export_interval_s — the two can be set independently. In BRIDGE mode, Genesis uploads two separate streams. Billing counters are always uploaded: thread turns, tool calls, governed writes that ran, executed/retried/skipped flow steps, app sessions, Context Graph objects scanned, Prover objects compared, voice-session seconds on the install’s own OpenAI key (source=byo_openai), threads started, and Missions started and ended. Thread counts name their source channel (web, mcp, mission, scheduled_job, automation, app, slack, teams, google_chat, discord, or cli; unknown sources become other), agent, and (when known) user; user ids are hashed with unsalted SHA-256. Mission counts (blueprint runs) name the blueprint; a restart counts as another start. Endings name the terminal outcome (completed, failed, cancelled, or retired); non-builtin blueprint names are hashed. Thread and Mission counts describe install activity and are not Genesis Credits usage or rate-card units. They use the billing stream, so metrics.diagnostics_upload_enabled does not turn them off. Voice sessions billed through Genesis AI are metered by the provisioner instead. The local voice counter is tracking-only and is not a rate-card item. Flow steps and Prover objects include their outcome; app sessions include the runtime, and Context Graph scans include source type and scan mode. Only metrics and attributes in Genesis’s telemetry allow-list leave the install. User ids and names of non-builtin blueprints are hashed with unsalted SHA-256; built-in blueprint names remain in clear. The same value hashes the same on every install, and someone who already knows a value can check it against its hash. Agent ids are sent in clear, with their display names in clear when the registry has one. Tool names (including custom and MCP tools), model ids, and local instance names are also sent in clear; these names are limited to 128 characters. Older rows can still contain the salted hashes generated before this change. Values outside the allowed vocabularies are reduced to other. The bridge receives counts and approved dimensions, never prompts, SQL, or other content. Uploaded records also include the install’s billing environment and its source; server.billing_environment defaults to prod, and a licence value takes precedence. See the Configuration Reference. Diagnostic metrics (LLM calls and tokens, messages, active users, per-tool call counts, governed-action outcomes, blueprint phases, app runs, and slot gauges) are uploaded by default. Set metrics.diagnostics_upload_enabled to false (default true) to stop them; set GENESIS__METRICS__DIAGNOSTICS_UPLOAD_ENABLED=false to configure it through the environment. If the setting cannot be read, Genesis logs the error and treats diagnostics as enabled; only an explicit false disables them. Restart Genesis after changing the setting. Hosted Try Me instances always upload diagnostics. Billing usage counters are unaffected by this setting. The diagnostic per-tool call counter is for activity reporting, not a rate-card charge. Billing prices tool usage from its billing-stream records; the diagnostics tool_calls counter is not priced a second time.

Which install the uploaded metrics name

In BRIDGE mode, each uploaded metric row names the install that sent it as <client>.<instance>, for example acme.prod2:
  • The client name comes from your licence, or else from server.client_name (GENESIS__SERVER__CLIENT_NAME), or on Snowflake from your Snowflake organisation.
  • The instance name comes from server.instance_name (GENESIS__SERVER__INSTANCE_NAME). When it is not set, Genesis derives one.
Both names are lowercased, and other characters become -. The uploaded row’s attributes also carry client_name, instance_name, an opaque install_id, identity_complete, source_instance (the local instance name), and the resolved environment with environment_source. Metrics stored in your own database keep the local instance name. Set both names under Config > Advanced Settings > Server, or with the environment variables, which take precedence. Helm installs set them with identity.clientName and identity.instanceName. The Docker installer asks for them. If a name is missing, nothing breaks. The install reports as unknown.<instance>, and admins see a banner in the UI asking them to set the names. When the metrics bridge uploader is active (metrics.mode is BRIDGE, the default), Genesis also sends an install_runtime_facts record on startup, when the facts change, and at least daily. This record travels on the billing stream, independent of metrics.diagnostics_upload_enabled and install-log shipping. It includes host OS user and machine name, launch and deployment details, and connection types and hosts. Signed-in email addresses are sent only as their domain and a SHA-256 hash; a LiteLLM key is sent only as its SHA-256 hash. For a hosted Try Me or Desktop install, BRIDGE runs even when another metrics mode is selected.

Local metrics database recovery

At startup Genesis checks a file-backed local metrics database before opening it. On SPCS with block storage and no explicit metrics.destination, Genesis moves the default metrics database from the stage mount to the block volume once; later starts use the block-volume copy. A SQLite file that fails PRAGMA quick_check is moved, with its sidecar files, into a sibling forensics/ directory and a fresh database is created. Usage rows that had not uploaded remain only in that recovered copy and are not replayed automatically. Databases owned by durable storage are not handled by this recovery check; an explicit metrics.destination is never relocated from the stage mount.

Managed deployment attribution

For managed installs, the control-plane installer sets metrics.deployment_id to attach the deployment identifier to SQL-backed metric records as attributes.deployment_id in SQL and BRIDGE modes. The setting is a string that defaults to ""; an empty value adds no attribute. It does not add the identifier to LOGS metrics or OTLP output. Restart Genesis after changing the setting.

Cost reporting behavior

When Genesis renders LLM cost reporting, it uses the normalized usage fields stored on assistant messages. Cache-aware models report separate input, output, cache_read, and cache_write costs, and reported billable_input excludes both cache_read_input_tokens and cache_creation_input_tokens. The cache_write cost prices the one-hour part of the writes (cache_creation_1h_input_tokens, from a route whose llm.prompt_cache_ttl is 1h) at twice the input price, and the rest at the five-minute price.