Metric exporter for BorgBackup
Find a file
Valentin Doreau f0f68e485f
fix: store new metrics in buffer before resetting
Borg repo information can take a long time to gather.
Before resetting the old metrics we store the new ones in a buffer
and update everything at the end.
2024-04-21 15:22:29 +02:00
.gitignore Initial commit 2024-04-01 17:02:29 +02:00
buffer.go fix: store new metrics in buffer before resetting 2024-04-21 15:22:29 +02:00
go.mod Initial commit 2024-04-01 17:02:29 +02:00
go.sum Initial commit 2024-04-01 17:02:29 +02:00
info.go feat: allow access to relocated repos 2024-04-03 08:13:42 +02:00
list.go feat: allow access to relocated repos 2024-04-03 08:13:42 +02:00
main.go fix: store new metrics in buffer before resetting 2024-04-21 15:22:29 +02:00
Makefile Initial commit 2024-04-01 17:02:29 +02:00
metrics.go fix: store new metrics in buffer before resetting 2024-04-21 15:22:29 +02:00
README.md Initial commit 2024-04-01 17:02:29 +02:00

Prometheus Borg(Backup) exporter

Simple Prometheus exporter for BorgBackup.

Rewritten in go from https://code.recycled.cloud/RecycledCloud/prometheus-borgbackup-exporter.
It has been rewritten mainly to enable building a static binary but also to support ipv6. Additional features have also been added like last_archive_time.

Building

To build, you'll need at least the go toolchain installed. On Ubuntu you can generally have the latest version by running:

snap install go --classic

Then run:

go build

Note this executable is dynamically linked and not stripped.

Static executable

To build a static executable, you'll need make installed. You can then simply run:

make