Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teemow/prometheus-borg-exporter
https://github.com/teemow/prometheus-borg-exporter
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/teemow/prometheus-borg-exporter
- Owner: teemow
- License: apache-2.0
- Created: 2016-04-23T20:11:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T13:18:08.000Z (about 3 years ago)
- Last Synced: 2024-04-23T18:52:16.739Z (8 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 27
- Watchers: 7
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Borg exporter
Export borg information to prometheus.
## Dependencies
* Prometheus (obviously)
* Node Exporter with textfile collector
* Borg (https://github.com/borgbackup/borg)## Install
Copy `borg_exporter` to `/usr/local/bin`.
Copy `borg.env` to `/etc/borg` and replace your repokey and repository in it.
Copy the systemd unit to `/etc/systemd/system` and run
```
systemctl enable prometheus-borg-exporter.timer
systemctl start prometheus-borg-exporter.timer
```Alternative: Use `ExecStartPost` in your borg backupt timer itself to write our the metrics.
## Configure your node exporter
Make sure your node exporter uses `textfile` in `--collectors.enabled` and add the following parameter: `--collector.textfile.directory=/var/lib/node_exporter/textfile_collector`
## Example queries
```
backup_total_size_dedup{job='node'}
backup_last_size_dedup{job='node'}
backup_chunks_total{job='node'}
```### Grafana dashboard
See [here](https://grafana.net/dashboards/1573) for a sample grafana dashboard.