Status and writes
What featuremeshd serves and runs is visible in SHOW SERVING STATUS, in SHOW SERVING WRITES, and in the loggers on its statements. Its OpenTelemetry metrics, which carry the same counters, are in Metrics .
SHOW SERVING STATUS [LIKE '<pattern>'];
SHOW SERVING WRITES [LIKE '<hook pattern>'] [LIMIT <n>]; - Per featuremeshd, in memory. Both commands answer from the memory of the featuremeshd they reach, for what it serves and runs. A restart starts their answers over. A deployment of several featuremeshd answers per pod ( Reach a pod ).
- Over HTTP. Send them as FeatureQL to featuremeshd's HTTP port,
POST /v1/featureqlwith{"query": "SHOW SERVING STATUS;"}. The rows are in the response'sdata.rows, an error in itserrors, with HTTP 200. LIKEkeeps the names that match,%standing for any run of characters and_for one, ignoring case.- Counts only reach the registry. featuremeshd reports runs, records read and entries drained, never a key, a value or an event. Usage is counted, never billed.
CREATE OR REPLACE FEATURES IN FM.TUTORIALS.HOOK_STATUS AS
PERSIST
stream := SOURCE_STREAM(
'kafka://host.docker.internal:29093'
WITH (
FORMAT = 'json'
)
),
payments := EXTERNAL_COLUMNS(
payment_id BIGINT,
merchant_id BIGINT,
amount DOUBLE
FROM TABLE(stream[tut_hook_status])
),
payment_id := INPUT(BIGINT),
merchant_id := INPUT(BIGINT),
amount := INPUT(DOUBLE),
last_pay := ROW(payment_id AS payment_id, amount AS amount),
last_ps := PREPARED_STATEMENT(
last_pay
USING (payment_id, merchant_id, amount)
),
last := SINK(
'redis://host.docker.internal:26379'
KEY 'tut_hook_status:last:{' || merchant_id::VARCHAR || '}'
WITH (
FORMAT = 'json',
MODE = 'latest'
)
),
on_payment := HOOK(
RUN last_ps
ON payments AS p
USING (p[payment_id], p[merchant_id], p[amount])
TO last
)
;| feature_name VARCHAR | status VARCHAR | message VARCHAR |
|---|---|---|
| FM.TUTORIALS.HOOK_STATUS.AMOUNT | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.LAST | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.LAST_PAY | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.LAST_PS | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.MERCHANT_ID | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.PAYMENTS | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.PAYMENT_ID | CREATED | Feature created as not exists |
| FM.TUTORIALS.HOOK_STATUS.STREAM | CREATED | Feature created as not exists |
TEST SERVING PRODUCE 'FM.TUTORIALS.HOOK_STATUS.PAYMENTS'
{"key": "7", "time": "2025-11-24T15:00:00", "partition": 0, "value": {"payment_id": 1, "merchant_id": 7, "amount": 10.0}}
{"key": "9", "time": "2025-11-24T15:00:05", "partition": 0, "value": {"payment_id": 2, "merchant_id": 9, "amount": "ten"}}
{"key": "7", "time": "2025-11-24T15:00:10", "partition": 0, "value": {"payment_id": 3, "merchant_id": 7, "amount": 4.0}}SHOW SERVING STATUS
SHOW SERVING STATUS and RECOMPILE SERVING answer the same table, one row per definition: FEATURE, KIND, STATUS, MESSAGE and SINCE. SHOW SERVING STATUS reads it without a sync, and lists no REMOVED rows. A definition that fails to load does not fail the recompile or block the others ( Recompile before serving ).
Statuses by kind
STATUS | Prepared statements, sources, loggers, streams | Hooks | Materialized views |
|---|---|---|---|
LOADED | served as defined | loaded at the last sync, not started yet | the same |
PARTIAL | a prepared statement only: loaded, but a source it reads failed to load. It is served, and its reads of that source follow the fallback rules . MESSAGE names the source | ||
RUNNING | from the moment it loads: before its first batch, on a quiet topic, and after each batch or drain that succeeded | from the moment it loads: before its first run, a view without SCHEDULE never asked, after a run that landed, and after a slot another replica ran (last.outcome = BUSY) | |
STALLED | a source, sink or queue does not answer: the batch or drain is retried. error says why, waits_on names the hook ON its statement whose failure holds it | its last run failed, until a run lands. A scheduled run is STALLED while it retries | |
IDLE | nothing to do: no sink, no logger on its statement and no hook ON it | ||
STOPPED | this featuremeshd does not run hooks and views: it is a serving-only one ( Deploy ) | the same | |
STALE | its new definition failed to load; the last good version is still served | a new definition failed to load; the last good version is kept, not started yet | the same |
ERROR | it failed and was never loaded; nothing is served under its name | its definition did not load (an invalid sink, a property it cannot read) and no earlier version ran. MESSAGE is definition: <the error> | the same |
UNSUPPORTED | a source kind this featuremeshd does not handle | this featuremeshd is built without hooks and views | the same |
REMOVED | no longer in the registry, in RECOMPILE SERVING only | the same | the same |
featuremeshd adds a REGISTRY_SYNC row, OK or ERROR, for its periodic sync. When it is ERROR, with the time it started failing, everything keeps running as loaded, and no CREATE, DROP or RECOMPILE SERVING reaches featuremeshd.
MESSAGEnames the failing step, the definition itself, the connector or the data source, and why.- A new hook or view definition that fails to load leaves the last good version running. The row shows that version's state,
RUNNINGorSTALLED, and itsMESSAGEstarts withserving the last good version; definition: <the error>;, then the running version's details. Before that version starts, the row isSTALE. - A missing or refused topic is not a load failure. The hook is
STALLED, itserrornaming the topic (topic payments does not exist (or this consumer may not describe it): waiting for it; once created, it is read from its first record), or giving the broker's own message for an ACL that refuses the group. It starts once the topic exists or the ACL allows it. - A configuration featuremeshd refuses stops it at start, with the error in its log. There is no row ( Configure featuremeshd ).
A missing secret, by kind
featuremeshd reads a SECRET when it connects, so what an unreadable secret does depends on when that is ( Credentials ):
| Kind | An unreadable SECRET |
|---|---|
| database or HTTP source | ERROR, the property named in MESSAGE. Nothing is served from it, and a statement reading it is PARTIAL |
| stream | its hook loads and is STALLED: the consumer cannot start (the stream's PASSWORD: SECRET('env', 'X'): the environment variable is not set), and starts again with backoff |
| a hook's sink or queue | the hook loads and is STALLED, as for a sink that does not answer, naming the property |
| a view's sink | the view loads; its run fails and the view is STALLED until a run lands |
A hook starting at 'latest' or at an interval, whose broker does not answer, is STALLED too.
A hook's details
A hook's MESSAGE holds its details as JSON:
SHOW SERVING STATUS LIKE 'FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT';| MESSAGE FIELD VARCHAR | VALUE VARCHAR |
|---|---|
| trigger | "stream FM.TUTORIALS.HOOK_STATUS.STREAM topic tut_hook_status" |
| counters.records | 3 |
| counters.calls | 2 |
| counters.writes | 1 |
| counters.data_errors | 1 |
| error | null |
The whole MESSAGE of that row, on one line, shown indented. lag is null until it is refreshed off the batch path:
{
"datakey": "FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT@61141b1ba84531df",
"trigger": "stream FM.TUTORIALS.HOOK_STATUS.STREAM topic tut_hook_status",
"start_time": "2025-11-24T15:00:00.000000",
"partitions": [{"partition": 0, "committed": 54, "lag": null, "newest_record_time": "2025-11-24T15:00:10.000000"}],
"counters": {"records": 3, "batches": 1, "calls": 2, "writes": 1, "deletions": 0, "data_errors": 1,
"trimmed": 0, "retries": 0, "scheduled": 0, "deduplicated": 0},
"queue": null, "error": null, "waits_on": null, "subscribed": true
} | Detail | Holds |
|---|---|
datakey, trigger | the definition running, and what fires it |
start_time | an event hook: the Kafka time of the earliest record in the first batch this featuremeshd ran, since it started or since the definition changed. It says when this replica began reading, not what an index holds: other replicas, earlier runs and late records write events of any time |
partitions | an event hook, per partition this replica holds: committed (the next offset to read), lag (the partition's end minus committed, refreshed after each commit) and newest_record_time (the largest Kafka timestamp among the records committed) |
queue | a scheduled hook's queue, as this replica last checked it, every EVERY, also when another replica holds the lease. See below |
counters | since start, or since the definition's last change: records, batches, calls, writes, deletions (values removed), data_errors, trimmed (index members past RETENTION), retries, references scheduled and deduplicated |
error, waits_on | why it is STALLED; the hook whose failure it waits on |
A queue's details:
| Detail | Holds |
|---|---|
depth | every entry, due or not. It grows before each bucket closes, so zero due entries is not an empty queue |
due | the entries due now |
oldest_due_age_seconds | how late the drainer is |
lease_holder, lease_number, last_check | which featuremeshd drains the queue ( Leases ) |
last_drain | the last drain's time, references and duration: 3,000 references at 1,000 per batch are three batches |
counters | drains, fires, entries_expired, entries_dropped, lease_lost: drains run, references run, entries dropped by EXPIRE, entries dropped by a recompile that moved the queue, drains another featuremeshd took over |
None of these counts records. While drains fail, they do not move.
A view's details
A materialized view's MESSAGE holds:
| Detail | Holds |
|---|---|
datakey, schedule, time_zone | the definition running; schedule and time_zone are null for a view without SCHEDULE |
next_slot | the next slot due |
runs, failures, retries | counters |
running | the run in progress on this featuremeshd, or null |
last_success | when this featuremeshd last landed a run; null until it has |
last | the last run here: its slot, run, outcome (OK, FAILED or BUSY), busy (the replica that held the lease), rows, deleted, data_errors, stale (sinks a newer run had published) and error |
An orchestrator follows a RECOMPUTE by its run number in last ( Run a view from an orchestrator ).
SHOW SERVING WRITES
The last writes, deletions and errors of the hooks, oldest first, kept in featuremeshd's memory: the last 1,000 by default, lost at a restart. LIMIT keeps the last n. A featuremeshd set to keep none answers no rows ( recent_writes ).
SHOW SERVING WRITES LIKE 'FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT' LIMIT 2;| HOOK VARCHAR | SINK VARCHAR | ACTION VARCHAR | KEY VARCHAR | REQUEST_TIME VARCHAR | VALUE VARCHAR | PARTITION BIGINT | OFFSET VARCHAR | AT VARCHAR | CALL VARCHAR |
|---|---|---|---|---|---|---|---|---|---|
| FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT | (empty) | ERROR | (empty) | * | * | 0 | * | * | * |
| FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT | FM.TUTORIALS.HOOK_STATUS.LAST | WRITE | tut_hook_status:last:{7} | * | * | 0 | * | * | * |
The same two rows from a run of the example above, one field per line:
HOOK FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT
SINK FM.TUTORIALS.HOOK_STATUS.LAST
ACTION WRITE
KEY tut_hook_status:last:{7}
REQUEST_TIME 2025-11-24T15:00:10.000000
VALUE {"payment_id":3,"amount":4.0,"request_time":"2025-11-24T15:00:10.000000","compute_time":"2026-11-25T22:50:12.099294","datakey":"FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT@61141b1ba84531df","partition":0,"offset":53,"drain":null}
PARTITION 0
OFFSET 53
AT 2026-11-25T22:50:12.134614Z
CALL {"id":"FM.TUTORIALS.HOOK_STATUS.LAST_PS","inputs":{"input_1":[[3,7,4.0]]}}
HOOK FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT
SINK (empty)
ACTION ERROR
KEY (empty)
REQUEST_TIME NULL
VALUE HOOK-RECORD-DECODE: the record does not decode into its declared fields: Json error: whilst decoding field 'record': whilst decoding field 'amount': failed to parse "ten" as Float64
PARTITION 0
OFFSET 52
AT 2026-11-25T22:50:12.110548Z
CALL NULL | Column | Holds |
|---|---|
HOOK, SINK | the hook, and the sink written |
ACTION | WRITE; DELETE, a data error that replaced a latest value by a tombstone, its REQUEST_TIME the record's; ERROR, a record or call that failed, with its message; DROPPED, queue entries dropped unrun because the hook's QUEUE or its reference changed, five references sampled per drop |
KEY | the key written |
REQUEST_TIME | the value's |
VALUE | the value written as JSON, or the error's message |
PARTITION, OFFSET | the record behind it; NULL for a drain's |
AT | when featuremeshd wrote it |
CALL | the statement call behind it, its id and inputs, as the statement object of a POST /v1/featureql body that computes the value again; for an ERROR or a DELETE, the call that failed, to replay it. NULL for a record that made no call, such as one that did not decode |
A queue entry run by a drain is not a DELETE: it counts in fires. Entries past EXPIRE are counted in entries_expired, not listed.
Related
- Recompile before serving .
- Delivery and failures : what the counters count.
- Feature logging : a trace of every call.
- Metrics : the same counters, exported per replica.