Spillway Monitoring
Experimental Alpha
Spillway is an experimental alpha. Its configuration, behavior and storage formats may change in future releases.
Spillway pushes its metrics every 15 s to VictoriaMetrics at metrics.pushUrl; inside DeltaFi that is DeltaFi's own VictoriaMetrics. Every metric is prefixed spillway_ and carries an instance label. Spillway computes its projections from its own counters in 5-second windows, keeping 1-minute and 15-minute averages and publishing the more pessimistic of the two. Plain rates come from rate() over the counters.
Dashboard
The Spillway dashboard is in DeltaFi's Grafana, in the DeltaFi folder; in the standalone stack it is in its own Grafana's Spillway folder. Its instance and channel variables filter every panel.
| Row | Panels |
|---|---|
| Flow | Producer and consumer rates against consumer capacity; which capacity estimator is in use; mismatch ratio |
| Tiers | Backlog bytes by tier; local storage pressure (bytes and inodes) against the soft, soft − hysteresis and hard limits |
| Age | Oldest entry by tier against 50% and 80% of the channel's retention |
| Projections | Catch-up time; time to the hard limit |
| Delivery health | Connections in use against the adaptive limit; breaker state; consumer latency p50 and p99; delivery errors by path, class and reason |
| Refusals and terminal outcomes | 503 refusals by reason; DLQ backlog; aged off and quarantined files; quarantine bytes |
| Host | Volume degraded; audit journal bytes and time to its limit; credential expiry; configuration hash; reload failures |
| S3 | Demotion margin; demoted and promoted bytes; S3 backlog; clock offset; S3 requests by operation and code; orphaned S3 bytes |
| Spill, DLQ and promotion | Spilled bytes per second; DLQ entries; whether each channel's promotion is blocked |
Reading it:
- The storage limit lines come from
spillway_storage_limit_ratio, the running configuration's limits as fractions:softLimitPct÷ 100, (softLimitPct−hysteresisPct) ÷ 100 andhardLimitPct÷ 100. A reload shows within a second. - Panels cap infinite values so they plot: times at 7 days, the mismatch ratio at 10.
- Projections are absent until Spillway knows them. A paused channel shows no mismatch or catch-up, since a pause is not a consumer failure, and catch-up is shown only while the channel has a backlog.
Alerts
Spillway's alert rules are Grafana unified alerting rules in the Spillway alert folder, evaluated every minute over DeltaFi's VictoriaMetrics, or the standalone stack's own. Each is labelled severity page or ticket, and its runbook_url opens its SOP in DeltaFi's embedded docs, /docs/spillway/sops.html#<section>. DeltaFi's Grafana has no contact point by default, so a page or ticket alert goes nowhere until you configure one. Add a contact point and a notification policy that routes severity=page and severity=ticket to it, in the Grafana UI (Alerting, Contact points and Notification policies) or with a provisioning file placed in the alerting provisioning directory the rules are mounted from (/etc/grafana/provisioning/alerting, from orchestration/compose/settings/grafana/alerting in DeltaFi's Compose stack). The standalone stack's Grafana has none either: its grafana/alerting directory is mounted at the same path, but make standalone-rules overwrites spillway.yaml there on every bring-up, so add a separate file for contact points.
| Rule | Severity | Fires when | For | SOP |
|---|---|---|---|---|
spillway-time-to-hard | page | The lowest instance's projected time to the hard limit is below 30 minutes | 2m | Approaching the hard limit |
spillway-demotion-margin | page | The lowest instance's demotion margin is negative | 10m | Approaching the hard limit |
spillway-aging-off-page | page | A channel's oldest entry is older than 80% of its retention | 5m | Files aging off |
spillway-stalled | page | A channel has files due on the local volume, a closed breaker, and no file accepted by its consumer in 15 minutes | 0m | Consumer slow |
spillway-volume-degraded | page | The local volume is degraded | 0m | Local volume degraded |
spillway-quarantine | page | A channel quarantined an entry in the last 5 minutes | 0m | Corrupt entries |
spillway-lost | page | A channel lost an acknowledged file in the last 5 minutes | 0m | Lost files |
spillway-audit-time-to-limit | page | The unshipped audit journal is projected to reach audit.maxLocalBytes within 2 hours | 2m | S3 down |
spillway-orphaned | ticket | S3 holds data for a channel missing from the configuration | 0m | Orphaned channel data |
spillway-breaker-open | ticket | A channel's breaker is open | 10m | Consumer down for long |
spillway-misconfigured | ticket | A channel's breaker is open and its consumer answered with a misconfiguration status in the last 10 minutes | 0m | Consumer misconfigured |
spillway-mismatch | ticket | A channel's mismatch ratio is above 1 | 30m | Consumer slow |
spillway-promotion-blocked | ticket | A channel whose breaker is closed has been unable to promote from S3 | 30m | Promotion blocked |
spillway-aging-off-ticket | ticket | A channel's oldest entry is older than 50% of its retention | 5m | Files aging off |
spillway-dlq | ticket | A channel's DLQ is not empty | 0m | Poison file |
spillway-intermittent | ticket | A channel's breaker changed state more than 6 times in the last hour | 0m | Consumer intermittent |
spillway-refusals | ticket | More than 1% of the files DeltaFi sent got 503 over 5 minutes | 5m | Approaching the hard limit |
spillway-s3-errors | ticket | More than 1% of S3 requests failed (5xx, 403 or no answer) over 5 minutes | 10m | S3 down |
spillway-clock-skew | ticket | An instance's clock is more than 5 s off from the object store's | 5m | Clock skew |
spillway-reload-failed | ticket | A configuration reload, or a channel's changed outbound credential files, was rejected in the last 15 minutes | 0m | Config drift |
spillway-config-drift | ticket | Instances report more than one configuration hash | 15m | Config drift |
spillway-restart-required | ticket | An instance has held a restart-only setting at its running value for 10 minutes (spillway_restart_required is 1) | 10m | Config drift |
spillway-metrics-stopped | ticket | An instance that pushed metrics in the last day has pushed none for 5 minutes | 0m | Metrics stopped |
spillway-credential-expiry | ticket | A certificate Spillway holds expires within 14 days | 0m | Credential rotation |
spillway-journal-backlog | ticket | More than 1 GiB of unshipped audit journal on an instance | 10m | S3 down |
The alerts for a lost instance's unadopted S3 backlog and for a duplicate instance identity need V1's fleet metrics and are not shipped; their SOPs, Instance lost and Duplicate identity, are kept for V1.
Rules to keep in mind:
- A missing Spillway is silent; a Spillway that stops pushing tickets. Every other rule returns nothing while its metrics are absent, so no rule fires while Spillway is disabled or before its metrics first appear.
spillway-metrics-stoppedtickets for an instance whose metrics stop arriving, for up to a day after its last push, including when Spillway is disabled or an instance retired on purpose; silence it then. - Per-channel rules aggregate across instances, which is exact for this release's single instance. With several instances serving a channel, a peer's open breaker hides a stalled instance from
spillway-stalled, andspillway-intermittentsums every instance's breaker changes. spillway-stalledcounts only the local tier, whose files are all due. Retries waiting on their not-before, and a backlog held only in S3 while S3 is down, never page it, since the consumer may be fine.- The runbook links are paths in DeltaFi's embedded docs. They open from DeltaFi's Grafana. The standalone stack's Grafana runs a rendered copy of the same rules whose links open the public docs,
https://docs.deltafi.org/spillway/sops.html#<section>. - Counters can undercount across a crash. Spillway keeps its counters in memory and pushes them every 15 s, with a last push on a clean shutdown. A hard kill (SIGKILL, an out-of-memory kill, power loss) loses up to 15 s of increments, and the counters start again from 0, so totals over a window that spans the crash, such as 503 refusals by reason, can read low.
- The section titles of the SOP page are the anchors the rules link to; they never change without the rules changing with them.
Metric Reference
Counters
| Counter | Labels | Meaning |
|---|---|---|
spillway_produced_files_total, spillway_produced_bytes_total | channel, source | Files accepted from DeltaFi |
spillway_consumed_files_total, spillway_consumed_bytes_total | channel, path | Files the consumer accepted; path is passthrough or local |
spillway_spilled_bytes_total | channel | Bytes committed to the local tier |
spillway_demoted_bytes_total, spillway_promoted_bytes_total | channel | Bytes moved from local to S3, and back |
spillway_delivery_errors_total | channel, path, class, status, reason | Failed delivery and pass-through attempts; see Delivery error labels |
spillway_rejected_total | channel, reason | 503s returned to DeltaFi; see Refusal reasons |
spillway_aged_off_total | channel | Entries aged off at retention |
spillway_quarantined_total | channel | Entries quarantined for a failed checksum |
spillway_lost_total | channel | Acknowledged entries Spillway no longer has: the file was missing at delivery |
spillway_dlq_total | channel | Entries moved to the DLQ |
spillway_s3_requests_total | op, code | Object store requests by operation; code is the HTTP status, or error when no response arrived |
spillway_config_reload_failures_total | Rejected configuration reloads, and changed outbound credential files that failed to load | |
spillway_consumer_latency_seconds (histogram) | channel | Consumer response latency: from the request body fully written to the first response byte |
Gauges
| Gauge | Labels | Meaning |
|---|---|---|
spillway_consumer_capacity_bytes_per_second | channel, estimator | Estimated consumer capacity. estimator is saturated (measured while every allowed connection is busy) or littles (busy-connection throughput × the adaptive limit) |
spillway_mismatch_ratio | channel | Producer rate ÷ consumer capacity; absent while the channel is paused |
spillway_catchup_seconds | channel | Backlog ÷ (capacity − producer rate); only while the channel has a backlog and is not paused; +Inf when it cannot drain |
spillway_time_to_hard_seconds | Projected time until the local volume reaches the hard limit, per instance; +Inf when not approaching | |
spillway_connections_in_use, spillway_connections_limit | channel | Delivery slots busy; the adaptive limit |
spillway_backlog_files, spillway_backlog_bytes | channel, tier | Backlog by tier: local, retry, dlq, s3. Bytes are allocated blocks |
spillway_oldest_age_seconds | channel, tier | Age of the oldest undelivered entry: local, retry, s3, and all, the oldest of the three. Each is 0 when its tier is empty. The DLQ is not included |
spillway_channel_retention_seconds | channel | The channel's retentionHours, in seconds |
spillway_storage_pressure_ratio | Local usage (the larger of byte and inode use) plus reservations, ÷ capacity | |
spillway_storage_inodes_ratio | Used inodes ÷ total inodes on the local volume | |
spillway_storage_limit_ratio | limit | The running configuration's local limits as fractions of capacity: soft is softLimitPct ÷ 100, low (softLimitPct − hysteresisPct) ÷ 100 and hard hardLimitPct ÷ 100. Refreshed every second, so a reload shows within a second |
spillway_demotion_margin_bytes_per_second | Demotion throughput minus net local inflow, the more pessimistic of the 1- and 15-minute averages; absent until the first upload | |
spillway_promote_stream_bytes_per_second | What one promote stream carries: each promoted segment's bytes ÷ the time to fetch and commit it, averaged with longer transfers counting for more; absent until the first promotion. A channel runs as many promote streams as its spare consumer capacity divided by this, rounded up (see Promotion Throughput) | |
spillway_upload_slot_bytes_per_second | What one upload slot carries, measured the same way over each segment upload; absent until the first upload. At or above the soft limit, demotion keeps as many slots from promotion as the net local inflow divided by this, rounded up, and at least 1 | |
spillway_breaker_state | channel | 0 closed, 1 open, 2 paused |
spillway_promotion_blocked | channel | 1 while the mover's last pass found the channel unable to promote from S3, the promotionBlocked of GET /admin/channels/{id}; else 0. A channel that is the only one holding data is still blocked once usage is at or above soft − hysteresis. It reads 0 for a channel the mover does not try to promote: one with nothing in S3; one not delivering (its breaker not closed, or paused), except one with an open breaker owed a probe, which holds an S3 backlog and no local or retry entry to probe with; one being force-demoted; one whose backlog Spillway has not yet counted, as just after a restart; and one whose S3 backlog waits behind older local data, so delivery stays oldest first. |
spillway_volume_degraded | 1 while the local volume is degraded | |
spillway_clock_offset_seconds | Instance clock minus the object store's Date; absent until the store first answers | |
spillway_credential_expiry_seconds | Time until the soonest expiry among the certificates Spillway holds: each channel's outbound client certificate and CA as last loaded and, in mtls mode, the inbound certificate and client CA as loaded at start. Negative once one has expired; absent when no certificate is loaded | |
spillway_audit_journal_bytes | Unshipped audit journal on the local volume | |
spillway_audit_journal_time_to_limit_seconds | Projected time until the unshipped journal reaches audit.maxLocalBytes; +Inf when not growing | |
spillway_orphaned_bytes | channel | S3 bytes under this instance's prefix of a channel missing from the configuration; measured once the object store is reachable after startup, then by the hourly sweep |
spillway_quarantine_bytes | Bytes in the local quarantine/ directory. Files removed by hand stay counted until restart | |
spillway_config_hash_info | hash | Constant 1, labelled with the hash of the configuration the instance runs: the loaded file, with any restart-only setting it changed still at its running value. Instances running the same settings report the same hash |
spillway_config_file_hash_info | hash | Constant 1, labelled with the loaded configuration file's hash |
spillway_restart_required | 1 while a restart-only setting in the loaded file differs from its running value, so the instance waits for a restart to apply it; otherwise 0 |
Refusal Reasons
The reason label of spillway_rejected_total names why a 503 was returned. The 503 body, spillway: <message>, carries the same reason in words.
| Reason | 503 body | Meaning | Where to look |
|---|---|---|---|
hard_limit | spillway: hard limit | Storing the file would take local usage past hardLimitPct | Approaching the hard limit |
fair_share | spillway: fair share | Usage is between hardLimitPct − hysteresisPct and hardLimitPct, another channel holds files on the volume, and storing the file would take the channel past its fair share of the volume, or the channel's backlog is not yet counted, as just after a restart | Approaching the hard limit |
stream_cap | spillway: stream cap | The channel's maxStreams requests are all in progress | Raise maxStreams (see Sizing) |
degraded | spillway: degraded | The local volume is degraded, so nothing can be stored | Local volume degraded |
enospc | spillway: enospc | The volume refused space or inodes when the file was written | Approaching the hard limit |
fd_limit | spillway: fd limit | Spillway ran out of file descriptors | Open-file budget |
pass_through_failed | spillway: pass-through failed | A large file's pass-through failed; DeltaFi's resend spills it | Consumer slow |
shutdown | spillway: shutdown | Spillway is stopping | Expected during a restart |
removing | spillway: removing | A reload is removing the channel | Configuration |
stalled_sender | spillway: stalled sender | The sender sent nothing for 60 s while its file was being stored or passed through | DeltaFi's side of the connection |
audit_backlog | spillway: audit backlog | The unshipped audit journal is above audit.maxLocalBytes; pass-through continues | S3 down |
During a long S3 outage audit_backlog refusals can come and go: gzipping each closed journal file lowers the unshipped size below the limit for a while. Requests refused with 431 for oversized headers are not counted here.
Delivery Error Labels
spillway_delivery_errors_total labels each failed attempt:
| Label | Values |
|---|---|
path | passthrough, local |
class | consumer (counts toward the breaker), file (spends one of the file's attempts), misconfig (a breakerStatuses status or a 3xx; opens the breaker), poison (a passThroughStatuses status from the backlog; straight to the DLQ), corrupt (the stored file failed its checksum; quarantined), aborted (Spillway could not make the attempt, or DeltaFi went away during a pass-through) |
status | The consumer's HTTP status, or 0 when there was none |
reason | status (the consumer answered), connect, idle (a read or write timed out), mid-stream (the connection failed after payload was sent), budget (no answer within responseBudget), inbound-abort (DeltaFi disconnected during a pass-through), local-read (reading the stored file failed; never blamed on the consumer) |

