borg_exporter

command module
v2.0.0-...-1d51050 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Borg exporter

GitHub Release Go Report Card

This exporter exposes Prometheus metrics from Borg backup repositories.

Metrics

Installation

For pre-built binaries please take a look at the releases. https://github.com/raynigon/borg_exporter/releases

Docker
docker pull ghcr.io/raynigon/borg-exporter:latest
docker run --rm -p 9776:9776 ghcr.io/raynigon/borg-exporter:latest

Example docker-compose.yml:

borg_exporter:
    image: ghcr.io/raynigon/borg-exporter:latest
    command: 
        - '<TODO>'
    restart: always
    ports:
    - "127.0.0.1:9786:9786"
Kubernetes

You can find an deployment definition at: https://github.com/raynigon/borg_exporter/tree/main/examples/kubernetes/deployment.yaml .

Building and running

Build
make build
Running

Running using an environment variable:

export BORG_EXPORTER_<TODO>="<TODO>"
export BORG_EXPORTER_<TODO>="<TODO>"
export BORG_EXPORTER_<TODO>="<TODO>"
./borg_exporter

Running using args:

./borg_exporter \
    --repositories=... 

Metrics

Name Labels Type Description
- - Gauge -
Labels

All metrics contain the label repository.

Environment variables / args reference

Version Env Arg Description Default
>=0.0.1 BORG_EXPORTER_LISTEN_ADDRESS --web.listen-address Address on which to expose metrics. :9786
>=0.0.1 BORG_EXPORTER_METRICS_PATH --web.telemetry-path Path under which to expose metrics. /metrics
>=0.0.1 BORG_EXPORTER_LOG_LEVEL --log.level - "info"
>=0.0.1 BORG_EXPORTER_LOG_FORMAT --log.format - "logfmt"
>=0.0.1 BORG_EXPORTER_LOG_OUTPUT --log.output - "stdout"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL