Skip to content

Observability

Detent exposes what you need to answer two questions: is configuration fresh? and are reads succeeding?


A detent::Reader keeps no counters and exports nothing; two calls answer both questions:

auto revision = reader.revision("checkout"); // std::optional<std::uint64_t>
auto result = reader.lookup("checkout:new_path", 0);
if (!result) log(detent_status_name(result.status));
  1. Freshness. revision(namespace) is the revision of the namespace’s attached generation, or empty when none is attached yet. Compare it with the revision the authority committed.
  2. Read health. lookup(name, fallback).status says why a read returned its fallback: MISSING, UNAVAILABLE, SOURCE_FAILURE and the rest in Errors and Failures.

Python returns revision() as an int or None and lookup() as a Lookup with .status and .value; Rust returns Option<u64> and Result<i64, Status>.

  1. Staleness. A namespace’s revision behind the authority’s committed revision for longer than your kill switches can tolerate.
  2. Unavailable reads. UNAVAILABLE or SOURCE_FAILURE from lookup after startup: the host’s agent has no usable generation.
  3. Missing reads. MISSING for a name your code reads: a typo, or a knob that was never published.

Knob names, hash values, switch values and knob values belong in none of these signals’ labels, so cardinality stays bounded and user identifiers never leak into monitoring.


  1. GET /v1/health on the authority.
  2. detent-authority --status and detent-agent --status from the command line.
  3. Daemon logs, described in Logging.

Hash values, switch values and knob values are never logged, and rejected publishes are logged by category without their payload. Hash and switch values are often user or tenant identifiers.