Skip to content

A simple tool who pulls data from Online.net API and parse them to a Prometheus format

License

Notifications You must be signed in to change notification settings

florian-forestier/dedibox-backup-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dedibox backup monitoring

A simple tool who reads API from Online.net and parse them into a Prometheus-compatible format.

How to use it ?

From DockerHub:

docker run -p 9101:9101 -e DEDIBOX_API_TOKEN=<YOUR_TOKEN> artheriom/dedibox-backup-monitoring:v1.0.0

From sources:

  • For Docker: docker build -t="dedibackup_poller:latest" .
  • Golang: go build -o dedibackup_poller github.com/Artheriom/dedibox-backup-monitoring/cmd

Parameters

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 is 9101, as 9100 is used by Prometheus Node Exporter.

  • Metrics will be available under /metrics path.

Example

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

About

Contribute

You're absolutely free (and welcome!) to contribute! Fork it, and submit a PR!

Licence

Licensed under MIT licence. Originally crafted with ❤️ by Artheriom.️

Support

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

About

A simple tool who pulls data from Online.net API and parse them to a Prometheus format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published