open-services / finance-watch

Gathers metrics about finances and exposes it as prometheus metrics
0 stars 0 forks source link

Include expenses from DNSimple #2

Open victorb opened 5 years ago

victorb commented 5 years ago

We need to include the monthly cost for having the personal dnsimple account as well.

victorb commented 5 years ago

Probably need to hardcode the costs per plan and then use the following API endpoint to get what plan we're using:

curl  -H 'Authorization: Bearer <token>' \
      -H 'Accept: application/json' \
      https://api.dnsimple.com/v2/whoami