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>];
sql
  • 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/featureql with {"query": "SHOW SERVING STATUS;"}. The rows are in the response's data.rows, an error in its errors, with HTTP 200.
  • LIKE keeps 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.

FeatureQL
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
    )
;
Result
feature_name VARCHARstatus VARCHARmessage VARCHAR
FM.TUTORIALS.HOOK_STATUS.AMOUNTCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.LASTCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.LAST_PAYCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.LAST_PSCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.MERCHANT_IDCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.ON_PAYMENTCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.PAYMENTSCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.PAYMENT_IDCREATEDFeature created as not exists
FM.TUTORIALS.HOOK_STATUS.STREAMCREATEDFeature created as not exists

FeatureQL
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

STATUSPrepared statements, sources, loggers, streamsHooksMaterialized views
LOADEDserved as definedloaded at the last sync, not started yetthe same
PARTIALa 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
RUNNINGfrom the moment it loads: before its first batch, on a quiet topic, and after each batch or drain that succeededfrom 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)
STALLEDa 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 itits last run failed, until a run lands. A scheduled run is STALLED while it retries
IDLEnothing to do: no sink, no logger on its statement and no hook ON it
STOPPEDthis featuremeshd does not run hooks and views: it is a serving-only one ( Deploy )the same
STALEits new definition failed to load; the last good version is still serveda new definition failed to load; the last good version is kept, not started yetthe same
ERRORit failed and was never loaded; nothing is served under its nameits definition did not load (an invalid sink, a property it cannot read) and no earlier version ran. MESSAGE is definition: <the error>the same
UNSUPPORTEDa source kind this featuremeshd does not handlethis featuremeshd is built without hooks and viewsthe same
REMOVEDno longer in the registry, in RECOMPILE SERVING onlythe samethe 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.

  • MESSAGE names 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, RUNNING or STALLED, and its MESSAGE starts with serving the last good version; definition: <the error>;, then the running version's details. Before that version starts, the row is STALE.
  • A missing or refused topic is not a load failure. The hook is STALLED, its error naming 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 ):

KindAn unreadable SECRET
database or HTTP sourceERROR, the property named in MESSAGE. Nothing is served from it, and a statement reading it is PARTIAL
streamits 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 queuethe hook loads and is STALLED, as for a sink that does not answer, naming the property
a view's sinkthe 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:

FeatureQL
SHOW SERVING STATUS LIKE 'FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT';
Result
MESSAGE FIELD VARCHARVALUE VARCHAR
trigger"stream FM.TUTORIALS.HOOK_STATUS.STREAM topic tut_hook_status"
counters.records3
counters.calls2
counters.writes1
counters.data_errors1
errornull

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
}
json
DetailHolds
datakey, triggerthe definition running, and what fires it
start_timean 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
partitionsan 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)
queuea scheduled hook's queue, as this replica last checked it, every EVERY, also when another replica holds the lease. See below
counterssince 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_onwhy it is STALLED; the hook whose failure it waits on

A queue's details:

DetailHolds
depthevery entry, due or not. It grows before each bucket closes, so zero due entries is not an empty queue
duethe entries due now
oldest_due_age_secondshow late the drainer is
lease_holder, lease_number, last_checkwhich featuremeshd drains the queue ( Leases )
last_drainthe last drain's time, references and duration: 3,000 references at 1,000 per batch are three batches
countersdrains, 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:

DetailHolds
datakey, schedule, time_zonethe definition running; schedule and time_zone are null for a view without SCHEDULE
next_slotthe next slot due
runs, failures, retriescounters
runningthe run in progress on this featuremeshd, or null
last_successwhen this featuremeshd last landed a run; null until it has
lastthe 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 ).

FeatureQL
SHOW SERVING WRITES LIKE 'FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT' LIMIT 2;
Result
HOOK VARCHARSINK VARCHARACTION VARCHARKEY VARCHARREQUEST_TIME VARCHARVALUE VARCHARPARTITION BIGINTOFFSET VARCHARAT VARCHARCALL VARCHAR
FM.TUTORIALS.HOOK_STATUS.ON_PAYMENT(empty)ERROR(empty)**0***
FM.TUTORIALS.HOOK_STATUS.ON_PAYMENTFM.TUTORIALS.HOOK_STATUS.LASTWRITEtut_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
text
ColumnHolds
HOOK, SINKthe hook, and the sink written
ACTIONWRITE; 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
KEYthe key written
REQUEST_TIMEthe value's
VALUEthe value written as JSON, or the error's message
PARTITION, OFFSETthe record behind it; NULL for a drain's
ATwhen featuremeshd wrote it
CALLthe 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