No description
Find a file
2021-05-31 16:11:40 +03:00
borg_backup_status_dashboard.json Add local grafana dashboard 2021-05-31 16:10:05 +03:00
borg_exporter.rc Add option to find and iterate through a list of repos, re-add support for textfile exporter, export data for today's backups 2021-05-31 16:11:40 +03:00
borg_exporter.sh Pushgateway need to consume labels in the endpoint 2021-05-18 00:13:59 +02:00
LICENSE add apache 2.0 license 2018-03-08 15:58:03 +01:00
Makefile Fix permissions of file containing password 2021-05-17 23:01:10 +02:00
prometheus-borg-exporter.service Push metrics to pushgateway 2021-05-17 22:51:42 +02:00
prometheus-borg-exporter.timer first commit 2016-04-23 22:31:00 +02:00
README.md Push metrics to pushgateway 2021-05-17 22:51:42 +02:00
VERSION version: bump to 0.1.1+git 2017-05-22 10:07:12 +02:00

Borg exporter

Export borg information to prometheus.

Dependencies

  • Dateutils
  • Prometheus (obviously)
  • Node Exporter with textfile collector
  • Borg

Install

Manually

Copy borg_exporter.sh to /usr/local/bin.

Copy borg.env to /etc/borg and replace your repokey and repository in it.

Copy the systemd unit to /etc/systemd/system and run

systemctl enable prometheus-borg-exporter.timer
systemctl start prometheus-borg-exporter.timer

Alternative: Use ExecStartPost in your borg backupt timer itself to write our the metrics.

Exported metrics

borg_extract_exit_code
borg_hours_from_last_backup
borg_archives_count
borg_files_count
borg_chunks_unique
borg_chunks_total
borg_last_size
borg_last_size_compressed
borg_last_size_dedup
borg_total_size
borg_total_size_compressed
borg_total_size_dedup

Grafana dashboard

See here for a sample grafana dashboard.