Skip to content

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.

RowPanels
FlowProducer and consumer rates against consumer capacity; which capacity estimator is in use; mismatch ratio
TiersBacklog bytes by tier; local storage pressure (bytes and inodes) against the soft, soft − hysteresis and hard limits
AgeOldest entry by tier against 50% and 80% of the channel's retention
ProjectionsCatch-up time; time to the hard limit
Delivery healthConnections in use against the adaptive limit; breaker state; consumer latency p50 and p99; delivery errors by path, class and reason
Refusals and terminal outcomes503 refusals by reason; DLQ backlog; aged off and quarantined files; quarantine bytes
HostVolume degraded; audit journal bytes and time to its limit; credential expiry; configuration hash; reload failures
S3Demotion margin; demoted and promoted bytes; S3 backlog; clock offset; S3 requests by operation and code; orphaned S3 bytes
Spill, DLQ and promotionSpilled 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 and hardLimitPct ÷ 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.

RuleSeverityFires whenForSOP
spillway-time-to-hardpageThe lowest instance's projected time to the hard limit is below 30 minutes2mApproaching the hard limit
spillway-demotion-marginpageThe lowest instance's demotion margin is negative10mApproaching the hard limit
spillway-aging-off-pagepageA channel's oldest entry is older than 80% of its retention5mFiles aging off
spillway-stalledpageA channel has files due on the local volume, a closed breaker, and no file accepted by its consumer in 15 minutes0mConsumer slow
spillway-volume-degradedpageThe local volume is degraded0mLocal volume degraded
spillway-quarantinepageA channel quarantined an entry in the last 5 minutes0mCorrupt entries
spillway-lostpageA channel lost an acknowledged file in the last 5 minutes0mLost files
spillway-audit-time-to-limitpageThe unshipped audit journal is projected to reach audit.maxLocalBytes within 2 hours2mS3 down
spillway-orphanedticketS3 holds data for a channel missing from the configuration0mOrphaned channel data
spillway-breaker-openticketA channel's breaker is open10mConsumer down for long
spillway-misconfiguredticketA channel's breaker is open and its consumer answered with a misconfiguration status in the last 10 minutes0mConsumer misconfigured
spillway-mismatchticketA channel's mismatch ratio is above 130mConsumer slow
spillway-promotion-blockedticketA channel whose breaker is closed has been unable to promote from S330mPromotion blocked
spillway-aging-off-ticketticketA channel's oldest entry is older than 50% of its retention5mFiles aging off
spillway-dlqticketA channel's DLQ is not empty0mPoison file
spillway-intermittentticketA channel's breaker changed state more than 6 times in the last hour0mConsumer intermittent
spillway-refusalsticketMore than 1% of the files DeltaFi sent got 503 over 5 minutes5mApproaching the hard limit
spillway-s3-errorsticketMore than 1% of S3 requests failed (5xx, 403 or no answer) over 5 minutes10mS3 down
spillway-clock-skewticketAn instance's clock is more than 5 s off from the object store's5mClock skew
spillway-reload-failedticketA configuration reload, or a channel's changed outbound credential files, was rejected in the last 15 minutes0mConfig drift
spillway-config-driftticketInstances report more than one configuration hash15mConfig drift
spillway-restart-requiredticketAn instance has held a restart-only setting at its running value for 10 minutes (spillway_restart_required is 1)10mConfig drift
spillway-metrics-stoppedticketAn instance that pushed metrics in the last day has pushed none for 5 minutes0mMetrics stopped
spillway-credential-expiryticketA certificate Spillway holds expires within 14 days0mCredential rotation
spillway-journal-backlogticketMore than 1 GiB of unshipped audit journal on an instance10mS3 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-stopped tickets 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, and spillway-intermittent sums every instance's breaker changes.
  • spillway-stalled counts 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 ​

