# Monitoring

[Warden](/deployments/warden) collects metrics, heartbeats, and logs from each deployment node. It sends telemetry, the records of system activity, to the control plane. You can read it in the Console or through the API.

```mermaid
graph LR
  Warden[Warden Agent]
  Metrics[Metrics]
  Heartbeats[Heartbeats]
  Logs[Logs]

  Warden --> Metrics --> CP[LaserData Control Plane]
  Warden --> Heartbeats --> CP
  Warden --> Logs --> CP
  Logs -.->|optional redirect| OTEL[Your OTEL Endpoint]
```

Telemetry goes to LaserData by default. You can send logs and traces to your own OpenTelemetry-compatible endpoint instead.

## Understand a New Deployment

Platform services create resources before you send application data. The prober, a service that tests writes to the streaming server, sends a message to `_ld/prober` every five seconds by default. Warden and managed services can also appear as connected clients. Stream, topic, client, and message counts therefore do not start at zero or have one fixed initial value.

Use Include prober in Metrics where available to separate health traffic from application counts. For your first test, inspect the stream and topic named by the producer. Do not delete platform resources to make a dashboard count zero.

## Which Health Status to Use

The cards measure different things. `initialized` is a provisioning state. A recent heartbeat shows that a service reported its condition. All nodes serving summarizes node readiness. The Health Probe card measures the age of the last observed probe write.

The current Health Probe card uses these thresholds:

| Label | Meaning |
| --- | --- |
| Healthy | The last probe is less than 15 seconds old |
| Degraded | The last probe is at least 15 seconds old and less than 60 seconds old |
| Unhealthy | The last probe is at least 60 seconds old |
| Probe data unavailable | Required probe timestamps are missing |

A node can report Healthy while the latest probe record is delayed. Read the probe time, node readiness, and logs together. The card calculates age from the browser clock, so make sure that your computer time is correct. If probe age continues increasing, test a send and read through your client and report the result with the deployment ID.

### Shared-Host Capacity and Network Counters

