Borgmatic Logs

Borgmatic Logs & Stats

Borgmatic Logs screenshot 1

This Dashboard uses the loki functionality in borgamatic. You need a separate loki instance running to serve the data for Grafana. You can rename the labels to arbitrary values - the Dashboard supports selection based on labels.
Just make sure to leave the print statements in before_backup, after_backup and on_error untouched. These are used for statistics.
This is the config.yml I use with borgmatic:

yaml
source_directories:
    - /mnt/source
repositories:
    - path: /mnt/borg-repository
      label: local
one_file_system: true

#   encryption_passphrase is set in variable $BORG_PASSPHRASE
compression: lz4
archive_name_format: 'backup-{now}'

# retention policy
keep_daily: 7
keep_weekly: 4
keep_monthly: 12
keep_yearly: 10

# consistency:
checks:
    - name: repository
    - name: archives
check_last: 3

before_backup:
    - echo "Starting a backup job."
after_backup:
    - echo "Backup created."
on_error:
    - echo "Error while creating a backup."
loki:
    url: http://my-loki-instance:3100/loki/api/v1/push
    labels:
        instance: borgmatic
        env: home-production
        app: borgmatic
        hostname: __hostname
Revisions
RevisionDescriptionCreated
Google Cloud logs

Google Cloud logs

by Grafana Labs
Grafana Labs solution

Easily monitor Google Cloud logs with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies