docker-image available Docker Hub
- create config.json in /volume1/docker/synology_backup_exporter (or elsewhere)
- Search for "synology_backup_exporter" in Docker Registry
- select tag "dsm7"
- wait for image download to finish
- launch image
- set config.json as filevolume to /app/config.json
- add port settings (The default exporter-port is 9771)
- ???
- scrape metrics :)
Copy config.json.dist
to config.json
then change the settings in config.json
to your needs
Look in the config.json.dist
file, then simply uppercase the keys and provide the values, for example:
DSMAddress
becomesDSMADDRESS
Cert_Verify
becomesCERT_VERIFY
- etc
Copy config.json.dist
to config.json
then change the settings in config.json
to your needs. Remove any lines that are not wanted in the config file, for example if having a password in the config file is not desired, remove that line, then provide the environment variable PASSWORD
. If a value is provided in the config file and as an environment variable, the config file will take precedence. Note: JSON files should not have a ,
on the last configuration line, if the last line has a comma this exporter will not work
Active Backup for Business metrics have these labels:
hostname,vmname,vmos,vmuuid
metrics:
synology_active_backup_lastbackup_timestamp
synology_active_backup_lastbackup_duration
synology_active_backup_lastbackup_transfered_bytes
synology_active_backup_lastbackup_result
Hyper Backup metrics have these labels:
task_id,task_name,target_type
synology_hyper_backup_lastbackup_successful_timestamp
synology_hyper_backup_lastbackup_timestamp
synology_hyper_backup_lastbackup_duration
Note: For the first time a Hyper Backup is run, the exporter will report the backup job as being successful with a duration of 0 seconds, and completion timestamps of whenever the exporter scraped the Synology.
Hyper Backup Vault metrics have these labels:
target_name,target_id,target_status
synology_hyper_backup_vault_last_backup_duration_seconds
synology_hyper_backup_vault_last_backup_start_timestamp
synology_hyper_backup_vault_target_used_size_bytes
name: Synology Active Backup Last Backup not successful
expr: synology_active_backup_lastbackup_result != 2
for: 1m
name: Synology Hyper Backup Last Backup not successful
expr: synology_hyper_backup_lastbackup_timestamp != synology_hyper_backup_lastbackup_successful_timestamp
for: 1m
name: Synology Active Backup Last Backup older than 72 hours
expr: ((synology_active_backup_lastbackup_timestamp - time()) / 3600) < -72
for: 1m
name: Synology Hyper Backup Last Backup older than 72 hours
expr: ((synology_hyper_backup_lastbackup_successful_timestamp - time()) / 3600) < -72
for: 1m
MIT // 2021 - Raphael Pertl