#prometheus-exporter #repository #borg #file #yaml #file-path #config

app borg-prometheus-exporter

A Prometheus exporter for borg repositories

4 stable releases

1.2.1 Sep 15, 2021
1.1.0 Sep 13, 2021
1.0.0 Sep 13, 2021

#37 in #prometheus-exporter

MPL-2.0 license

20KB
222 lines

borg-prometheus-exporter

A scraper for Prometheus for borg repositories.

Usage

First, create a configuration file. An example configuration file is provided in config.yml. Then run the program with the path to that file as the first argument e.g. ./target/release/borg-prometheus-exporter config.yml.

This may need to be run as root, as borg repositories' permissions are rather restrictive by default.

This program runs an http server, which Prometheus then polls. An example Prometheus configuration is provided:

scrape_configs:
  - job_name: "borg"
    scrape_timeout: 30s
    static_configs:
      - targets: ["localhost::9002"]

Available under the Mozilla Public Licence, version 2.0

Dependencies

~19–32MB
~467K SLoC