Provided by: Ignacio Van Droogenbroeck
This Dashboard offers you information your balance, consumption to date and balance to date of your DigitalOcean Account.
In the InfluxDB UI, go to Settings->Templates and enter this URL: https://raw.githubusercontent.com/influxdata/community-templates/master/do_billing/dobilling.yml
If you have your InfluxDB credentials configured in the CLI, you can install this template with:
influx apply -u https://raw.githubusercontent.com/influxdata/community-templates/master/do_billing/dobilling.yml
- 1 Telegraf Configuration: 'dobilling'
- 1 Dashboards: 'DigitalOcean Billing'
- 1 Label: 'digitalocean'
- 1 Bucket: 'do_billing'
- 1 sh file: balance.sh
General instructions on using InfluxDB Templates can be found in the use a template document.
Telegraf Configuration requires the following environment variables
INFLUX_TOKEN
- The token with the permissions to read Telegraf configs and write data to thetelegraf
bucket. You can just use your operator token to get started.INFLUX_ORG
- The name of your Organization.INFLUX_HOST
- The address of you InfluxDB
To use this dashboard, you need a DigitalOcean Token. Read Only is sufficient and you can get one from here and pass as to environment variable. In the balance.sh file, the variable expected is $DO_TOKEN.
The Telegraf config has set up a path to the balance.sh file the working directory from where Telegraf is running.
Author: Ignacio Van Droogenbroeck
Email: ignacio[at]vandroogenbroeck[dot]net
Github and Gitlab user: @xe-nvdk
Influx Slack: Ignacio Van Droogenbroeck