Skip to main content

Module metrics

Module metrics 

Source
Expand description

Prometheus metric counters and gauges for copy operations and I/O stats. Prometheus metric counters and gauges for copy operations, I/O stats, and storage detection results.

Structs§

ATOMIC_WRITE_FALLBACKS
Atomic write attempts (tmp+rename) that fell back to buffered I/O.
BUFFER_POOL_CAPACITY
Number of buffers currently in the worker’s buffer pool.
BUFFER_POOL_CHUNK_SIZE
Size of each individual buffer chunk in the pool (bytes).
BUFFER_POOL_TOTAL_BYTES
Total memory allocated to the buffer pool (bytes).
BYTES_REPLICATED
Total bytes successfully written to each replication target.
BatchedAtomicCounter
Batches increments and decrements to a global AtomicU64 to reduce contention.
BatchedCounter
Batches increments to a Prometheus [Counter] to reduce atomic contention.
COALESCED_WRITES
Write events merged into larger chunks by the coalescer.
COPY_METHOD_OFFLOAD
Copies completed via hardware or network offload (copy_file_range/sendfile), per target.
COPY_METHOD_REFLINK
Copies completed via CoW reflink (FICLONE), per target.
COPY_METHOD_SENDFILE_FALLBACK
Copies that fell back from io_uring to sendfile due to EBADF or timeout.
COPY_METHOD_STANDARD
Copies completed via standard read/write or io_uring, per target.
DM_CRYPT_DETECTED
Set to 1 when dm-crypt (LUKS) is detected in the storage stack.
DM_STACK_DEPTH
Number of device-mapper layers detected beneath the target filesystem.
GLOBAL_BUFFER_COUNT
Atomic counter tracking the total number of allocated buffers globally.
GLOBAL_BUFFER_LIMIT
Maximum configured memory budget for I/O buffers across all workers (bytes).
GLOBAL_MEMORY_USAGE_BYTES
Current total memory allocated for I/O buffers across all workers (bytes).
GOVERNOR_LOAD_AVERAGE
System load averages (1-minute, 5-minute, 15-minute), labeled by period.
GOVERNOR_PACING_DURATION_MS
Cumulative time workers spent sleeping due to governor pacing (ms).
GOVERNOR_STRESSED
Whether the system is currently under stress (1 = stressed, 0 = normal).
GOVERNOR_STRESS_SCORE
Composite stress score from PSI, memory, and CPU pressure (0.0..1.0 = OK, >1.0 = critical).
GOVERNOR_THROTTLED_EVENTS
Events delayed because the governor detected system pressure.
HASH_CACHE_HITS
Files skipped because their cached signature matched the source.
HASH_COMPUTATION_DURATION
Time spent computing BLAKE3 hashes (seconds).
HASH_VERIFICATIONS_TOTAL
BLAKE3 hash verifications performed (post-copy integrity checks).
INODE_LOOKUP_DURATION
Time spent resolving an inode number to a filesystem path.
NFS_BYPASS_DOUBLE_ENCRYPTION
Double encryption detected: sec=krb5p (per-RPC AES) + xprtsec=tls.
NFS_BYPASS_KRB5_FALLBACK
NFS bypass fallbacks due to Kerberos auth (krb5/krb5i/krb5p) on the mount.
NFS_BYPASS_KTLS_PROMOTED
kTLS kernel offload successfully promoted after TLS handshake.
NFS_BYPASS_TLS_FALLBACK
NFS bypass TLS upgrade skipped – xprtsec=tls mount but tls feature disabled or STARTTLS rejected.
RDMA_RPC_LATENCY_US
RDMA per-RPC round-trip latency in microseconds (Send WR post -> CQ completion).
REGISTRY
Shared Prometheus registry for all foxing metrics.
RENAME_EVENTS
Total rename operations processed across all targets.
REPLICATION_LATENCY
End-to-end replication latency from source event to target write, per target.
SIDECAR_FILES_CREATED
.foxing_meta sidecar files created (fallback for filesystems without xattr support).
STORAGE_PHYSICAL_BLOCK_SIZE
Physical block size of the underlying storage device (bytes).
VERSIONING_FAILURES
Failed attempts to create reflink version snapshots before overwrite.
VERSIONING_SUCCESS
Successfully created reflink version snapshots.

Functions§

initialize_metrics
Set the global buffer memory limit gauge from a megabyte value.