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

Retention metrics (fsbackup_retention.prom)

MetricLabelsDescription
fsbackup_retention_last_exit_code—Exit code of last retention run
fsbackup_retention_last_success—Unix timestamp of last successful retention run
fsbackup_retention_destroyed_total—Snapshots destroyed in last run

Doctor metrics (fsbackup_doctor_<class>.prom)

MetricLabelsDescription
fsbackup_doctor_target_statustarget0=OK, 1=WARN, 2=FAIL
fsbackup_orphan_snapshots_totalrootCount of orphaned snapshot directories

S3 export metrics (fsbackup_s3.prom)

MetricLabelsDescription
fsbackup_s3_last_exit_code—Exit code of last S3 export run (0=success)
fsbackup_s3_last_success—Unix timestamp of last successful S3 export
fsbackup_s3_uploaded_total—Objects uploaded in last run
fsbackup_s3_skipped_total—Objects already in S3, skipped
fsbackup_s3_failed_total—Objects that failed to upload
fsbackup_s3_bytes_total—Bytes uploaded in last run
fsbackup_s3_duration_seconds—Duration of S3 export run in seconds
fsbackup_s3_target_last_uploadtier, class, targetTimestamp of last successful upload per target
fsbackup_s3_target_last_failuretier, class, targetTimestamp of last upload failure per target

Common rsync 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