This is an exporter for getting your Octopush balance as prometheus metrics.
---
- login: abcd@sub-accounts.com
key: 123123123sadfasfdfdfds
labels:
route: 1
route_env: prod
type: direct-32
The configuration is a list, you can supply multiple accounts.
$ dep ensure
$ go build
./octopush_exporter -config conf.yml
octopush_balance{balance="FR",route="1",route_env="prod",type="direct-32"} 14065.62
octopush_balance{balance="XXX",route="1",route_env="prod",type="direct-32"} 18003.96