CounterLabelsMeaning
spillway_produced_files_total, spillway_produced_bytes_totalchannel, sourceFiles accepted from DeltaFi
spillway_consumed_files_total, spillway_consumed_bytes_totalchannel, pathFiles the consumer accepted; path is passthrough or local
spillway_spilled_bytes_totalchannelBytes committed to the local tier
spillway_demoted_bytes_total, spillway_promoted_bytes_totalchannelBytes moved from local to S3, and back
spillway_delivery_errors_totalchannel, path, class, status, reasonFailed delivery and pass-through attempts; see Delivery error labels
spillway_rejected_totalchannel, reason503s returned to DeltaFi; see Refusal reasons
spillway_aged_off_totalchannelEntries aged off at retention
spillway_quarantined_totalchannelEntries quarantined for a failed checksum
spillway_lost_totalchannelAcknowledged entries Spillway no longer has: the file was missing at delivery
spillway_dlq_totalchannelEntries moved to the DLQ
spillway_s3_requests_totalop, codeObject store requests by operation; code is the HTTP status, or error when no response arrived
spillway_config_reload_failures_totalRejected configuration reloads, and changed outbound credential files that failed to load
spillway_consumer_latency_seconds (histogram)channelConsumer response latency: from the request body fully written to the first response byte

Gauges ​

GaugeLabelsMeaning
spillway_consumer_capacity_bytes_per_secondchannel, estimatorEstimated consumer capacity. estimator is saturated (measured while every allowed connection is busy) or littles (busy-connection throughput × the adaptive limit)
spillway_mismatch_ratiochannelProducer rate ÷ consumer capacity; absent while the channel is paused
spillway_catchup_secondschannelBacklog ÷ (capacity − producer rate); only while the channel has a backlog and is not paused; +Inf when it cannot drain
spillway_time_to_hard_secondsProjected time until the local volume reaches the hard limit, per instance; +Inf when not approaching
spillway_connections_in_use, spillway_connections_limitchannelDelivery slots busy; the adaptive limit
spillway_backlog_files, spillway_backlog_byteschannel, tierBacklog by tier: local, retry, dlq, s3. Bytes are allocated blocks
spillway_oldest_age_secondschannel, tierAge 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_secondschannelThe channel's retentionHours, in seconds
spillway_storage_pressure_ratioLocal usage (the larger of byte and inode use) plus reservations, ÷ capacity
spillway_storage_inodes_ratioUsed inodes ÷ total inodes on the local volume
spillway_storage_limit_ratiolimitThe 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_secondDemotion 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_secondWhat 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_secondWhat 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_statechannel0 closed, 1 open, 2 paused
spillway_promotion_blockedchannel1 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_degraded1 while the local volume is degraded
spillway_clock_offset_secondsInstance clock minus the object store's Date; absent until the store first answers
spillway_credential_expiry_secondsTime 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_bytesUnshipped audit journal on the local volume
spillway_audit_journal_time_to_limit_secondsProjected time until the unshipped journal reaches audit.maxLocalBytes; +Inf when not growing
spillway_orphaned_byteschannelS3 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_bytesBytes in the local quarantine/ directory. Files removed by hand stay counted until restart
spillway_config_hash_infohashConstant 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_infohashConstant 1, labelled with the loaded configuration file's hash
spillway_restart_required1 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.

Reason503 bodyMeaningWhere to look
hard_limitspillway: hard limitStoring the file would take local usage past hardLimitPctApproaching the hard limit
fair_sharespillway: fair shareUsage 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 restartApproaching the hard limit
stream_capspillway: stream capThe channel's maxStreams requests are all in progressRaise maxStreams (see Sizing)
degradedspillway: degradedThe local volume is degraded, so nothing can be storedLocal volume degraded
enospcspillway: enospcThe volume refused space or inodes when the file was writtenApproaching the hard limit
fd_limitspillway: fd limitSpillway ran out of file descriptorsOpen-file budget
pass_through_failedspillway: pass-through failedA large file's pass-through failed; DeltaFi's resend spills itConsumer slow
shutdownspillway: shutdownSpillway is stoppingExpected during a restart
removingspillway: removingA reload is removing the channelConfiguration
stalled_senderspillway: stalled senderThe sender sent nothing for 60 s while its file was being stored or passed throughDeltaFi's side of the connection
audit_backlogspillway: audit backlogThe unshipped audit journal is above audit.maxLocalBytes; pass-through continuesS3 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:

LabelValues
pathpassthrough, local
classconsumer (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)
statusThe consumer's HTTP status, or 0 when there was none
reasonstatus (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)

Contact US