You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jamie Quigley 6808e5cf8d
Merge pull request #34 from Sciencentistguy/renovate/serde_json-1.x
18 hours ago
src Update Rust crate clap to v3 3 weeks ago
.gitignore Initial commit 4 months ago
Cargo.lock Update Rust crate serde_json to 1.0.76 22 hours ago
Cargo.toml Update Rust crate serde_json to 1.0.76 22 hours ago
LICENCE Initial commit 4 months ago
config.yml Add example config 4 months ago
readme.md Update readme 4 months ago
renovate.json Add renovate.json 2 months ago

readme.md

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