Monitoring¶
Scrape every process and monitor FoundationDB too. fdyno exports Prometheus, JSON metrics and structured logs.
Signals to watch¶
| Signal | Metric | Look for |
|---|---|---|
| Readiness | /readyz |
Fleet-wide 503: none ready. The body identifies drain or backend failure. |
| Errors | fdyno_, fdyno_ |
A rise against fdyno_. class= per action is the 5xx share. |
| Latency | fdyno_ |
p99 per action. |
| Unknown outcomes | fdyno_ |
Any rise. Clients must reconcile those writes. |
| Conflicts | fdyno_ |
A high share of fdyno_: a hot item or range. |
| Saturation | fdyno_, fdyno_, fdyno_ |
Average in-flight requests near fdyno_; any rejection: the process is at its limit. |
| FoundationDB pushback | fdyno_, {code= |
Sustained tag or batch throttles. |
| Contention | fdyno_ |
Writes to one item faster than it can commit. |
| Index integrity | fdyno_ |
Any non-zero value. It is a bug. |
| Worker backlog | fdyno_, fdyno_ |
An age that grows across passes. |
| PITR trim falling behind | fdyno_ |
Overdue age grows across fresh lease-held passes while reported work stays near the pass threshold. |
| Worker ownership | fdyno_ |
Each process reports its last tick's observation. Check the age of the last lease-held tick before diagnosing takeover. |
| Worker priority | fdyno_ |
1 for long: batch priority is starved. |
| Restores | fdyno_ |
Any rise. |
| Credentials and TLS | fdyno_, fdyno_ |
Any rise. The old keys or certificate stay in use. |
The complete metric reference is below.
Compare signals at the same layer¶
| Layer | Counted there |
|---|---|
| HTTP request | The final response. fdyno_ also counts refusals before dispatch. |
| API action accounting | fdyno_ counts handled requests and some refusals before dispatch; not every HTTP request. |
| FoundationDB attempts, including retries | Errors and conflicts. Divide the conflict rate by the attempt rate. |
- Wire failures versus action failures.
fdyno_errors_totalincludes refusals before dispatch.fdyno_requests_totalcounts handled requests and only some refusals before dispatch: an unsupported target prefix (as actionUnknown), an action-policy refusal and a credential throttle. Earlier refusals, such as a missingX-Amz-Target, are not counted, so dividing those two totals does not give a wire error rate. For a dispatched action's server-error share, compare itsclass="server"error rate with its histogram count rate. Use the load balancer's request and response totals for the whole wire population. Client disconnects have a separate counter. An HTTP success can still containUnprocessedItems. - Attempts versus outcomes. Divide the FoundationDB conflict rate by the attempt rate, not by the API request rate. An attempt can conflict and retry without a client error. An unknown commit attempt is not necessarily an unknown API outcome: fdyno retries a tokened transaction. Use the request and split-batch ambiguity counters for reconciliation; do not add them as if they counted disjoint requests.
- Latency versus load. For fleet p99, compute rates per process, sum
histogram buckets by
actionandlewithin one fleet, then compute the quantile. Do not average per-process p99 values. Check the matching request volume before acting on a percentile from sparse traffic.
The emitted metrics tests, split-batch ambiguity tests, and Prometheus rules show these boundaries and the aggregation used by the bundled alerts.
Set up scraping¶
Scrape /metrics/prometheus on every process's operations listener
(DYNODB_OPS_ADDR), as job fdyno (or change FdynoTargetDown). When an
operations listener is set, the data port returns 404 for metrics. If you
scraped the data port, move the target to the operations listener. Keep the
instance and job labels: the backlog alerts join on them. The repository
has:
- 30 Prometheus alert rules with a runbook for each alert.
- Two Grafana dashboards: an on-call overview that starts with a row of health stats, and workers.
Alerts¶
The thresholds are starting points; tune them to your workload. Three depend on how you run fdyno:
FdynoCDCTrimBacklogfires at 93,600 seconds: 24-hour stream retention plus margin. Change it withDYNODB_CDC_RETENTION.FdynoWorkerStalledfires after 30 minutes. Keep it above your longest worker interval.
| Alert | Severity, for | Fires when | First check |
|---|---|---|---|
Fdyno |
page, 2m | up{job=: Prometheus cannot scrape the instance. |
Is the process running? Read the last log lines for starting dynodb, a panic or a production-profile startup error. Run curl -s http:// from the Prometheus host. |
Fdyno |
page, 5m | On one instance, transaction deadlines plus FoundationDB errors 1031 (transaction_), 1037 (process_) and 1038 (database_) exceed 1 per second. |
fdbcli --exec 'status': availability, the ratekeeper limit, storage free space, a database is locked message. One instance alerting points at its network path or cluster file; all point at the cluster. |
Fdyno |
page, 0m | In 10 minutes, an instance returned a write result, or a Batch chunk, whose commit outcome is unknown. |
request failed WARN lines with "ambiguous":true give request_, action, table and usually fdb_. Tell the owners of those tables: clients reconcile before they retry. |
Fdyno |
page, 0m | In 15 minutes, the sampled index check found an index entry that disagrees with its base item (kind: missing_, wrong_key or value_). |
The index/ WARN line names the table, index and kind. Run dynodb verify table <table> --index --cluster-file <path> (read-only; exit 2 on divergence). |
Fdyno |
ticket, 15m | Over 5 minutes, an instance's rate of 1020 (not_) errors divided by its attempt rate, with the attempt rate counted as at least 1 per second, is above 0.2. So 0.1 conflicts per second out of 0.2 attempts per second does not fire. |
JSON /metrics tables. and tables. show the hot tables. |
Fdyno |
ticket, 10m | An instance rejects more than 1 request per second with 400 Throttling at DYNODB_ or because the request body budget is spent. |
requests_ against max_ in JSON /metrics, and fdyno_ against fdyno_. |
Fdyno |
ticket, 5m | In 5 minutes, a listener closed new connections at its connection cap; the listener label names the data or operations listener. |
fdyno_ against fdyno_ for the same listener. |
Fdyno |
ticket, 15m | Fleet p99 of one action is above 2 s, with more than 0.1 requests per second for that action. | Set DYNODB_ (for example 1000) on one instance and read slow_: high grv_ or commit_ points at FoundationDB, retry_ with conflicts at contention, hotkey_ at a hot key, read_ at large reads. |
Fdyno |
ticket, 15m | More than 0.5 requests per second of one action take longer than 1 s (from the latency histogram). | As for Fdyno. Match a request_ from slow_ (the last 64 slow requests) with your client logs. |
Fdyno |
ticket, 30m | Fleet-wide per worker name, for ttl-sweeper, cdc-trimmer, txn-token-gc or index-backfill: no instance holds the lease, or the newest lease-held tick is more than 30 minutes old. |
workers. in JSON /metrics on each instance: lease_, last_, failures. |
Fdyno |
ticket, 15m | Across scraped instances, the total reported failures for one worker name exceeds 2 over the last 15 minutes. | The worker failure WARN lines carry the error. |
Fdyno |
ticket, 30m | On the ttl-sweeper lease holder, the oldest item due for deletion has waited more than 1 h. Expired items are hidden from reads but stay stored until deleted (TTL). |
On the holder: ttl_, ttl_, ttl_, ttl_, ttl_. |
Fdyno |
ticket, 15m | The ttl-sweeper holder's last complete backlog measurement is more than 1 h old, or 0 (never). |
On the holder: ttl_, ttl_, ttl_, and worker failure lines for ttl-sweeper. |
Fdyno |
ticket, 30m | On the cdc-trimmer lease holder, the oldest stream record is more than 93,600 s (26 h) old. |
On the holder: cdc_ with cdc_, cdc_, cdc_, workers.. |
Fdyno |
ticket, 15m | The cdc-trimmer holder's last complete measurement of the oldest record is more than 1 h old, or 0 (never). |
On the holder: cdc_, cdc_, cdc_, and worker failure lines for cdc-trimmer. |
Fdyno |
ticket, 30m | Backfill jobs are running, but no backfill page completed in 30 minutes. New indexes stay CREATING. It measures pages across all jobs (max(fdyno_), so one stuck job is masked while another job completes pages. Fdyno covers that case. |
JSON /metrics: index_, index_, index_, workers.. |
Fdyno |
ticket, 5m | One backfill job has failed every attempt, with no page known to be committed, for 30 minutes (fdyno_ above 1800 on the index-backfill lease holder), also while other jobs progress. |
The WARN GSI backfill job attempt failed with no page known to be committed names the table ID, index and error. |
Fdyno |
page, 2m | The oldest unapplied GSI change of some table is more than 30 s old (fdyno_; fdyno_ names the table). Writes that change its GSIs are throttled after 5 s. |
The WARN GSI apply failed names the table, shard and error; fdyno_ shows whether records are still applied. |
Fdyno |
ticket, 0m | fdyno_ rose in the last hour: a restore job was marked FAILED. |
worker failure WARN lines for restore-recovery, and the server logs around the failure. |
Fdyno |
ticket, 5m | A reload of DYNODB_ failed in 15 minutes. The instance keeps the previous key set. |
The credentials reload failed; keeping the previous key set log line names the error. |
Fdyno |
info, 1h | Prometheus sees more than one build (version, commit in fdyno_) among the scraped instances. |
count by (version,, and your deployment tool. |
Fdyno |
ticket, 1h | A cleanup worker runs at FoundationDB default priority (fdyno_ is 1). |
The maintenance priority escalated to default warning names the worker. Check fdyno_. |
Fdyno |
ticket, 15m | Fleet-wide, over 5 minutes, more than 1 per second of 1213 (tag_) or, counted separately, of 1051 (batch_). |
fdbcli --exec "throttle list", fdbcli --exec "quota get <tag> total_, and the Performance limited by line of fdbcli --exec status. |
Fdyno |
ticket, 10m | Averaged over 5 minutes, an instance uses more than 90% of its in-flight request limit or of its request body budget; each share counts only when its configured limit is above 0. | Latency per action (slow requests stay in flight longer), slow large uploads for the body budget, and traffic balance across instances. |
Fdyno |
page, 10m | Fleet-wide, over 5 minutes, more than 5% of one action's requests end with a 5xx status, and that action has more than 0.1 5xx responses per second. | request failed log lines for the action: error_, message, fdb_, ambiguous. A corrupt, malformed tuple or non-canonical CDC record message: run dynodb verify table <name> and keep the report. Admission rejections (400 Throttling) are not counted in this alert; see Fdyno. |
Fdyno |
ticket, 1h | On a lease holder, the slope of the TTL or CDC trim backlog age over the trailing hour is above 0.5 s per second, and stays so for 1 h. | fdyno_, fdyno_, the tick-budget-exhausted counters, and FoundationDB throttles. |
Each alert name links to its runbook section, which adds safe actions and
what not to do. for is how long the whole expression must stay true
before the alert fires. It is separate from the lookback window inside the
expression, such as [5m]. Severity, from the rules file: page = act now;
ticket = act within the working day; info = awareness only.
To test the rules, run promtool test rules fdyno-alerts.test.yml in
deploy/prometheus.
Logs¶
The fdyno server writes JSON lines to stderr.
Logs never contain item values, authorization headers or secrets.
Under systemd, when stderr goes to the journal, each line starts with its syslog priority (<3> for ERROR, <4> for WARN, <6> for INFO, <7> for DEBUG). The journal stores the line at that priority, so journalctl -p warning shows warnings and errors.
Before it exits on an error, the server logs one ERROR record with the cause. This covers a refused configuration, an unreachable FoundationDB at startup and a panic. Go's own panic report follows the record as plain text, at the unit's default priority.
| Record | Level | When |
|---|---|---|
access |
INFO | Every request, with DYNODB_ set. |
request failed |
WARN | Every 5xx and every unknown-outcome response. |
request client closed |
INFO | The client closed the connection during the request. Logged with status 499. |
slow request |
WARN | A request over DYNODB_. |
worker failure |
WARN | A background worker error. |
Each request record has request_id, equal to the response's
x-amzn-RequestId header. ambiguous=true marks an unknown commit outcome;
fdb_error_code gives the FoundationDB error, such as 1021 or 1031.
A request that names one table logs table; a request that names more logs
tables, the number of distinct tables, which saturates at 100.
{"level":"WARN","msg":"request failed","request_id":"0c4a6e7c4a04c1032358d9df0067ea0b","action":"BatchWriteItem","tables":2,"status":500,"error_type":"InternalServerError","message":"The write may or may not have been applied. Read the item before you retry, or retry with a condition expression. TransactWriteItems with a ClientRequestToken is safe to retry.","ambiguous":true,"fdb_error_code":1031}
Warning records share a budget of 100 lines per second per process.
fdyno_log_lines_suppressed_total counts dropped lines.
Slow requests¶
With DYNODB_SLOW_REQUEST_MS set, a request over the threshold logs a
slow request record with its phase timings. JSON /metrics keeps the last
64 such requests under slow_requests.
| Field | Time spent |
|---|---|
grv_ |
Waiting for a FoundationDB read version, on a retry or a regular-path attempt. |
read_ |
Reads, plus fdyno's decoding and expression work. A first attempt on the C API path gets its read version inside its first read, so that wait is here. |
commit_ |
Waiting for the commit. |
retry_ |
Backoff between FoundationDB retries. |
hotkey_ |
Queued behind writes to the same item. |
Records also show attempts and conflicts. Requests take the same path with
the threshold on as with it off, except GetItem, which takes the regular path. The timing costs a little CPU, so turn it on
only to investigate.
Per-table hot spots¶
JSON /metrics tables holds the approximate top 20 tables of the last 60 s
by requests, bytes, errors and same-item waits. A multi-table request counts
for each table, so do not add values. Prometheus has no table labels.
FoundationDB¶
Set DYNODB_FDB_STATUS_INTERVAL (for example 15s) on two or three
processes, not all, as each read loads the cluster controller. They export
the cluster health gauges of the
overview dashboard's FoundationDB row.
Also use FoundationDB's own tools: fdbcli --exec "status", status json and
the trace logs. Watch storage and log queues, disk space, fault tolerance and
ratekeeper limits. The
FoundationDB administration guide
covers them.
Metric reference¶
The operations listener serves GET /metrics/prometheus (Prometheus text) and
GET /metrics (the same values in JSON, plus JSON-only views). Most counters
reset on restart. Take rate() or increase() by process before summing
counts of the same events across processes. Do not sum worker ages, per-process
limits or copies of cluster gauges as if they were event counts. The durable
cluster cleanup total below is exposed through per-process cached views and
must not be summed.
JSON names omit fdyno_ unless noted; worker metrics use
workers.<worker>. Labels never contain item keys, table names or tokens.
The signals and alerts above identify the operational checks.
Native mutation counters¶
| JSON endpoint or path | Enable at startup | Coverage and units |
|---|---|---|
GET / |
DYNODB_ (default off). |
Counts submitted mutation arguments for native single and transaction writes. Uncovered attempts do not imply zero mutations. Argument bytes are not storage bytes. |
Set DYNODB_MUTATION_COUNTERS=1 at startup to expose
GET /fdb/mutation-counters on the private operations listener. The JSON
snapshot counts native single and transaction write attempts. The flag is
off by default and fixed at process start. The snapshot uses schema version 2 and
coverage version 3. It has no path for the extra write record of builds before
cdb6320c, and no layout or receipt_shard field.
Go runner attempts, worker leases, direct directory and offline writes remain uncovered. Do not treat gaps as zero.
issued counts mutation calls and their argument bytes before the FDB
client combines them, for submitted commit attempts only. Empty pages and
mutations discarded before commit submission do not add rows.
ended_attempt groups the same arguments by known
commit success, known no effect or unknown outcome. Do not add the two
families.
For a range clear, bytes are the two key bounds, not the data erased. These
counts are not wire bytes, storage input or net growth.
Compare integer deltas only within one process epoch, version and coverage. Reject disabled, invalid, truncated or overflowed snapshots and changes in writer identity.
Requests¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
counter | Handled API requests, plus refusals of an unsupported target, by action policy or by a credential throttle. Not every HTTP request. |
fdyno_ |
counter | Responses with status ≥ 400, not failed operations. |
fdyno_ |
counter | Status 400 or higher per action; class client (4xx) or server (5xx). It counts the same refusals before dispatch as fdyno_: an unsupported target (as Unknown) and a refusal by action policy or by a credential throttle. Earlier refusals, such as a missing X-Amz-Target, count only in fdyno_. JSON: actions. and server_. |
fdyno_ |
histogram | Handler latency per action; buckets 1 ms to 10 s and +Inf; unknown actions: Unknown. |
fdyno_ |
counter | Request body bytes as received, possibly compressed. JSON: actions.. |
fdyno_ |
counter | Response body bytes before compression. JSON: actions.. |
fdyno_ |
gauge | Requests running now, probes included. |
fdyno_ |
counter | Client-closed requests, logged as 499, excluded from errors_. |
fdyno_ |
gauge | Seconds since the process started. |
fdyno_ |
gauge | Always 1. Identifies the binary. Prometheus only. |
Admission and connections¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
gauge | The DYNODB_ limit; 0 means none. |
fdyno_ |
counter | Requests refused with 400 Throttling by DYNODB_ or by the request body budget. |
fdyno_ |
gauge | Requests counted against DYNODB_, taken after signature verification. |
fdyno_ |
counter | Total time that requests were counted against DYNODB_. Its rate over fdyno_ is the average share in use. |
fdyno_ |
gauge | Request body bytes buffered now, before the signature is verified. |
fdyno_ |
gauge | DYNODB_ × 16 MiB; 0 means none. A request past it gets 400 Throttling. |
fdyno_ |
counter | Provisioned refusals: credential (per-key rate limit) or contention (same-item write out of time). |
fdyno_ |
gauge | state=: open now; state=: reset at accept since start. Listener data or ops. JSON: http_. |
fdyno_ |
gauge | The connection cap; 0 means none. JSON: under http_. |
Transactions¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
counter | FoundationDB transaction attempts, retries included. |
fdyno_ |
counter | Attempts that failed with conflict 1020. It includes a first PutItem, Update or Delete attempt that started at a recent read version and found the item or the table changed since (read modes); the retry starts at a new read version. |
fdyno_ |
counter | Counts only raw FoundationDB commit_ (1021) errors. cluster_ (1039) after commit submission also leaves that attempt's outcome unknown but does not increment this counter. |
fdyno_ |
counter | FoundationDB errors per code from a fixed list, else other. Throttles are {code=, code 1051, and code 1223 (proxy_, a tag quota delay that ran out). JSON: transaction_. |
fdyno_ |
counter | Requests that reached the operation deadline. |
fdyno_ |
counter | Transactions cancelled, for example by a client disconnect. |
fdyno_ |
counter | Requests that ended with an unknown commit outcome. See reliable writes. |
fdyno_ |
counter | Background transactions (workers, batch priority) with unknown outcomes; no client reconciles them, so workers re-check next pass. |
fdyno_ |
counter | Split Batch requests stopped by an unknown chunk outcome. JSON: batch_. |
fdyno_ |
counter | Transact attempts answered from a Client record. |
fdyno_ |
counter | Token reuse with different parameters. |
fdyno_ |
counter | Item and index rows read from FoundationDB, filtered and retried rows included. |
fdyno_ |
counter | Estimated bytes of committed write transactions, sampled from 1 commit in 64. kind is index_ (the GSI change-log consumer), backfill (index backfill pages) or api (every other transaction: API writes and background base-table work). |
fdyno_ |
counter | Commits in that sample. |
Same-item writes¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
counter | Writes that queued behind another write to the same item. |
fdyno_ |
counter | Total queue wait. |
fdyno_ |
gauge | Items with a queued or running write. |
fdyno_ |
gauge | Writers queued now, all items. |
fdyno_ |
histogram | Writers ahead at enqueue. Buckets 1, 4, 16, 64, 256, 1024, 4096. |
fdyno_ |
counter | Writes refused at once because the queue wait would pass the deadline. |
fdyno_ |
counter | Writes refused at once by a queue bound. |
Background workers¶
All workers share these series. The worker label names the worker.
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
gauge | 1 when this process owns the worker. |
fdyno_ |
counter | Passes run. |
fdyno_ |
counter | Completed work items. |
fdyno_ |
counter | Failed attempts, including lease acquisition/release; excludes healthy peer-held leases, shutdown cancellation and native throttles. Retries count again; zero does not prove health. |
fdyno_ |
gauge | Seconds since the last pass that held the lease. |
fdyno_ |
counter | Effects refused because the lease moved to another process. |
fdyno_ |
counter | Lease values seen with an expiry more than the lease lifetime plus 5 minutes past this process's clock. Job leases use restore-recovery, import and export. See A lease expiry is implausibly far ahead. |
fdyno_ |
counter | Times a cleanup worker moved from batch to default priority. |
fdyno_ |
gauge | 1 while a cleanup worker runs at default priority, until a complete pass. JSON: workers.. |
Backlog ages¶
Lease owners report ages after passes; others report 0. Partial coverage gives lower bounds; low can hide backlog.
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
gauge | Clock − DYNODB_ − oldest TTL index head's minute-bucket start across tables; not item delay. |
fdyno_ |
gauge | 1 when every TTL table's head was checked. |
fdyno_ |
gauge | Time of the last complete measurement. |
fdyno_ |
gauge | Age of the oldest stream record, all shards. |
fdyno_ |
gauge | 1 when the last pass read every shard. |
fdyno_ |
gauge | Time of the last complete measurement. |
fdyno_ |
gauge | Largest observed overdue undo age in whole seconds. Retention and skew are already subtracted. |
fdyno_ |
gauge | 1 when the registry snapshot was complete and the pass read or accounted for every table's undo head. |
fdyno_ |
gauge | Start of the observed lease-held pass, including partial passes; 0 means no sample. |
PITR trim falling behind¶
These three PITR gauges are on by default. At /metrics, the JSON names omit
fdyno_. The lease holder samples each table's undo head before trimming on
its first returned page. This uses the trim reads already in the pass. It is
not a count of remaining records or a snapshot after the pass. A lost commit
reply can remove an earlier head before a retry returns its sample.
Alert when overdue age grows across several fresh lease-held passes.
Use fdyno_worker_runs_total and fdyno_worker_items_processed_total with
worker="pitr-trim" to distinguish ongoing work from a stalled worker.
The item counter also includes dropped retired streams and can miss removals
after a lost commit reply. It is not an exact count of undo records.
Check fdyno_worker_lease_held and the sample time on the same process before
comparing ages. Do not sum the gauges across processes.
A fence rejection discards the sample. A positive partial sample covers only
the heads seen; zero with valid=0 does not mean the worker caught up.
EarliestRestorableDateTime is not an overdue age.
If overdue age keeps rising, check lease ownership, reported failures, and FoundationDB commit latency. Compare fresh ages and foreground commit and API p99 under the same load. Count undo records that become due per interval, not API requests. Each pass stops at its deadline, with no record cap to raise.
TTL sweeper¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
counter | Expired items deleted by this process, excluding unknown commit outcomes. |
fdyno_ |
counter | Expiry-index entries deleted. |
fdyno_ |
counter | Expiry-index entries added for rows written before TTL was enabled. |
fdyno_ |
counter | Sweep transactions. |
fdyno_ |
counter | Passes that used their whole time budget. |
fdyno_, fdyno_, fdyno_ |
counter | Delete-phase attempts, conflicts and failures. |
fdyno_ |
counter | Expiry entries the drain read past because reading or deleting that one row failed on its own. The row and its entry stay eligible for a later pass. A rise does not identify the row; the same row can count once per pass. At most 100 table names get separate labels. Each appears after its first skip. The _other series is present from startup and counts overflow plus any skips on a table literally named _other. See A TTL row is skipped. |
fdyno_, fdyno_ |
counter | Backfill-phase pages and rows. |
fdyno_, fdyno_, fdyno_ |
counter | Backfill-phase attempts, conflicts and failures. |
fdyno_ |
counter | Backfill pages put off to the next pass after four attempts. Not a failure. |
fdyno_ |
gauge | Current backfill page size; it halves under contention, down to 1. |
fdyno_ |
counter | Rows the backfill moved past because every attempt of a one-row page was retried; the wrap then does not complete. It counts skips only: it names neither the row nor the cause. See TTL backfill. |
Stream trimmer¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
counter | Stream records deleted. |
fdyno_ |
counter | Trim transactions. |
fdyno_, fdyno_ |
counter | Trim attempts and conflicts. |
fdyno_ |
counter | Pages put off to the next pass after four attempts. Not a failure. |
fdyno_ |
counter | Passes that used their whole time budget. |
Token cleanup¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
counter | Expired token records deleted. |
fdyno_ |
counter | Token cleanup transactions. |
fdyno_ |
counter | Complete token-keyspace passes; stalled while leased means passes do not finish. |
Table catalog¶
The TTL sweeper, stream trimmer and ListStreams open only registered
tables. ListStreams also reads the records of deleted tables' kept streams. Every table is registered by the transaction that creates it.
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
gauge | Registered tables, kind ttl or streams. |
fdyno_ |
counter | Stale entries removed. |
fdyno_ |
counter | Stale entries skipped. |
Indexes, backups and streams¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
gauge | New-GSI backfills in progress. |
fdyno_, fdyno_ |
counter | Backfill pages and items. |
fdyno_ |
gauge | On the index-backfill lease holder: how long the job that has failed longest has failed every attempt with no page known to be committed; 0 when none. A committed page clears that job's age; a finished or removed job drops out. On a failed lease acquisition, the process clears all failure ages if more than one lease lifetime has passed since its last successful take or renewal. |
fdyno_ |
histogram | Per GSI change record: the writer's clock at the base write to the applier's clock after the apply commit. Buckets 250 µs × 2^(i/4) up to 54 s. |
fdyno_ |
counter | GSI index writes left out because one apply batch held several updates of one item: each GSI gets one clear of the first key and one set of the last key and value. |
fdyno_ |
counter | Items skipped because their index key is too large. |
fdyno_ |
counter | Sampled index entries with no base item (kind=), whose base item belongs at another index key or nowhere in the index (kind=), or with a different projection at the right key (kind=). Any non-zero value is a bug. |
fdyno_, fdyno_ |
counter | Pages and entries the sampler checked. |
fdyno_ |
counter | Restore jobs that a failure path marked FAILED, counted by the process that committed the mark. A restore cancelled with Delete does not count: its job is marked FAILED without a count. When a mark's commit reply is lost, the retry finds the job already FAILED under its own fence and counts it once. |
fdyno_ |
counter | Backups that completed as ROLLING. |
fdyno_ |
counter | Automatic online stream shard splits. |
fdyno_ |
counter | Stream reads refused with Trimmed. |
Credentials and TLS¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
counter | Successful credential reloads. |
fdyno_ |
counter | Failed reloads. The previous keys stay active. |
fdyno_ |
gauge | Keys loaded now. |
fdyno_ |
gauge | Keys with a rate limit. |
fdyno_ |
counter | Requests denied by a key's policy. |
fdyno_ |
counter | Certificate reloads. The three TLS series exist only with in-process TLS. JSON: under tls. |
fdyno_ |
counter | Failed certificate reloads. The previous certificate stays in use. |
fdyno_ |
gauge | Expiry of the certificate in use, as Unix time. |
JSON adds credential_throttles_top: up to 20 rate-limited access-key IDs
with throttle counts, never secrets.
Process and FoundationDB client¶
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
gauge | 1 when the startup check could replace the cluster file. It is not checked again. |
fdyno_ |
gauge | Always 1. The configured locality IDs. Prometheus only. |
fdyno_ |
counter | Warning lines dropped by the log budget of 100 lines per second. |
FoundationDB cluster status¶
DYNODB_FDB_STATUS_INTERVAL (for example 15s, on a few processes) controls
FoundationDB status reads. Gauges are absent while polling is off or fields
are missing (such as during recovery); failed reads keep previous values.
JSON: fdb_status.
Check the sample age and failed-read counter on the same poller before using
its values. A successful scrape can return an old healthy sample after a
failed FoundationDB status read. A fresh sample can omit a field the cluster
could not report; absent does not mean zero. Pollers report views of the same
cluster, so use a fresh view instead of adding the gauges across pollers.
For suspect or stale status, check fdbcli from an affected host and compare
with readiness. The
status poller
exports the age of the last successful status read alongside the cached values.
| Prometheus name | Type | Meaning |
|---|---|---|
fdyno_ |
gauge | Seconds since the last successful read; -1 before the first. |
fdyno_ |
counter | Failed status reads. |
fdyno_ |
gauge | 1 when the database is available. |
fdyno_ |
gauge | 1 when data distribution reports a healthy state. |
fdyno_ |
gauge | Processes the cluster reports as degraded. |
fdyno_ |
gauge | The cluster's latency probe. probe is grv or grv_batch (read version at default or batch priority), read or commit. |
fdyno_ |
gauge | The ratekeeper's transaction rate limit. priority is default or batch. |
fdyno_ |
gauge | Transactions released per second. |
fdyno_ |
gauge | Always 1. reason names what limits the rate; workload means nothing on the servers does. |
fdyno_ |
gauge | The largest storage server queue. |
fdyno_ |
gauge | The largest log server queue. |
fdyno_ |
gauge | The largest storage server durability lag. |
fdyno_ |
gauge | The largest storage server data lag. |
fdyno_ |
gauge | Tags the cluster throttles now, kind auto or manual. |
fdyno_ |
gauge | Data in flight for data distribution. |
JSON-only views¶
| JSON key | Meaning |
|---|---|
slow_ |
The DYNODB_ threshold. |
slow_ |
Requests over the threshold. |
slow_ |
The last 64 slow requests. See slow requests. |
tables |
A 60-second per-table view. See per-table hot spots. |
Prometheus has four unlabelled gauges for the per-table view:
fdyno_table_stats_tracked, fdyno_table_stats_max,
fdyno_table_stats_window_seconds and fdyno_table_stats_evictions_total.