Reference

Prometheus metrics

Reference for all Prometheus metrics emitted by fsbackup via node_exporter textfile collector.

fsbackup emits .prom files to /var/lib/node_exporter/textfile_collector/ for scraping by node_exporter.

Runner metrics (fsbackup_runner_<class>.prom)

MetricLabelsDescription
fsbackup_runner_target_last_exit_codetargetExit code of last rsync run for this target (0=success, 255=SSH failure)
fsbackup_runner_target_last_successtargetUnix timestamp of last successful run
fsbackup_runner_target_failures_totaltargetCumulative failure count
fsbackup_runner_delta_files_totaltargetFiles transferred in last run
fsbackup_runner_delta_created_totaltargetFiles created in last run
fsbackup_runner_delta_deleted_totaltargetFiles deleted in last run
fsbackup_runner_delta_xfr_bytestargetBytes transferred in last run

Mirror metrics

MetricLabelsDescription
fsbackup_mirror_last_exit_codemodeExit code of last mirror run (mode=daily|promote)
fsbackup_mirror_last_successmodeUnix timestamp of last successful mirror

Doctor metrics

MetricLabelsDescription
fsbackup_orphan_snapshots_totalrootCount of orphaned snapshot directories
fsbackup_annual_immutableroot1 if all annual snapshots are read-only

S3 export metrics (fsbackup_s3.prom)

MetricLabelsDescription
fsbackup_s3_last_exit_codeExit code of last S3 export run
fsbackup_s3_last_successUnix timestamp of last successful S3 export
fsbackup_s3_uploaded_totalObjects uploaded in last run
fsbackup_s3_skipped_totalObjects already in S3, skipped
fsbackup_s3_failed_totalObjects that failed to upload
fsbackup_s3_bytes_totalBytes uploaded in last run
fsbackup_s3_duration_secondsDuration of S3 export run

DB export metrics

MetricLabelsDescription
fsbackup_db_export_successdb, engine, host1 if last export succeeded
fsbackup_db_export_last_timestampdb, engine, hostUnix timestamp of last export
fsbackup_db_export_size_bytesdb, engine, hostCompressed size of last export file

Common exit codes

CodeMeaning
0Success
23Partial transfer (some files skipped — often a permissions issue)
24Partial transfer (source files vanished during sync — usually harmless for active databases)
255SSH connection failure — rsync never started on the remote host