A simple tool who reads API from Online.net and parse them into a Prometheus-compatible format.
docker run -p 9101:9101 -e DEDIBOX_API_TOKEN=<YOUR_TOKEN> artheriom/dedibox-backup-monitoring:v1.0.0
- For Docker:
docker build -t="dedibackup_poller:latest" .
- Golang:
go build -o dedibackup_poller github.com/Artheriom/dedibox-backup-monitoring/cmd
There is only two parameters:
-
DEDIBOX_API_TOKEN
(or-token
command-line argument): Your Dedibox API token. You can generate one here.- Make sure to never share this token!
-
-port
: Specify a port to bind on. Default is9101
, as9100
is used by Prometheus Node Exporter. -
Metrics will be available under
/metrics
path.
Data returned (example):
dedibackup_active{server_id="155976"} 1
dedibackup_total_bytes{server_id="155976"} 100000000000
dedibackup_used_bytes{server_id="155976"} 4994340620
dedibackup_total_files_number{server_id="155976"} 1000
dedibackup_used_files_number{server_id="155976"} 240
You're absolutely free (and welcome!) to contribute! Fork it, and submit a PR!
Licensed under MIT licence. Originally crafted with ❤️ by Artheriom.️
Even as this program is published "as-is", without warranty, I would be glad to help you if you encounter issues with this program. Ask on Github.com with an issue, or tweet me