Ovstorage operator monitor broker

From NVIDIA-Omniverse/ovstorage · View interactive version

Ovstorage operator monitor broker is an AI agent skill from the GitHub repository NVIDIA-Omniverse/ovstorage. Use when wiring observability for a running ovstorage-broker - covers the Prometheus /metrics surface, the 11 metric families, the tracing span fields, and the audit-safe diagnostic shape.

How to use this skill

Skill file

Monitor the Broker

Goal

Wire Prometheus scraping, log aggregation, and trace consumption

against ovstorage-broker using its built-in surfaces. No

audit-record subsystem ships today; tracing fields are the audit

trail.

Recipe

  1. Read

CODE0

§ Observability for the full reference.

  1. Enable Prometheus by adding

[observability] prometheus_bind = "HOST:PORT" to the broker

TOML. The broker spawns an axum listener serving

text/plain; version=0.0.4 exposition.

  1. Scrape the listener with your Prometheus / VictoriaMetrics /

etc. setup. Expect these 11 metric families (some are dormant

today — registered but not yet observed):

allow, deny, error.

read, write. Increments at every fixture-driven and

plugin-driven redirect emission site.

malformed, tag, mac. All three series start at zero. mac

includes wrong-key, wrong-address, and edited-envelope failures.

reload_ok, reload_failed, drain_start,

drain_complete.

  1. Pipe grpc.health.v1.Health/Check to your health-check probe.

Reports Serving whenever backend-kind introspection on the active

Stack succeeds. Readiness is not flipped during drain (the gRPC

server stops accepting new connections via

serve_with_incoming_shutdown but Health/Check keeps the

last reported state until the server thread exits).

  1. Wire tracing. The broker uses

init_tracing_from_env so the standard RUST_LOG /

OTEL_* env vars apply. OTLP push as a `[observability]

otlp_endpoint field is reserved (surfaces Unsupported` if

set); layer opentelemetry_otlp onto init_tracing_from_env

manually if you need it.

Tracing fields to collect

Per the broker-operator persona doc:

broker.read, broker.write, broker.list,

broker.list_versions, broker.list_address_roots).

pb::ErrorDetail.

port + path only, no query / fragment / userinfo).

and on every pb::ErrorDetail. Freshly minted when the host's

RequestContext.audit_id is None.

broker_authz_decisions_total counter.

Fields not stamped today: route.id and backend.id on

per-RPC spans. Closing the gap is tracked.

Audit log shape (what you don't get)

There is no AuditRecord / AuditEvent type, durable sink, or

operator-facing explain-decision <audit-id> tool. Diagnostic

fields land in tracing spans, error details, and redirect

envelopes only. Operators that need an audit log point a log

aggregator at the broker's tracing output and filter on

audit_id + policy_epoch + principal.id.

**Sinks must redact physical URLs before logging query strings or

signed headers.** The pipeline must never log raw bearer tokens,

credential bytes, or usable signed URLs.

Suggested alerts

— a SIGHUP reload failed validation; the old broker is still live

on stale config.

the built-in auth Layer returned evaluation errors (not denies). Check the

active policy and listener authentication configuration.

in-process reloads increment

broker_lifecycle_events_total{event="reload_ok"} instead.

— check for a mismatched shared key or an incomplete key rotation when the

failures concentrate on part of a replica fleet. Address substitution and

continuation edits produce the same reason.

to zero on a route that previously emitted them suggests the

plugin can no longer mint redirects (and the broker is falling

back to inline upload, which has the 64 MiB

WRITE_BODY_BYTE_CAP).

References

§ Observability — the full reference.

using these surfaces to triage runtime issues.

— interpreting broker_authz_decisions_total{outcome="deny"}.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.