Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Sciencentistguy/borg-prometheus-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Prometheus exporter for borg repositories.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages