Metrics
BuiltCatalog, under Telemetry: Metrics (with metric_type:read, covered by every viewer’s *:read floor) is the
numeric lane of the fleet’s signal catalog: the directory of the quantities the fleet
measures. A metric is a quantity: a numeric reading that aggregates, so an average, a
p95, a rate over time all mean something, and beside its name and data type it carries the numeric
facts, a display unit and a precision, that the property lane never holds. A
property is the other lane: a value, including a number used as a
name (a serial number identifies a unit, it measures nothing).
A metric is used in three moves, and this page walks all three: the catalog names it, a
classifier declares it (with a default, and whether it is required), and telemetry fills
it, one series row per reading, with the current value read from the series. The name is the
metric’s canonical identifier, a single lowercase kebab segment, and the same metric is the same
comparable series wherever it appears: registering icmp-rtt-avg once means every device’s
round-trip time lands under one name, in one unit, across vendors.
The catalog is fleet-wide reference data, not a scoped resource, so every metric is visible to every reader; the write gates decide who may change it.
-
The directory lists every metric sorted by name, each showing its name (the canonical identifier, with its label on the line above it), type (
intorfloat), unit, and origin (official or custom). name filters by the name or its label; type, unit, and official narrow the list. -
New metric (with
metric_type:create, granted to operators) opens a create drawer: give it a name (a single lowercase kebab segment, for exampleicmp-rtt-avgorcpu-load), choose its data type (intorfloat; a metric is always a number, a categorical signal is a property), and optionally add a label, a description, a unit (ms,dB,percent), and a precision (the decimal places a rendered value keeps). An invalid name (an uppercase letter, an underscore, a leading hyphen, a dot) is refused with a message. -
The unit is canonical: stored values are always in it, so every threshold and calculation compares like with like. A genuinely different measurement is a different metric; the unit names the scale, it never rides along per sample. Wherever a metric’s value is read back, the unit travels with it: the effective-metrics reads (
GET /components/{name}/metrics, and the system and location twins) carry each metric’sunit(omitted when the type names none), and a component’s Vitals card shows it after the value. -
Pick a row to open its detail blade. The footer Edit pencil (with
metric_type:update) edits the label, description, unit, and precision; the name and data type are fixed at creation, since changing a series’ value type under the rows that already use it is unsafe and a name is what every driver and contract maps onto. Delete (withmetric_type:delete) removes a custom metric, behind a confirm. A verb you lack greys just that button, its hover reason naming the permission (Requires metric_type:update,Requires metric_type:delete); the pair never disappears. -
An official metric is always read-only: the blade footer shows one note, “Official, read-only”, with the reason on hover: “Official: ships with Omniglass and updates with it.” The shared vocabulary is the same from install to install, the same deliberate exception to the operator-owned rule the Properties catalog makes, and for the same reason: a metric name is the vocabulary a driver maps onto, so a release has to be able to correct it (the seed model).
The baseline ships this catalog, rendered from the seed itself (
make gen) so the list cannot drift from the binary:Name Description icmp-rtt-avgAverage round-trip time over the task's echoes; absent when unreachable. tcp-connect-timeTime to establish the TCP connection; absent when the port is closed. poll-durationMean time of the endpoint's driver poll runs over the report window, scheduled or run now, answered or failed; absent when no poll ran. poll-cpu-timeMean CPU the kernel charged the endpoint's driver poll runs over the report window, read from each run's thread clock, so time waiting on the device is not in it; absent when no poll ran or the outpost's platform has no thread clock. poll-failure-countThe endpoint's driver polls that failed in the report window (faulted and landed nothing, or refused by the endpoint's gate); reported only when nonzero. poll-held-countThe endpoint's due driver polls its gate held in the report window because its probe reads it unreachable, a disruptive command (a reboot) holds it, or a component it is reached through is down (which holds its probes too, counted here), and the polls that found its held session still making its first connection; never sent, so not failures; reported only when nonzero. hold-expiry-countDisruptions of the endpoint (a reboot closed its gate) released in the report window by the command type's hold backstop because no up reading came after the quiet period; reported only when nonzero. poll-due-countThe endpoint's driver polls that fell due in the report window, each on its own interval, held, refused and skipped ones included; reported only when nonzero. poll-skipped-countThe endpoint's due driver polls the outpost skipped in the report window because the poll's last run was still in flight; counted, never queued; reported only when nonzero. push-message-countMessages the endpoint's held session or udp socket delivered that a listener claimed in the report window; zero when quiet. push-unclaimed-countMessages the endpoint delivered that no listener claimed in the report window; reported only when nonzero. webhook-post-countWebhook posts to the endpoint the server accepted in the report window; one zero follows a window with posts, then none while quiet. webhook-refusal-countWebhook posts to the endpoint the server refused (a bad signature, a missing credential) in the report window; reported only when nonzero. checkin-ageSeconds since the outpost's last heartbeat reached the server (since its enrollment, before its first), written by the server every platform tick; keeps growing while the outpost is silent. rule-sweep-ageSeconds since the server's event rule sweep last completed, on the server's platform component; written every report window by the server itself and, from the shared database, by each peer server, so it keeps growing while the sweep is stalled. worklist-task-countTasks in the worklist the outpost installed, sampled on each install. worklist-pull-loss-ratioThe share of the outpost's worklist pulls over the report window that the bus refused or the outpost could not read, so the outpost ran its last worklist; a window with no pull carries the last pull's outcome. 0 is healthy, 1 is an outpost running a stale worklist. tick-durationThe longest pass the outpost's dispatcher took over one heartbeat window, sampled each heartbeat. tick-overrun-countDues that met their task's previous run still in flight, so were skipped, over the report window; reported every window, 0 when quiet. schedule-latenessThe worst gap between a task's due time and its dispatch over one heartbeat window's scheduled runs. schedule-gap-excessThe worst deviation between a task's gap since its previous scheduled start and its interval over one heartbeat window; a poll keeping its interval reads 0, a skipped slot a whole interval. schedule-skip-countTask dues the dispatcher passed over (a run still in flight, a late pass), over the report window; reported every window, 0 when quiet. worker-busy-fractionShare of the outpost's worker time spent running polls, probes, commands and runs over the report window; near 1 every worker is busy and dues start to wait. Reported every window, 0 when idle. lane-worker-countHow many endpoint lanes the outpost runs at once, each one request in flight to its endpoint; sized at boot from the CPU and memory the outpost may use unless an operator set it. Reported every window. spool-batch-countBatches waiting in the outpost's spool for the bus, sampled each tick. delivery-in-countItems that reached a hop over the report window, one sample per kind as the instance (metric, property, event, log); an outpost counts its spool, the server its ingest. At an outpost's schedule/{kind} instance it counts the runs due on the schedule that produce that kind. Written every window, 0 when quiet. delivery-out-countItems a hop handed on over the report window, one sample per kind as the instance (metric, property, event, log); an outpost counts what the bus acknowledged, the server what it stored, coalesced, or had already landed. At an outpost's schedule/{kind} instance it counts the runs made of those due. Written every window, 0 when quiet. delivery-loss-ratioThe share of a hop's items that came in and never went out over the report window, one sample per kind as the instance (metric, property, event, log); at an outpost's schedule/{kind} instance, the share of runs due that were skipped. 0 is healthy, and a quiet window writes 0. session-held-countDevice sessions the outpost holds, one sample per session state as the instance, sampled each tick. process-goroutine-countGoroutines the Omniglass process runs, sampled each tick. process-heap-sizeBytes of heap the Omniglass process holds in live and unswept objects, sampled each tick. process-gc-pauseThe most recent garbage collection pause of the Omniglass process; absent until the first collection. process-cpu-secondsCPU time the Omniglass process spent since its previous sample (each tick on an outpost, each report window on the server), as the Go runtime estimates it rather than the kernel's account; divided by that interval it is the cores the process kept busy. process-fd-countFile descriptors the Omniglass process holds open, sockets included; absent where the platform does not expose them. process-uptimeSeconds since the Omniglass process started; a rule's age on a process key runs from it, so the refill after a restart does not read as growth. retention-deleted-countRows the retention pass removed from one lane in one pass; a day's partition dropped whole is counted in Metric Partitions Dropped, not here. retention-behind1 when the pass stopped at its chunk cap with rows (or compaction work) still past the window, or its prune or compaction failed, 0 when it caught up; a lane that stays at 1 is falling behind. retention-pass-durationWall time of one retention pass, every lane, the partition roll and both compactions. retention-pass-failure-countSteps of one retention pass that returned an error (a lane, the roll, a compaction, a window out of range); 0 on a clean pass. retention-window-daysThe retention window in days the pass applied to a lane. metric-partition-created-countDay partitions of the metric table the pass created ahead of now. metric-partition-dropped-countDay partitions of the metric table the pass dropped whole, every row in them past the window. metric-partition-countDay partitions the metric table holds after the pass. metric-oldest-day-ageDays from the start of the oldest metric partition to the pass; steady at about the metric window plus one once retention keeps up. metric-trend-mark-lagHours from the trend compaction's mark to now; steady at about 24 to 25, the trend horizon, and growing when the compaction falls behind. metric-block-mark-lagDays from the block fold's mark to now; steady at about 1 to 2 (a day folds once its hours are compacted) and growing when the fold falls behind. table-bytesOn-disk bytes of one stored table with its indexes and toast; the metric table's is the sum of its day partitions. db-sizeOn-disk bytes of the whole Omniglass database, as pg_database_size reads it, sampled each report window. data-dir-disk-used-ratioThe share of the filesystem holding the server's data directory that is in use, used bytes over total, 0 empty and 1 full. Written every report window; a window whose disk read failed carries none. http-request-countRequests the server answered for one method, route template and status class over the report window; one zero follows a window with requests, then none while quiet. http-request-durationMean time the server took to answer a request of one method, route template and status class over the report window. http-request-duration-maxThe slowest request of one method, route template and status class over the report window. db-slow-query-countQueries that ran past the database slow-query threshold over the report window, each also logged as a warning with its fingerprint; one zero follows a window with slow queries. db-pool-acquiredDatabase connections the server's pool had checked out at the end of the report window. db-pool-idleOpen database connections the server's pool held idle at the end of the report window. db-pool-totalDatabase connections the server's pool held open, in use or idle, at the end of the report window. db-pool-maxThe most connections the server's pool may open; db-pool-total reaching it means a new query waits. db-pool-acquire-countConnections the server's pool handed out over the report window, the denominator db-pool-wait-count is a share of; a pool that waited 40 times of 50 acquires is starved, of 50,000 it is not. db-pool-wait-countConnection acquires that found the pool exhausted and waited for a connection, over the report window; read against db-pool-acquire-count, 0 is healthy. db-pool-wait-durationTotal time acquires spent waiting on an exhausted pool for a connection to free up or open, over the report window. db-connection-countClient connections open on the database from every source (the server's pool, migrate, psql, a lab measure, a second server) at the end of the report window, read against db-connection-limit; at the limit the database refuses the next client whatever headroom the server's pool shows. db-connection-limitThe connections the database admits an ordinary role, max_connections less superuser_reserved_connections. db-connection-idle-in-transaction-countDatabase connections sitting idle inside an open transaction at the end of the report window, read against db-connection-count; 0 is healthy. Each holds a connection and its locks and blocks vacuum from reclaiming rows, a leak that shows nowhere until something fails. db-transaction-oldest-ageHow long the oldest open transaction on the database has been open at the end of the report window, whatever state it is in; a figure that only climbs is a transaction nothing is finishing. ingest-lagMean time from a sample's timestamp to its batch's commit on the server, over the newest and oldest sample of each batch landed in the report window; the outpost's clock stamps the sample, so a skewed outpost clock reads as lag. ingest-lag-maxThe oldest sample's lag at commit across every batch landed in the report window. ingest-batch-countTelemetry batches the server committed over the report window; a redelivery its receipt held to a no-op landed nothing and counts none. ingest-sample-countSamples the server's committed telemetry batches landed over the report window; an outpost group the fence or the gateway dropped counts none. ingest-lane-busyShare of the report window the telemetry lane spent handling batches; near 1 the lane is saturated and the consumer backlog grows. bus-consumer-pendingBatches on the telemetry stream not yet delivered to the server's consumer, at the end of the report window. bus-consumer-ack-pendingBatches delivered to the server's telemetry consumer and not yet acknowledged, at the end of the report window. bus-consumer-redeliveredBatches the telemetry consumer holds that were delivered more than once, at the end of the report window. bus-consumer-ack-floorThe telemetry stream sequence at and below which the server's consumer has answered every batch, landed or dropped, read at the report. It reaching an earlier bus-stream-last-seq proves every batch the stream held by then is settled, under any steady load. bus-stream-last-seqThe sequence of the last batch the telemetry stream stored, read at the report; it only grows, so the batches published by a moment are all at or below the head read after it. bus-telemetry-ack-failure-countBatch deliveries whose acknowledgement the bus did not confirm over the report window, a redelivery its receipt held included; each is redelivered and its receipt keeps it from landing twice, so this costs work, not rows. Written 0 in a window of confirmed acks, so healthy reads 0, not unreported; as a share of ingest-batch-count, healthy is 0. bus-worklist-pull-countOutpost worklist pulls the server answered over the report window, one sample per outcome as the instance (served, read-failed, oversize, respond-failed, expired, abandoned, busy). bus-worklist-reply-bytes-maxThe largest worklist reply the server holds sized for any outpost, at the end of the report window; nearing the bus payload limit means a reply will be refused as oversize. bus-request-countOutpost requests the server handled on the bus over the report window, one sample per path as the instance (heartbeat, command-pull, command-report). bus-request-failure-countOutpost requests on the bus the server failed to serve over the report window, one sample per path as the instance; a share of bus-request-count, written 0 beside a window of requests that all succeeded. calc-pending-depthThe deepest the queue of calculated metrics waiting to be computed stood over the report window. calc-served-countCalculated metric rows the server computed over the report window. calc-pass-durationMean time one pass over the calc queue took over the report window. outbox-queued-depthNotifications queued to send, due or waiting out a retry backoff, at the end of the report window. outbox-due-ageHow long the oldest due notification has waited past its send time, at the end of the report window; zero when nothing is due. sweep-durationMean time one pass of a server sweep took over the report window, one sample per sweep as the instance (command-settlement, event-rule). sweep-countPasses of a server sweep over the report window, one sample per sweep as the instance. sweep-failure-countPasses of a server sweep that failed over the report window, one sample per sweep as the instance; a share of sweep-count, written 0 beside a window of passes that all succeeded. push-lane-publish-countPushes that waited for the push lane's publish turn over the report window, taken or refused. push-lane-refusal-countPushes refused because their wait for the publish turn passed the bound (answered 503, nothing minted) over the report window; a share of push-lane-publish-count. push-lane-turn-wait-p99The 99th percentile of how long a push waited for the publish turn over the report window, a refusal's whole bound included. push-lane-turn-wait-maxThe longest a push waited for the publish turn over the report window, a refusal's whole bound included. command-pending-countCommands waiting for the outpost, the ones its next pull would take and the ones it took that await their execution report, sampled each platform tick. command-pending-ageSeconds the oldest command waiting for the outpost has waited since its issue, sampled each platform tick; zero while none waits. command-dispatch-latencyTime from a command's issue to the first time an outpost took it, one sample per command at that take; a command no outpost takes writes none and counts as expired. command-execution-latencyTime from a command's first take to the outpost's execution report, one sample per command at the report. command-redelivery-countCommands a pull redelivered (taken again after no report came) over the platform tick's window, read 5 s behind the tick so a take still committing is not missed; written every tick, zero when none. command-stuck-countCommands the outpost took that have had no execution report for longer than the redelivery wait, still inside the delivery window, sampled each platform tick. command-expired-countCommands that aged past the delivery window unexecuted over the platform tick's window, instance undelivered (no outpost took it) or unexecuted (taken, never reported); written every tick, zero when none. command-pull-failure-countPulls of the outpost's command queue that failed (no answer, or one it could not read), over the report window; reported every window, 0 when quiet. room-temperatureAmbient temperature reported for the space, in degrees Celsius. occupancy-countPeople detected in the space by the room's occupancy source. people-countPeople a counter detects in its field of view, as the device reports them. room-sensor-temperatureAmbient temperature a device reads off its room's sensor, in degrees Celsius, as the device reports it. booking-countMeetings booked in the space for the rest of the day, the one in progress included, as its scheduling service reports them. uptimeHow long the device reports it has been running, in seconds (an SNMP sysUpTime scaled from timeticks, or the driver's equivalent). volumeThe output volume a component reports, as a fraction of its range (0 to 1). A settable quantity: the set-volume command opens an intended volume and settles when the component reports it. participant-countThe participants a component reports in its current call; 0 when no call is active. audio-levelThe audio level a component reports, in decibels relative to digital full scale (0 is the loudest it can carry). battery-chargeHow charged a component reports its battery, as a fraction of full (0 to 1). light-source-hoursThe hours a component reports its light source (a projector's lamp or laser) has been lit. temperatureThe temperature a component reports of itself (its chassis, heatsink or processor), in degrees Celsius. fan-speedThe speed a component reports of its cooling fan, in revolutions per minute. voltageThe voltage a component reports at its input, in volts. currentThe total current a component reports drawing, in amperes. pan-angleHow far a camera reports it is panned from its centre, in degrees (negative to the left, positive to the right). tilt-angleHow far a camera reports it is tilted from level, in degrees (negative down, positive up). zoom-levelThe magnification a camera reports, as a multiple of its widest view (1 is the widest). camera-presetThe number of the stored position a camera reports it is on; 0 when it is on none (it was pointed by hand or is tracking). peripheral-countHow many peripherals (cameras, microphones, touch panels) a component reports attached to it. packet-loss-ratioThe share of a call's media packets a component reports lost, as a fraction (0 to 1); 0 is healthy, and 0 when no call is up. jitterThe variation in a call's media packet arrival a component reports, in milliseconds; 0 when no call is up. bitrateThe rate a component reports sending a call's video at, in kilobits per second; 0 when no call is up. frame-rateThe frames per second a component reports sending a call's video at; 0 when no call is up. speaker-levelThe output level a component reports at its speakers, as a fraction of its range (0 to 1); 0 when it plays nothing. cpu-utilizationHow busy a component reports its processor (its CPU or its DSP engine), as a fraction of its capacity (0 to 1). memory-utilizationHow much of its memory a component reports in use, as a fraction of its capacity (0 to 1). active-channel-countThe channels a component reports active (carrying signal) of those it has. storage-utilizationHow full a component reports its local storage, as a fraction of its capacity (0 to 1). active-recording-countThe recordings a component reports it has in progress now. queue-depthThe items a component reports waiting in its work queue, not yet picked up. http-response-timeTime for the probe's HTTP request to draw a response (any status); absent when the API never answered. ssh-handshake-timeTime for the SSH key exchange to reach authentication; absent when the daemon never completed it. telnet-response-timeTime for a telnet port to send its first bytes (an option negotiation or a banner) after the connection opened; absent when the port accepted and stayed silent. tls-handshake-timeTime for the TLS handshake to reach the certificate after the connection opened, one observation per probe the component answered; absent when it never answered the handshake. udp-response-timeTime for a udp endpoint's request rung to be answered, from its first send, so a lost datagram's retry shows as time; one observation per probe the component answered, absent when every attempt was lost. snmp-response-timeTime for an snmp endpoint's request rung, a get of a standard OID, to be answered, one observation per probe the agent answered (an authorizationError included); absent when the get went unanswered. tls-certificate-days-leftDays from the probe to the not-after of the certificate a tls probe accepted, to the hundredth, negative once it has expired; one observation per probe, the number a threshold rule reads (an expression cannot read the clock). replacement-costWhat replacing one of this product costs, in US dollars. A product fact, set as the product contract's default. expected-life-yearsHow many years one of this product is expected to last in service. A product fact, set as the product contract's default. -
A duplicate name is refused (409), and an attempt to change an official metric is refused too. The refusal reaches across lanes: the metric, property, and event catalogs share one namespace, so a name one of them holds cannot be registered in another, which is what keeps per-lane routing unambiguous.
The catalog is also the collection vocabulary: a pushed sample lands in the metric series only if its name is registered here; an unregistered name is rejected and reported in the push response, not silently dropped and not invented.
Declare a metric on a classifier
Section titled “Declare a metric on a classifier”The catalog says a metric exists; a classifier says which metrics its instances carry.
The contract shape is the same as the property contract,
held in the metric siblings of the property contract tables (product_metric,
standard_metric, location_type_metric): a product declares for its
components, a standard for its systems, and a
location type for the locations of that type. Each line names a catalog
metric, optionally gives it a default, and optionally marks it required: a product ships a
default sample rate, a standard requires a seat count. An outpost’s own probe metric (tcp-connect-time,
icmp-rtt-avg and the rest) is a reserved key no contract declares, as on the property side.
Type, unit, and precision are not repeated in the contract; they stay on the catalog entry, so
a metric means one thing everywhere. The contract lines that predate the two-lane split moved into
these tables when the catalog divided, and the classifier blades edit both lanes: a Declared
metrics panel sits beside the declared-properties one on the product, standard, and location
type blades, over the contract’s own routes (/products/{id}/metrics and its standard and
location-type siblings, mirrored in the generated CLI). An instance resolves a declared
metric to the newest observed or calculated sample across its live instances (a deleted
endpoint’s frozen reading left out), falling back to the contract default until one arrives; the
per-owner reads (/components/{name}/metrics and its system and location siblings) answer that
resolution beside any off-contract series the owner holds, naming the instance each value came from
and, where several endpoints collect a metric, each one’s latest
(how an instance resolves).
Where a metric’s values come from
Section titled “Where a metric’s values come from”A metric’s values are telemetry, not something typed on an instance’s detail:
- An observed value arrives through collection: a task samples
the device and pushes the reading. The shipped probes write the timings in the seeded set above:
the TCP-connect probe
tcp-connect-time, the ICMP probeicmp-rtt-avg. Each probe’s state (tcp-open,icmp-reachable) is a property, stored when it changes, not a metric row every tick. - A calculated value is produced by a rule from other telemetry, and the row names the rule that produced it, so a derived number is never mistaken for a reading.
- A command that targets a metric (set a volume) records the value it intends, landing beside the observed series so intent and reality can be compared.
Each metric has exactly one writer class, shown on the catalog row as writer_class
(who writes a key): the probe metrics
above are outpost-probe, written only by the outpost that probed the endpoint, a calc rule’s output is
calc, and a metric you register is collected, written by a driver’s emits or a push. A write from
anyone the class does not admit is refused naming the key, and a new metric cannot take a native probe
key’s name.
The current value is derived on read: the newest raw row unless a block holds a newer sample (the metric lane uses metricNewestSQL), never from a separately maintained copy
(the sample lanes). A declared metric value is not writable
today: the metric lane refuses declared provenance until a writer exists, so a number an
operator asserts by hand has nowhere to land yet.
From the CLI, the catalog is omniglass metric-type list|get|create|update|delete (see the
CLI reference).