Live Edit metrics reference#
This page lists the metrics an operator alerts on, builds dashboards from, or reads while diagnosing a problem. How to collect them, and the alert rules built on them, are on Monitoring.
Reading this page#
Names. Metric names carry their unit:
_seconds,_bytes,_microseconds. Counters end in_total. Histograms are exported as_bucket,_sumand_countseries.Types. A gauge marked “fleet-wide” holds one value for the whole fleet: the replica doing that work reports it and the others report the same value or
0. Aggregate it withmax(), neversum().Labels. Each row lists every label value the service emits.
serviceis the pod name, or the value ofserviceLabel. A metric with noservicelabel is identified by your scrape target’sinstanceorpodlabel. Under the chart’s ServiceMonitor, a metric the service emits without aservicelabel carries the Kubernetes Service’s name inservice, and one with noendpointlabel carriesendpoint="metrics".When series appear. Most counters report every label combination at
0from the first scrape; a row marked “appears on first occurrence” does not. Gauges and histograms appear with their first value.Conditional metrics. Backup counters report
0even with backups off; backup gauges and histograms appear only whencheckpoint.adapteris notDisabled, except thelive_edit_checkpoint_ext_mirror_*gauges, which read0with backups off. Scaler metrics exist only inautoscaling.mode: scaler, on the scaler pod.Stability. A release can add label values. Write queries with
sum by (label)and!=exclusions rather than lists of values.
“Watch for” lines name the conditions an operator acts on; the alert rules are on Monitoring.
Is it serving?#
These measure request traffic, errors and latency on each replica. Emitted always.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Counter |
calls |
|
Completed RPCs. Every combination is present at zero from startup. |
|
Histogram |
µs |
|
Duration of each completed RPC; buckets from 100 µs to 30 s. For streaming RPCs this is the stream’s lifetime. |
|
Gauge |
calls |
|
Calls in progress; for |
|
Histogram |
seconds |
|
Time from a successful join’s request until the user has the full state; buckets from 5 ms to 60 s. |
|
Gauge |
sessions |
|
Sessions with at least one |
|
Gauge |
connections |
|
|
|
Counter |
deliveries |
|
Live edits delivered to subscribers, one per recipient. Catch-up content is not counted. |
|
Counter |
events |
|
Presence events delivered to session participants. |
endpoint="other" collects health checks, reflection, the capabilities service and unknown methods.
Watch for: server-fault codes (INTERNAL, UNKNOWN, DATA_LOSS) on any endpoint — read the internal error (ERROR) and RPC failed (WARN) log lines.
Watch for: live_endpoint_duration_microseconds on JoinSession and SubscribeReadLayer — it measures session length, not speed; use live_edit_join_latency_seconds.
Diagnostic metrics for slow joins:
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
|
Which kind of catch-up subscribers needed: first connect, reconnect, or already current. Appears on first occurrence. |
|
Histogram |
|
Time spent building a subscriber’s catch-up. If joins are slow but this is fast, the wait was before the catch-up: admission or authorization. |
|
Histogram |
|
Time spent building a catch-up’s content, without its waits for catch-up memory or its fetches of large values from the backup store. |
|
Histogram |
|
Size of each catch-up; it grows with the layer. |
|
Histogram |
|
Latency of calls to the permissions and userinfo services. |
|
Counter |
|
|
|
Counter |
|
Open session connections whose presence entry had lapsed and that the service re-registered itself; peers see them join again. |
|
Counter |
|
Failed presence lease refreshes, retried at the next refresh; rises with backing-store trouble. |
|
Counter |
|
Session connections ended |
|
Counter |
|
Presence events a slow session connection missed. |
|
Counter |
|
Notifications from other replicas that this replica fell behind on. |
|
Counter |
|
Participants removed because their replica stopped refreshing them, for example after a crash. |
|
Histogram |
|
How long such participants stayed visible after their lease lapsed. |
|
Gauge |
|
Largest removal delay in the last clean-up pass; fleet-wide, use |
|
Histogram |
|
Duration of each presence clean-up pass. No |
catchup_mode is snapshot for a full state sent on a first connect or after the layer was replaced, and legacy for every other catch-up: a diff from the client’s version, or a reply that the client is already current.
After a disaster-recovery restore, a first open that fetches large values from the backup store counts that time in live_subscribe_catch_up_duration_seconds, not in live_diff_build_duration_seconds.
Its waits for memory are on live_edit_catchup_payload_wait_seconds, and with a StorageApi backup store each fetch is on live_edit_checkpoint_adapter_call_duration_seconds{verb="get"}.
Is the service held for disaster recovery?#
These report a hold for disaster recovery, during which every replica refuses every call, a replica that cannot read whether the service is held, and the disaster-recovery Jobs’ check of large values. The first three are emitted always.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Gauge |
0 or 1 |
none |
|
|
Counter |
holds |
|
Times this replica went into a hold while serving, by why the service was held. |
|
Gauge |
0 or 1 |
none |
|
|
Counter |
checks |
|
Backup-store checks for large values a restored or kept layer uses that neither the backing store nor the restored backups hold. |
|
Gauge |
values |
none |
Large values a restored or kept layer uses that are in no store: not in the backing store, a restored backup or the backup store. |
A restore or accept-loss Job reports the last two only on its own pod, while it runs, and nothing scrapes them.
To read them, port-forward the Job’s pod on service.metrics.port (default 9090) and read /metrics: kubectl -n {NAMESPACE} port-forward pod/{JOB_POD} 9090:9090.
Its log is the record: it names the layers, and up to 100 prims and attributes per layer, that use such values (Held for disaster recovery).
On result, error means the backup store answered with an error, or did not answer within its call limit; the Job treats that value as unconfirmed, which keeps the service held unless accept-loss runs with --confirm discard-unconfirmed-data.
The reason values say what was found:
keyspace_lost— the backing store lost all of the service’s data.slot_lost— the backing store lost the data of one hash slot, as when one shard loses its data.mapping_lost— a layer’s content is gone while the layer’s name remains.session_lost— a session’s record is gone, though the session was not deleted and its layers remain.successor_lost— the content of a layer that was replacing another is gone.retired_object_mapped— a layer still in use had its large values scheduled for clean-up.other— the hold names no reason this release knows.
Watch for: live_edit_dr_held at 1 on any replica — the service is offline for every user; see Held for disaster recovery.
Watch for: live_edit_dr_hold_verdict_stale at 1 — that replica cannot read the backing store and keeps trying until a read succeeds. On many replicas at once, check the store; if one stays at 1 while the others read 0, delete that pod.
Is live delivery keeping up?#
These measure how quickly other users’ edits reach subscribers, and why subscriptions end. Emitted always.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Histogram |
seconds |
|
Age of live edits when handed to the subscriber; buckets from 1 ms to 120 s. |
|
Counter |
streams |
|
Subscriptions that ended, once each, by why. |
stage="enqueued" is the edit’s age when it is queued on the subscriber’s stream: the service’s and the backing store’s work.
stage="transport" is its age when the service hands it to HTTP/2; the gap between the two is time waiting for the client or proxy to read.
Lag is measured from the writing replica’s clock, so clock skew between replicas shifts it.
The reason values on live_edit_subscriber_stream_exits_total:
client_disconnect— the client left; most endings are this.shutdown— a replica shut down gracefully; expect about one per stream on every pod a rollout replaces. Clients reconnect.held— the service went offline for disaster recovery, and every replica ended all its subscriptions at once. Clients retry, at least 30 seconds apart, until it returns.stale_verdict— this replica lost contact with the backing store for 30 seconds or more and stopped serving until it restarts. Clients reconnect.session_cancel— the session was deleted.session_absent— the session vanished from the backing store without being deleted; clients retry, and backups restore it when configured.slow_reader_deadline,inner_watchdog— the client (or the proxy in front of the service) did not keep up and the subscription was ended; the client reconnects.delivery_budget— the replica’s memory for undelivered live updates was full, and this subscription held the most; the client reconnects and catches up.reader_capacity— on a Valkey Cluster, no stream reader was free for the layer.catchup_capacity— no catch-up capacity freed in time. Both are retryable, and normally come before any content.fenced_read_wait_cap— a catch-up of a very large layer gave up waiting for its read; expected zero.stream_gap— the subscription fell behind the layer’s retained updates, or the layer was restored; the client reconnects with a full catch-up.error— any other failure; theRPC failedline’sstatus_messagesays which.
Watch for: stage="enqueued" p99 above a few seconds — the service or the backing store is slow; see Edits propagate slowly.
Watch for: a rising share of slow_reader_deadline or inner_watchdog — clients cannot keep up with the edit rate of the layers they watch.
Watch for: a steady rate of delivery_budget — subscribers fall far behind on layers with large edits; add replicas or raise resources.limits.memory.
Watch for: session_absent above zero outside a planned restore — the backing store lost data.
Diagnostic metrics for delivery:
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
|
Sends that waited on HTTP/2 flow control. Normal during |
|
Histogram |
|
How long stalled sends waited. A send that waits 5 s ends the subscription as |
|
Histogram |
none |
Edits waiting in a subscription’s buffer. At 4,096 sustained for 5 s the subscription ends as |
|
Histogram |
none |
Bytes waiting in a subscription’s buffer. At 8 MiB sustained for 5 s the subscription ends as |
|
Gauge |
none |
Memory this replica holds for undelivered live updates; compare, less the exempt bytes, with |
|
Gauge |
none |
The part of the charged bytes not counted against |
|
Counter |
none |
Times this replica was over |
|
Gauge |
none |
Stream-reader connections to the backing store open on this replica, at most |
|
Counter |
|
Stream-reader connection attempts. |
|
Counter |
|
Stream-reader re-authentication after a credential rotation. |
|
Counter |
none |
On a Valkey Cluster, subscriptions refused because every stream reader was busy with other layers; raise |
|
Counter |
|
Stream-reader connections the service rebuilt after they went silent. Occasional ticks are self-healing. |
|
Counter |
|
Stream-reader failures the service could not heal; subscriptions ended and clients reconnect. |
Is it saturated?#
These measure each replica’s use of its subscription, catch-up, upload and memory limits. Emitted always. Limits are per replica, so read these per replica.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Gauge |
subscriptions |
none |
Live subscriptions on this replica; compare with |
|
Gauge |
subscriptions |
none |
This replica’s subscription ceiling, set at startup from its memory limit (4096 at |
|
Counter |
subscribe calls |
|
Admission decisions for |
|
Gauge |
catch-ups |
none |
Catch-ups waiting for one of the replica’s catch-up slots. |
|
Counter |
uploads |
|
Admission decisions for uploads against the upload memory budget. |
|
Gauge |
bytes |
none |
Upload memory in use within the budget. |
|
Gauge |
bytes |
none |
The upload memory budget, set at startup from the memory limit (384 MiB at |
|
Gauge |
bytes |
none |
Memory for catching up subscribers to very large layers, set at startup from the memory limit (744 MiB at |
|
Gauge |
bytes |
none |
Memory for catch-up content and the large values catch-ups fetch from backup, set at startup from the memory limit (148 MiB at |
|
Gauge |
bytes |
none |
Memory for live updates not yet delivered to subscribers, set at startup from the memory limit (49 MiB at |
|
Gauge |
bytes |
|
Most memory the structural-edit cache holds, its own bookkeeping included (about 310 MiB at |
|
Gauge |
bytes |
none |
The clean-up memory allowance for deleted, replaced or abandoned layers, set at startup from the memory limit (10 MiB at |
|
Gauge |
bytes |
none |
Memory in use within the clean-up allowance; one clean-up of a layer with thousands of large values can take all of it. |
|
Histogram |
seconds |
|
How long each clean-up of a deleted, replaced or abandoned layer waited for the allowance. |
|
Gauge |
bytes |
|
The memory limit this replica sized its budgets from; the |
|
Histogram |
seconds |
|
How long received uploads waited for memory before processing. Waits near the RPC deadline end in |
|
Gauge |
bytes |
none |
The process’s resident memory, as the kernel reports it. Present from the first scrape. |
refused_saturated means the limit stayed full for the whole wait; refused_waiter_cap means the wait queue was already full, which a sharp burst can cause before refused_saturated appears.
refused_growth is an upload whose content outgrew the budget’s free room while another oversized upload was already running beyond it, or a chained UpdateLayer whose content outgrew that free room.
cancelled is a call that went away (shutdown, a deleted or missing session, a disconnected client, an upload’s deadline, or, for a subscribe, disaster recovery or a replica cut off from the backing store); it is not a capacity signal.
All refusals reach the client as a retryable UNAVAILABLE.
source is where the limit came from: cgroup_v2 or cgroup_v1, the container’s memory limit; host_memory, the node’s memory, smaller than that limit; reference, no readable limit, so the replica sized itself as a 5 GiB pod.
The seven budget gauges are set once at startup and change only when the pod restarts with another limit; compare usage with them rather than with fixed figures. Each carries the same labels as the usage gauge it is read against, so the two divide directly.
Watch for: live_edit_pod_memory_limit_bytes{source="reference"} above zero — that replica is not sized from its real memory limit; fix what its startup warning’s reason names (Startup and readiness, LiveEditPodMemoryLimitUnread in Additional alert rules).
Watch for: any refused_* subscription or upload result on one replica for more than a few minutes — that replica is full; see Capacity refusals.
Watch for: live_edit_subscribe_catchups_waiting above zero for 10 minutes on one replica — joins are queueing; add replicas.
Watch for: live_edit_upload_processing_wait_seconds p99 above a third of rpc.deadlineMs — uploads are close to failing.
Watch for: live_edit_retirement_wait_seconds{outcome="waited"} p99 of several seconds — deletes, replacements and background clean-ups queue for clean-up memory, and deletes can reach their deadline (Limitations). A larger resources.limits.memory raises the allowance.
Capacity diagnostics#
Read these while investigating a capacity alert or slow uploads. Emitted always.
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Histogram |
none |
Wait for a subscription slot. A p99 rising off zero before any refusal is the early warning. |
|
Gauge |
none |
Catch-ups running, at most |
|
Gauge |
none |
New subscriptions still waiting for their first catch-up; the autoscaler adds replicas on it. |
|
Histogram |
|
Wait for a catch-up slot; |
|
Histogram |
|
Wait for catch-up content memory, including each batch of large values fetched from backup; |
|
Gauge |
none |
Catch-up content memory in use within |
|
Gauge |
none |
Extra catch-up memory held while a catch-up carries a large value restored from backup; it can take usage above |
|
Histogram |
|
Wait for upload admission; rises before refusals start. |
|
Gauge |
none |
Uploads queued for admission now, at most |
|
Gauge |
|
Admitted uploads. Many |
|
Gauge |
none |
Memory of the one upload running beyond the budget; the pod limit must cover it. |
|
Gauge |
none |
Received uploads waiting for room in the budget or for their turn to run beyond it. |
|
Counter |
|
Uploads too large for the budget’s free room, which ran beyond it. A steady rate makes such uploads queue. |
|
Histogram |
|
Memory structural edits hold for the layer they edit; grows with the layer. |
|
Histogram |
|
How long chained |
|
Gauge |
none |
Chained |
|
Gauge |
|
Calls waiting for a transaction connection ( |
|
Gauge |
|
Connections in use per pool. |
|
Histogram |
|
Wait for a transaction connection. |
|
Gauge |
|
Memory the service holds allocated. Growing across load cycles suggests a leak; report it. |
|
Gauge |
|
Upper bound of memory the allocator holds, including freed memory not yet returned. Judge memory return by |
|
Gauge |
|
Memory freed but not yet returned to the system; sum the |
|
Gauge |
none |
Clean-up memory in use above its estimate, when a layer held more prims or large values than expected; returns to zero as clean-ups finish. |
|
Gauge |
|
Structural-edit cache memory, up to |
|
Gauge |
|
Live layers this replica has written; falls only when layers are deleted or replaced, so it stays flat after load. |
The allocator gauges are absent on builds for anything other than glibc-based Linux; the shipped image is glibc-based.
Is the backing store healthy?#
These measure the service’s view of its Valkey backing store. Emitted always. Each refusal also logs a line naming the layer and, where one exists, the key.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Gauge |
ratio |
none |
How full the backing store is: 0 to 1, above 1 past its limit. Each pod refreshes its own reading about once a minute. |
|
Counter |
writes |
|
Writes of uploads (and of layers restored from backup) the store refused before applying any of them. The client gets a retryable |
|
Counter |
clean-ups |
|
Clean-ups the service ran after the store refused a write for lack of memory, deleting released large values at once. |
|
Counter |
bytes |
none |
Bytes of released large values those clean-ups deleted. |
|
Counter |
reads |
|
Reads of layer state the store refused permanently. Everything that needs that layer’s state fails together. |
|
Counter |
writes |
|
Writes refused because a key held a value the service did not write. |
|
Counter |
reads |
|
Reads of layer state refused because a key held a value the service did not write. |
|
Counter |
writes |
|
Writes refused because a layer’s update stream holds entries the service did not write. |
|
Counter |
repairs |
|
|
|
Counter |
errors |
|
Commands that timed out, and connection errors, by connection pool. The |
|
Counter |
probes |
|
Readiness probes of the backing store that failed; each takes the replica out of rotation until the next success. |
|
Counter |
verdicts |
|
Connection checks the service stopped acting on, because rebuilding the connection did not change the reply. |
live_edit_store_memory_used_ratio is absent, never 0, while the service cannot compute it.
On Azure Managed Redis it needs valkey.memoryBytes set, reflects the cache as a whole, and appears about a minute after a pod starts.
The labels in operator terms:
reasonon store write refusals:out_of_memory— the store is full. If released large values filled it, the service frees them within seconds; otherwise it stays full until you act.misconf— the store cannot persist, usually because its disk is full.readonly— the write reached a replica, as during a failover.noreplicas— too few replicas are reachable.
outcomeon full-store clean-ups:freed— memory was freed, but the store is still too small.refused— the store did not let the service free memory while full.nothing_to_collect, orfreed_nothingwhoseWARNline showsoom_skipped=0— nothing to free. A store that keeps refusing is full of data in use.freed_nothingwhoseWARNline showsoom_skippedabove 0 — some released values cannot be deleted yet and are freed once the store has room. Not a sizing signal.failed— a clean-up error before it freed anything.
kindon read refusals:auth,tls,configandroutingare deployment or store faults;backend_unavailablecovers the conditions above that clear by themselves;backend_out_of_memoryis a full store; the rest are service faults to report.outcomeon counter repairs:repaired_seeded,repaired_noop,failedandfailed_after_repair— the store lost its data under running replicas.repaired_initializedandunhooked_initialized— expected once on a new store.wait_timeout— an upload stopped waiting for a slow repair.already_repaired— bookkeeping.
backend,siteandmodesay which write path met the bad key; the remedy does not depend on them.
Watch for: max(max_over_time(live_edit_store_memory_used_ratio[5m])) above 0.7 — plan to grow the store; above 0.85 — grow it now (Store memory).
Watch for: reason="out_of_memory" or kind="backend_out_of_memory" — page; see Backing store full.
Watch for: outcome="refused" — the service cannot free memory on this store while it is full; add memory (Backing store full).
Watch for: any increase on the type-error and collision counters — another writer is using the service’s keys; see Damaged layer keys.
Watch for: the four keyspace-loss outcomes of live_edit_object_id_counter_repair_total — see Keyspace lost.
Watch for: kind="command_timeout" sustained — the store, or the network to it, is slow; check its CPU and latency.
Backing-store diagnostics#
Read these while investigating a backing-store alert or slow edits. Emitted always.
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
|
Connection re-establishments. Timeouts alone mean a slow store; with reconnects, dropped connections; on |
|
Counter |
|
Silent connections the service closed. |
|
Counter |
|
Pool clients replaced after repeatedly going silent. Anything but an occasional |
|
Counter |
|
Internal connection handlers restarted after ending unexpectedly. Expected zero; report the |
|
Counter |
|
Transaction connections found unfit when checked out. |
|
Histogram |
|
Time to read a layer’s state, by reader. Slow reads explain slow catch-ups and backups. |
|
Histogram |
|
Duration of each |
|
Counter |
|
Retry attempts edits needed because of concurrent writers; |
|
Counter |
|
Commit conflicts by cause; high rates mean many writers on one layer. |
|
Histogram |
|
Attempts per committed edit. |
|
Histogram |
none |
Size of each edit’s update; sizes the store’s update retention. |
|
Counter |
none |
Edits that gave up waiting behind a whole-layer read of a very large layer. |
|
Counter |
|
Re-sent writes recognised by their operation id. |
|
Counter |
|
Failures in the background clean-up passes; rises with store errors. Appears on first occurrence. |
Are large values handled correctly?#
These measure large values (external values) carried by uploads: their content check, their release budget, and their reference counts. Emitted always; the release gauges appear after the first clean-up pass, the deficit gauge and live_edit_ext_meta_total after the first reconciler pass.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Counter |
values |
|
Large values checked against their declared size and hash. |
|
Gauge |
bytes |
|
Bytes of released large values waiting for clean-up; fleet-wide. |
|
Gauge |
bytes |
|
The release budget: uploads carrying large values wait while pending bytes are at or above it. |
|
Counter |
uploads |
|
Uploads that met a full release budget. |
|
Counter |
events |
none |
Reference counts that went below zero. Expected zero. |
|
Gauge |
references |
|
References missing from stored values’ counts, confirmed by the reconciler; fleet-wide, expected zero. Read it with |
ok must climb whenever clients upload large values; three flat cells mean no such uploads arrived.
Under layer.extValueVerify: enforce (default) each mismatch is a refused upload, almost always a client computing the hash differently.
Under observe each mismatch is a value stored unchecked.
source on the budget says where it came from: override (set explicitly, or derived from valkey.memoryBytes), info (derived from the store’s reported maxmemory) or fallback (neither is available).
Watch for: mismatches under observe — before switching back to enforce, ok should climb while both mismatch cells stay flat.
Watch for: pending bytes above 80 % of the budget — clean-up is behind and uploads may soon wait.
Watch for: live_edit_gc_underflow_total above zero, or live_edit_ext_ref_deficit_total above zero at any point in 6 hours — see External-value integrity.
Diagnostic metrics for large values:
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Gauge |
|
Age of the oldest released value waiting; above 60 s means clean-up is falling behind. |
|
Gauge |
|
Released values waiting for clean-up. |
|
Gauge |
|
Catch-ups currently holding clean-up off; long holds explain a growing backlog. |
|
Gauge |
|
Distinct large values stored; a sizing input. |
|
Counter |
|
Catch-ups that found a large value missing. |
|
Counter |
|
Reference releases applied. A sustained |
|
Counter |
|
Clean-up work by a replica of an older release on the same store. Expected only during upgrades and rollbacks. |
|
Counter |
|
Reference-count reconciler work, by outcome; the outcomes to act on follow the table. |
|
Counter |
|
Time samples at time |
|
Gauge |
|
Releases waiting to be retried after a store failure; should drain. |
|
Counter |
none |
Releases not recorded, as when a disaster-recovery hold interrupts a restore; reclaimed later. |
Repeated enumeration_failed on live_edit_ext_reconcile_total means reconciler passes never finish: from store errors, a wrong-type key its WARN line names, or a store too large for one pass (raise gc.extReconcileIntervalSecs).
Its deficit_observed, or a sustained skipped_unreadable_stamp, is worth a support case.
A reconciler pass that detects a store failover, restart or move of data between shards during its walk also ends in enumeration_failed, and later passes run normally.
A burst on live_edit_time_sample_signed_zero_merge_total after an upgrade is expected; merged or rekeyed recurring once every replica is upgraded, or recurring undecodable or failed, is worth a support case.
Are backups current?#
These measure backups (checkpoints) to the backup store; large values are under Are large values backed up?, restores under Restore diagnostics. Counters report 0 even with backups off; gauges and histograms appear only when checkpoint.adapter is not Disabled.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Counter |
writes |
|
Backup writes by outcome. Every evaluated layer counts each pass, |
|
Histogram |
seconds |
none |
How long layers with unsaved edits have waited for their backup; buckets from 5 s to 2 h. |
|
Gauge |
seconds |
|
The longest any single layer has waited; fleet-wide. |
|
Gauge |
layers |
|
Layers with no backup at all; fleet-wide. |
|
Gauge |
seconds |
|
This replica’s backup interval, |
|
Gauge |
seconds |
|
The age past which no configured delay explains a layer’s wait; alert thresholds use it. |
|
Counter |
requests |
|
Backup-store requests redirected to blob storage for large files. |
With healthy backups the pending-age p99 sits a little above checkpoint.interval.
oldest_pending_age_seconds and layers_never_written keep their last value after a pass that meets a backing-store error or a move of data between shards (When the store moves data between shards).
verb="put" redirects are normal for large backups; target_failed or complete_failed mean the pod cannot reach the blob-storage host.
verb="get", outcome="followed" means restores now depend on blob-storage access; the read succeeded, but check the backup store’s configuration.
Watch for: pending-age p99 above five intervals, or no kind="layer" writes at all — see Backups behind.
Watch for: layers_never_written above zero for 10 minutes — those layers would be lost with the backing store.
Watch for: result="error" by kind — the backup store is failing or unreachable. kind="counters_sidecar" errors alone can also be expected or mean a deleted record — see Backups behind.
Diagnostic metrics for backups:
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
|
Backup-loop leadership checks. |
|
Counter |
|
Backup-store calls that ran to their time limit; expected zero. |
|
Histogram |
|
Time per backup-store call ( |
|
Histogram |
|
Time to read the backup store’s layer-id record at startup or during a repair. |
|
Counter |
|
Backups confirmed complete. |
|
Counter |
|
Incremental backups ( |
|
Counter |
|
Extra full backups of new and restored layers. |
On live_edit_checkpoint_adapter_call_duration_seconds, verb="list_page" is one page of a listing, and a call that hit its time limit is outcome="ceiling".
refused_cleanup_in_flight on live_edit_checkpoint_tail_total and deferred_cleanup on live_edit_checkpoint_base_bootstrap_total are backups that waited for backup clean-up; a later pass writes them, and no action is needed.
Is backup clean-up keeping up?#
Backup clean-up deletes what the backup store no longer needs: copies of large values that no kept backup or layer uses, backups of deleted layers, and unfinished uploads.
It runs hourly by default on one replica (checkpoint.reconcileIntervalSecs).
The counter reports 0 even with backups off; the gauges appear only when checkpoint.adapter is not Disabled.
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
|
Backup-store clean-up work by outcome; the outcomes to act on follow the table. |
|
Gauge |
|
Large values in the backup store awaiting deletion; fleet-wide. |
|
Gauge |
|
Backups of deleted layers awaiting deletion; fleet-wide. |
outcome on live_edit_checkpoint_reconcile_total:
live_set_failed: large-value clean-up stopped for one pass, at a backup-store error, a malformed file, a file listed and then not found with nothing to explain it, or its time limit; itsWARNsays which (Backup clean-up alerts).listed_sidecar_skipped: a file listed and then not found because backups were being written or deleted at the same time; no action.ext_spared,ext_deferred_liveandext_deferred_rearmed: large values kept because a backup or a layer still uses them; no action.ext_healed: a large value’s copy was deleted while a layer still used it, and was put back at once; no action.ext_heal_unavailable: a kept backup names a large value with no copy left anywhere, so restoring that backup cannot restore it; it counts again each pass for up to a day. Open a support case with theWARN, which names the value.publish_deferred: layer backups that waited, usually a few minutes, because clean-up had just deleted a large value they name or was deleting an unfinished copy of the same backup; each is written later.dead_retired: deleted layers removed from clean-up’s backlog: backups deleted, or layer restored; the rate at whichlive_edit_checkpoint_dead_object_backlogdrains.dead_deferred: a deleted layer’s backups kept for now; itsINFOorWARNline says why.deferred_older_build: a pass skipped because a replica of an older release leads backups, or none does. Expected during an upgrade; outside one, checkLiveEditBackupLoopStopped.
Watch for: ext_heal_unavailable above zero — a backup cannot restore one of its large values; open a support case.
Are large values backed up?#
These measure the copies of large values to the backup store, and the repair that uploads the copies that were skipped (Backups of large values). Counters report 0 even with backups off; the live_edit_checkpoint_ext_mirror_* gauges read 0 with backups off, and live_edit_checkpoint_ext_backup_owed appears only with checkpoint.enabled: true and an adapter other than Disabled.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Gauge |
values |
|
Large values older than a few minutes with no confirmed backup copy, as of the last complete check; fleet-wide. |
One replica updates live_edit_checkpoint_ext_backup_owed every 5 minutes; a check that cannot finish, or that meets a backing-store error or a move of data between shards (When the store moves data between shards), leaves the last value in place.
Watch for: live_edit_checkpoint_ext_backup_owed above zero for an hour — large values are going without a backup; read live_edit_checkpoint_ext_backup_repair_total by outcome below.
Diagnostic metrics for large-value backups:
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
|
Large values whose backup copy was skipped, repaired minutes later except |
|
Counter |
none |
Large values the backup store failed to accept; repaired minutes later. Appears on first occurrence. |
|
Gauge |
|
Memory held by large values waiting to be copied to the backup store, or being copied or repaired. |
|
Gauge |
none |
The most memory those values can hold, set at startup from the memory limit (128 MiB at |
|
Counter |
|
Large values the backup repair checked or uploaded again; the outcomes follow the table. Every |
|
Counter |
|
Records of a backup copy the backing store failed to write; the repair checks those values again. Expected near zero. |
reason on live_edit_checkpoint_ext_mirror_dropped_total, each a large value left without a backup until the backup repair uploads it a few minutes later:
budget_full: the values waiting for the backup store filled their memory,live_edit_checkpoint_ext_mirror_budget_bytes. Check the backup store’s latency andlive_edit_checkpoint_ext_mirror_errors_total; if the store is healthy, raisecheckpoint.extMirrorWorkers(at most16) orresources.limits.memory.queue_full:checkpoint.extMirrorQueueCapacityvalues were already waiting. Raise it, orcheckpoint.extMirrorWorkers. A slow backing store can cause it too.oversized: a restored value larger than the copy memory, possible only for one uploaded under a higherlayer.maxSize. Neither the copy nor the repair uploads it untillayer.maxSizeis raised to at least its size (thebytes_lenin itsWARN), orresources.limits.memoryraiseslive_edit_checkpoint_ext_mirror_budget_bytesabove it.shutdown: values still waiting when a replica stopped. A few during a rollout under upload load are expected.collect_fenced: backup clean-up had just deleted this value’s copy, so it was not uploaded again at once; nothing to do.
outcome on live_edit_checkpoint_ext_backup_repair_total:
already_stored: the backup store already held the copy, so nothing was uploaded. It includes the daily re-check of every confirmed copy, and the one-time check of every large value after a restore or a change of backup location.resent: a missing copy was uploaded from the backing store.resend_failed: the value stays without a backup until a later check. A failed or timed-out upload, logged as aWARNcontainingcould not uploadortimed out, stops uploads until the next check, 5 minutes later: check the backup store as in Backups behind or stopped.probe_failed: the backup store did not answer whether it held a copy; checks stop until the next one. Check the backup store’s health.budget_busy: the copy memory stayed full for a minute, so uploads wait for the next check; act as forbudget_full.oversized: asoversizedabove; the value stays without a backup and is counted again at every check.value_gone: the value was deleted before it could be uploaded; nothing to do.collect_fenced: backup clean-up had just deleted this value’s copy, so the upload waits for a later check; nothing to do.confirmed_copy_missing: a copy recorded as stored was missing from the backup store; it is uploaded again, by a later check if uploads stopped for this one. Check for something outside the service deleting it, such as a lifecycle rule on the backup prefix, and for a risinglive_edit_checkpoint_ext_backup_mark_failed_total{op="clear"}.
Restore diagnostics#
Read these while a restore from backup runs, or after one (After a disaster-recovery restore). All are counters, reported as 0 even with backups off.
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
|
Missing large values fetched back from the backup store. |
|
Counter |
|
Restores from backup, triggered when a request finds a layer or session missing. |
|
Counter |
|
Restored layers whose leftover update stream was discarded. |
|
Counter |
|
Restores that could not settle a layer’s leftover update stream; the reasons follow the table. |
|
Counter |
|
Which backup a restore used. |
meta on live_edit_checkpoint_ext_recovery_total: present is a value a disaster-recovery restore left for the backup store to supply, fetched on its first read and expected after a restore; absent is a value lost outside a restore.
Each result has one series per meta, 10 in all, so a dashboard or alert that reads result alone must sum over meta.
reason on live_edit_checkpoint_recovery_stream_unresolved_total: probe_unreadable and unlink_unverified refuse the restore, so check the store and retry; wrongtype_key restores the layer but leaves another writer’s key to remove (Damaged layer keys).
Are credentials and auth services healthy?#
These measure the token files the service reads and its calls to the permissions and userinfo services. Token metrics are emitted only when a token file is configured.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Gauge |
0 or 1 |
none |
|
|
Gauge |
seconds |
|
Time until the cached token expires; negative once it has. Absent until a token is first loaded. |
|
Gauge |
seconds |
|
Life the old token had left when its replacement arrived; recorded once per rotation. |
|
Counter |
calls |
|
Failed calls to the permissions ( |
role="valkey" is the backing-store credential; role="storage-api" is the backup-store credential; unspecified does not appear on a deployed replica.
On role="valkey", headroom below 180 s means some connections may be dropped and re-established at that rotation.
While the auth services fail, cached authorizations keep working and other calls fail UNAVAILABLE.
Watch for: live_edit_service_token_expires_in_seconds below zero — see Credential expired.
Watch for: a sustained live_edit_auth_errors_total rate — the permissions or userinfo service is unreachable or slow.
Diagnostic metrics for credentials and auth:
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Counter |
none |
Token files the service could not parse; each logs a |
|
Counter |
|
Authorizations served from cache. |
|
Counter |
|
Authorizations that called the auth service; the load on it. |
|
Counter |
none |
Callers the userinfo service did not know, named from their token instead. A rate close to the userinfo call rate means the wrong directory. |
Is the autoscaler working?#
These measure the replica autoscaler’s decisions. Emitted only in autoscaling.mode: scaler, on the scaler pod’s port 9090.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Counter |
polls |
|
One per poll whose cluster reads succeeded, by what it decided. |
|
Gauge |
replicas |
none |
The replica count the scaler set or kept. |
up carries the signal that raised the count; none with no_data means no server pod answered the scaler, and none with held means a server pod is held for disaster recovery, so the count is frozen.
Watch for: no decisions for 10 minutes, or only no_data — the replica count is frozen; see Scaler not deciding.
Watch for: live_edit_scaler_target_replicas at autoscaling.maxReplicas while replicas refuse work — the fleet is full.
Diagnostic metrics for the autoscaler:
Metric |
Type |
Labels |
What it tells you |
|---|---|---|---|
|
Gauge |
|
The count each signal asked for; shows which signal drives the fleet. |
|
Gauge |
|
Server pods by state; anything but |
|
Gauge |
|
Catch-ups per second per replica the scaler plans with. |
|
Counter |
|
Failed cluster reads and writes. Sustained |
|
Counter |
|
Why a wanted scale-down was held, or, for |
Is trace export working?#
These measure OTLP trace export. Emitted only when observability.tracing.enabled is true; their presence is the sign that export is on.
Metric |
Type |
Unit |
Labels |
Description |
|---|---|---|---|---|
|
Counter |
spans |
none |
Spans delivered to the collector. |
|
Counter |
spans |
|
Spans lost before reaching the collector. |
queue_full: export did not keep up and the queue of observability.tracing.batch.maxQueueSize spans was full. export_failed: the collector refused or did not answer, or the TLS handshake with an https:// collector failed, for example on an untrusted certificate.
A trace spans dropped WARN line, at most once a minute, carries the collector’s last error.
Watch for: sustained drops — the trace view is missing spans; raise observability.tracing.batch.maxQueueSize or fix the collector. Clients are not affected.
Self-checks that should read zero#
Each of these counts an internal consistency check that fired. On a healthy deployment every one stays at zero. The service has already protected the data; any increase means: collect the logs of every replica and open a support case.
Metric |
Labels |
Cell that should stay at zero |
|---|---|---|
|
none |
all |
|
|
|
|
|
|
|
|
|
|
|
|
|
none |
all |
|
|
all |
|
|
|
The LiveEditSelfCheckFired alert in Internal-check alerts covers all eight.
An upgrade from, or rollback to, a release that stores time samples at -0.0 as written can raise some of them with no support case needed: Upgrading from such a release.
Metrics not listed here#
The service exports further live_edit_* and live_* series for support engineers; their meaning can change between releases, so do not build alerts or dashboards on them.
See next#
Troubleshooting and Troubleshooting the backing store, capacity and rollouts cover symptoms and their fixes; Operations covers upgrades and rollbacks.