No description
Find a file
2017-05-17 09:14:15 +02:00
borg.env first commit 2016-04-23 22:31:00 +02:00
borg_exporter Include host label in backup metrics 2017-05-17 09:14:15 +02:00
prometheus-borg-exporter.service first commit 2016-04-23 22:31:00 +02:00
prometheus-borg-exporter.timer first commit 2016-04-23 22:31:00 +02:00
README.md Add link to https://grafana.net/dashboards/1573 in README.md 2017-05-17 09:13:34 +02:00
VERSION version: bump to 0.1.0+git 2016-04-23 22:31:35 +02:00

Borg exporter

Export borg information to prometheus.

Dependencies

Install

Copy borg_exporter 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.

Configure your node exporter

Make sure your node exporter uses textfile in --collectors.enabled and add the following parameter: --collector.textfile.directory=/var/lib/node_exporter/textfile_collector

Example queries

backup_total_size_dedup{job='node'}
backup_last_size_dedup{job='node'}
backup_chunks_total{job='node'}

Grafana dashboard

See here for a sample grafana dashboard.