Expose bareos backup data via Prometheus
260
Prometheus exporter for bareos data recovery system
Dockerfile/bareos_exporter/pw/authdocker run --name bareos_exporter -p 9625:9625 -d Dark-Vex/bareos_exporter:latest -dsn mysql://user:password@host/dbname
This is just an example, would be more secure to create a dedicated user on DB with read-only permission
bareos-db:
image: mysql:5.6
restart: always
volumes:
- /srv/bareos/mysql/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=ThisIsMySecretDBp4ssw0rd
- TZ=Europe/Rome
bareos-prometheus:
image: darkvex/bareos-prom_exporter:latest
restart: always
ports:
- 9625:9625
environment:
- DSN=mysql://root:ThisIsMySecretDBp4ssw0rd@tcp(bareos-db)/bareos
- TZ=Europe/Rome
| Name | Description | Default |
|---|---|---|
| port | Bareos exporter port | 9625 |
| endpoint | Bareos exporter endpoint. | "/metrics" |
| dsn | Data source name of the database that is used by bareos. Protocol can be mysql:// or postgresql://. The rest of the string is passed to the database driver. | "mysql://bareos@unix()/bareos?parseTime=true" |
Content type
Image
Digest
Size
7.5 MB
Last updated
about 6 years ago
docker pull darkvex/bareos-prom_exporter