On Free deployments, memory and disk values describe your slot limits. They do not describe the entire physical host. Compare them with [Free allocations](/deployments/tiers-storage#free), not a dedicated VM size.

Slot telemetry currently reports network RX and TX as zero instead of exposing the shared host counters. A zero Network I/O card therefore does not prove that no messages moved. Network throughput has no points for these deployments for the same reason. Streaming server message counts and process disk writes measure different activity and can increase at the same time.

### Times and Reports

Some Console dates use month-first formatting and local time. Do not infer date order from a value such as `9/9/2026`. When reporting a problem, use `YYYY-MM-DD`, include the time and timezone, and include the detailed record timestamp when available.

## Metrics

The metrics dashboard reports each node and runtime continuously. A runtime is a managed process, such as Iggy or Connectors.

<a id="whats-collected" />

### What Is Collected

| Category | Metrics |
| --- | --- |
| System | CPU usage, total CPU usage, memory usage, available memory |
| Process | Process ID, run time, start time |
| Disk I/O | Bytes read, bytes written |
| Iggy | Messages count, messages size, streams count, topics count, partitions count, segments count |
| Clients | Connected clients count, consumer groups count |
| Iggy runtime | Open file count and limit, thread count, free and total data disk space, message cache hits and misses |

Runtime names are `iggy`, `connectors`, and `connector:{id}` for individual connector instances. On dedicated nodes, `host` reports the virtual machine. Shared-host deployments expose slot-scoped values instead. Runtime-specific fields appear directly in each sample.

### Cluster and Managed Data Health

| Area | Signals |
| --- | --- |
| Iggy replication | `role`, `view`, expected and reachable voters, quorum, metadata and partition gaps, repairing and transferring groups |
| Partition replication | `partitions_under_replicated`, `partitions_below_write_quorum`, `partitions_owing_retirement` |
| Managed backend | Projection bindings and routes, decode failures, KV entries, open forks, projector lag, replay barrier and lag |
| Ownership and recovery | Owned, expected, and standby partitions, fence expiry and rejections, destination watermark, how the node's embedded database started and when a corrupt one was last deleted (`database_reset_at`), and synchronization state |
| Host | VM CPU and memory, load, swap, disk capacity and I/O, network receive and transmit counters |
| Shared-host quota | `cpu_quota_cores`, `cpu_usage_pct_of_quota`, `cpu_throttled_periods`, `cpu_throttled_usec` |
| Connector pipeline | Produced, sent, consumed, processed, filtered messages, and errors |

On a cluster, Warden reports three partition replication gauges for each node, each summed over the node's shards. `partitions_under_replicated` counts partitions the node leads with a member it cannot reach or a member that trails the commit point for too long. `partitions_below_write_quorum` counts partitions the node leads with too few members in sync to commit a write. `partitions_owing_retirement` counts partitions that refuse client sessions until they clear sessions that ended while the partition lacked a quorum of its members. Zero is healthy for all three. A node counts the first two only for the partitions it leads, so their deployment value is the sum of the nodes' latest samples, and a node at zero says nothing about partitions other nodes lead. The gauges are `null` on a single-node deployment and when Warden could not read them. See [Replication factor](/laser-sdk/advanced/log#replication-factor).

A heartbeat shows recent liveness. It does not prove that a node caught up or can serve managed requests. Read `observed_at`, `iggy_ready`, `last_probe_at`, and `serving` from the node readiness endpoint. `serving` is `true` only when every readiness check on the node passes.

`GET /deployments/{deployment_id}/health` shows the whole deployment in one reply: how many nodes are expected and serving, whether a quorum is serving, the readiness of each node, the state of its Iggy and connector runtimes, and the operation that owns the deployment with its phase and pause reason. For each source and sink it shows the state, the error count and the last error with its time, so a failing connector says why it fails. It needs `deployment:telemetry:read`.

### Network Throughput

Network throughput is the received and transmitted bytes per second of all deployment nodes together. It counts every interface of each node, so it includes replication between nodes, LaserData traffic, and traffic between processes on a node, not only client messages. Each node's rate comes from its own counters. A gap of more than 60 seconds between samples or a counter reset leaves a bucket partial or empty instead of producing a spike or a negative value. A bucket that misses some nodes reports fewer nodes than the deployment has. See [Get Deployment Network Throughput](/api/observability#get-deployment-network-throughput).

If a runtime omits an optional metric, treat its value as unknown. For the managed backend's `disk_free_bytes`, the maximum unsigned 64-bit value means that no disk sample exists. It does not mean unlimited capacity.

Read host and process utilization separately. On shared hosts, increasing throttling counters and high quota utilization can explain latency even with low usage across the whole machine.

### Viewing Metrics

1. Open your deployment in the Console.
2. Open the Metrics tab.
3. Select the node and runtime.
4. Select the time range.

## Heartbeats

Warden sends periodic health reports for managed runtimes such as Iggy and Connectors. You can read them by node, runtime, and historical time range. Missing reports indicate a possible runtime problem.

## Logs

Iggy logs include internal replication and connection events. Messages about groups, views, or disconnected consensus clients do not by themselves prove that application data failed. Select the affected node, runtime, level, and time range. Compare repeated warnings or errors with probe age and a client send-and-read test.

Warden collects logs from all runtimes and nodes. The platform stores them for searches. Large result sets use pages.

### Searching Logs

Filter logs by these fields:

| Filter | Description |
| --- | --- |
| Node | Filter to a specific node |
| Runtime | Filter by runtime (Iggy, Connectors, Kafka gateway, Warden) |
| Level | Filter by log level (any, debug, info, warn, error) |
| Message | Pattern match on log message content |
| Scope | Filter by component |
| Time range | Start and end timestamps |

### Viewing Logs

1. Open your deployment in the Console.
2. Open the Logs tab.
3. Select filters for the records that you need.
4. Read further pages for additional results.

## Log Redirection (OpenTelemetry)

LaserData stores logs by default. To keep them in your own system, configure an OpenTelemetry-compatible destination through the Console or support. This can support your privacy, compliance, or monitoring requirements.

Warden sends logs with `ExportLogsServiceRequest`. Compatible collectors and storage systems include Grafana Loki, Datadog, Elastic, and custom pipelines. Traces use `ExportTracesServiceRequest`.

## Monitoring Alerts

The platform watches deployment health and sends alerts through [notification channels](/observability/notifications). An alert starts when a threshold is crossed. A resolution event follows when the condition clears.

| Alert | Threshold | Description |
| --- | --- | --- |
| `high_cpu_usage` | CPU ≥ 80% (5-min window) | Sustained high CPU usage on a node |
| `high_memory_usage` | Memory ≥ 90% | Memory usage approaching capacity |
| `high_disk_usage` | Disk ≥ 80% | Disk usage approaching capacity |
| `node_unreachable` | No heartbeat for 120s | Node stopped reporting heartbeats |
| `runtime_degraded` | Only failing heartbeats for 5 min | A runtime still reports but keeps restarting, failing its health check, or refusing its config |
| `plane_condition` | See the table below | The managed backend on a node needs an operator |
| `replication_condition` | A partition replication gauge above zero for 5 min | Partitions on a node are short of a copy or a quorum of their members |

Resolution events include `cpu_usage_resolved`, `memory_usage_resolved`, `disk_usage_resolved`, `node_reachable`, `runtime_recovered`, `plane_condition_resolved`, and `replication_condition_resolved`. While samples show that a condition remains active, the platform keeps its alert open. Missing samples do not resolve it. If 24 hours pass without a usable sample, the platform can announce the condition again when reporting resumes. To receive alerts, create a [channel](/observability/notifications) and subscribe to its event types.

A `plane_condition` alert names its condition, the measured reason, and the recovery step. Most conditions must hold for the whole 5-minute window, so a short retry never raises one.

| Condition | Raised when |
| --- | --- |
| `fold_lag` | A fold stays at least 50,000 records behind its source |
| `backend_realization_pending` | A binding table waits more than 10 minutes for its destination |
| `source_history_truncated` | A source partition stopped because retention removed records it had not folded |
| `sync_stalled` | The Turso Cloud sync writer has not pushed for 5 minutes |
| `rebuild_blocked` | The node's database is behind the history the log still retains, so the node cannot catch up from the log |
| `fold_stalled` | A fold holds its cursor for the whole window because its store, a batch, or the read of its source keeps failing. A partition counts once it has been held for 30 seconds |
| `records_held` | A binding holds on a rejected source record and no skip was decided |
| `stream_purge_pending` | A deleted stream still has derived data to purge |
| `dead_letters_growing` | The managed backend queued rejected or skipped records for a dead-letter topic in the last 5 minutes |
| `disk_floor_near` | Free space on the managed backend volume is below twice the write floor |
| `database_growth` | The embedded database reaches the write floor within 12 hours at its current growth |
| `lease_flapping` | The writer lease of a shared destination changed hands at least 3 times |
| `lease_missing` | A shared destination partition had no lease holder on any node |
| `surface_unserved` | A managed surface on the node did not serve for the whole window: a key-value, fork, or graph surface replaying its mutation log, the memory folds a restart replays, or a destination that is not ready |
| `restart_loop` | The managed backend on the node restarted at least 3 times in the last 30 minutes, even if it served between restarts |
| `requests_refused` | The managed backend refused requests in the last 5 minutes because the requests in flight held all the memory it gives them |
| `database_reset` | Critical. The managed backend found its embedded database corrupt in the last 30 minutes, deleted it, and folded its state again from the log the node's streaming server holds |

A `fold_stalled` alert gives the number of held partitions in the monitoring window. A partition counts once its fold has held it for 30 seconds, so a read that fails once and succeeds on the next attempt is never counted. A fold whose stream or topic was deleted stops and reports nothing. When the latest node report lists a stall, the alert also names the oldest one. It gives its stream, topic, partition, cursor offset, kind, and reason. When the store refuses one record, the alert also gives that record's offset. A `store` stall can mean a store failure or a gap in the source history. An `apply` stall means a batch failed. A `source` stall means the fold could not read its source. A stall whose reason starts with `the fold cursor is not known yet` comes from a fold that has not read its position, so its offset names no record. The alert masks credentials in the reason.

A store or source that stops answering can recover on its own. A `source` stall clears once the fold reads its source again. A gap in the source history needs an operator to accept the gap. If a store repeatedly refuses one record, use the skip action on that record. The memory fold drops it. The session index keeps an `invalid` event with reason `skipped_record`. A key-value, fork, or graph write ends with an error that names the skip. Each skip queues a `skipped_record` entry for the dead-letter topic. The control fold does not offer this action.

A `fold_stalled` diagnostic on the dead-letter topic includes the source partition and the reason. Its `from_offset` is the first offset the fold has not applied. The latest node report lists up to 8 held records, each with the stream, topic, partition, topic creation time, offset, and target that a skip must name. Send one entry back unchanged as the source of the skip, on the node that listed it. A node on an earlier Warden version lists no held records until its Warden is upgraded. The refused record offset and `from_offset` can differ. Diagnostic entries stay on the topic for one day by default. A partition held for less than 30 seconds sends no diagnostic. A fold that stops retrying leaves the stall report after 3 minutes, and a fold whose stream or topic was deleted leaves it at once.

A `surface_unserved` alert gives the number of surfaces that did not serve during the monitoring window. When the latest node report lists unserved surfaces, the alert adds their names and reasons. A surface that replays its log can serve again once it reaches the head. A key-value, fork, or graph surface whose replay applied nothing new for 30 seconds stays listed with the reason `mutation fold held, plain reads serve the state folded so far, writes and positioned reads wait for the fold` until its fold reaches the head. A destination surface, named `backend:<id>`, serves again once its backend passes its readiness probe.

A `fold_stalled` or `surface_unserved` alert opens only when every sample of the 5 minute window shows the condition and the oldest of them is at least 4 minutes old, so a managed backend that has just started raises neither while it starts. Each resolves only on a zero reading from a managed backend process that has run for 5 minutes.

A `stream_purge_pending` or `backend_realization_pending` alert is raised and resolved only from samples of a managed backend process that has run for 5 minutes, so one restart neither resolves nor reopens it. A managed backend whose purge sweep has failed ever since it started reports zero, which resolves `stream_purge_pending`.

A `requests_refused` alert gives the number of requests refused in the monitoring window. A managed backend gives the requests in flight a quarter of its memory, and a request that finds no room within 5 seconds is refused with a retryable error, which the SDKs retry with backoff. Page large queries and scans with smaller limits, spread the load over more nodes, or choose a size with more memory.

A `database_reset` alert is critical, and its body starts with `Critical`. A managed backend that runs on its embedded store and finds that store corrupt deletes the database and its write-ahead log, keeps no copy, opens an empty database, and folds its state again from the log the node's streaming server holds, with no operator step. Keys written before the log's retention and untouched since are not on that node any more, and the node lists those ranges as gaps it started late. The alert resolves 30 minutes after the reset. An embedded store that syncs with Turso Cloud is deleted the same way only when the managed backend's control and mutation topics have no expiry, so the log can rebuild it. With an expiry on either, the managed backend keeps the corrupt store and does not start. A managed backend that writes to Postgres or VeloDB keeps that store's own behavior.

A `restart_loop` alert gives the number of restarts in the last 30 minutes. It resolves when those 30 minutes hold no restart and the current managed backend process has run for 5 minutes. Missing samples leave the alert open. A planned upgrade that restarts the managed backend once or twice does not raise it.

`dead_letters_growing` counts each rejected or skipped record once, when the managed backend queues it for the dead-letter topic: a control command the managed backend refuses, a record that a skip or the `dead_letter` policy of a binding drops from an index or graph, and a record an operator skips in a memory, session, key-value, fork, or graph fold. Fold reports on the same topic, such as a `fold_stalled` entry, are never counted, and neither is a record sent again after a failed delivery.

A `replication_condition` alert is raised per node and per gauge when the gauge stays above zero in every sample of the 5-minute window. Its subject names the condition, and its body starts with the severity, then names the node, the partition count, and the recovery step. `replication_condition_resolved` follows once the gauge is reported again and is zero in at least one sample of the window. A node that stops reporting the gauge keeps its alert open.

| Subject | Gauge | Severity | Effect |
| --- | --- | --- | --- |
| Partitions under-replicated | `partitions_under_replicated` | Warning | Writes still commit, but one more failure can stop them |
| Partitions below write quorum | `partitions_below_write_quorum` | Critical | Writes to these partitions fail |
| Partitions refusing sessions | `partitions_owing_retirement` | Critical | Sessions on these partitions are refused |

## Telemetry Retention

Metrics, heartbeats, and logs share a retention period. Managed deployments include these periods:

| Deployment | Included retention |
| --- | --- |
| Free | 7 days |
| Standard | 14 days |
| Performance | 30 days |
| Enterprise | 90 days |

New deployments use the tier's included period. The platform rejects requests above that allowance and does not charge for extra telemetry days.

For BYOC and deployments without managed tiers, the allowance follows Compute. Free and Small include 7 days, Medium and Large 30 days, and XLarge or larger 90 days.

Set `retention.telemetry_days` through the [deployment API](/api/deployments#update-retention). Audit, snapshot, and backup retention are separate. Reading telemetry requires `deployment:telemetry:read`. Changing retention requires `deployment:telemetry:manage`.

## API Reference

### Get Deployment Metrics

```bash
curl {supervisor_url}/deployments/{deployment_id}/metrics \
  -H "ld-api-key: YOUR_API_KEY"
```

### Get Node Metrics (by runtime)

```bash
curl "{supervisor_url}/deployments/{deployment_id}/nodes/{node_id}/metrics/iggy?page=1&results=10&from=2026-01-01T00:00:00Z&to=2026-02-01T00:00:00Z" \
  -H "ld-api-key: YOUR_API_KEY"
```

### Get Deployment Heartbeats

```bash
curl {supervisor_url}/deployments/{deployment_id}/heartbeats \
  -H "ld-api-key: YOUR_API_KEY"
```

### Get Node Heartbeats (by runtime)

```bash
curl "{supervisor_url}/deployments/{deployment_id}/nodes/{node_id}/heartbeats/iggy?page=1&results=10&from=2026-01-01T00:00:00Z&to=2026-02-01T00:00:00Z" \
  -H "ld-api-key: YOUR_API_KEY"
```

### Get Deployment Logs

```bash
curl "{supervisor_url}/deployments/{deployment_id}/logs/iggy?page=1&results=10&level=any&message=*&from=2026-01-01T00:00:00Z&to=2026-02-01T00:00:00Z" \
  -H "ld-api-key: YOUR_API_KEY"
```

- [Notifications](/observability/notifications)
- [Audit & Compliance](/observability/audit-compliance)
- [Warden Agent](/deployments/warden)

## AGDX activity coverage

[Deployment activity](/api/audit#deployment-activity) includes recorded managed-role and role-binding events and the changes to filters, filter bindings, projections, schemas, and forks that the managed backend records in its audit log. The same activity permissions apply, reads go back as far as the plan's audit retention allows, and activity is never deleted, not even by a metadata purge.

Recorded authorization events carry their actor and time when known. Entries from the managed backend's audit log carry the Iggy user whose request it applied and the time it applied the change. Authorization history is bounded, and recreating the ops stream or its audit topic loses the records the audit log held.

A gap entry reports known incomplete coverage. Activity contains resource identity and safe change details, without filter policies, projection definitions, schema bodies, credentials, or customer payloads.

Source: https://docs.laserdata.com/observability
