dashboards-aws-billing
v0.0.2
Published
AWS billing plugin for segmentio/dashboards
Downloads
5
Readme
dashboards-aws-billing
An aws-billing plugin for segmentio/dashboards.
Use this plugin to visualize your AWS hosting costs on a dashboard.
Installation
$ npm install dashboards-aws-billing
Example
var Dashboards = require('dashboards');
var billing = require('dashboards-aws-billing');
new Dashboards()
.use(billing(accountId, key, secret, bucket, region))
.run();
Metrics
The metrics exposed by this plugin are:
aws.billing.ec2
- rolling 30 day estimate of ec2 costsaws.billing.nonEc2
- rolling 30 day estimate of non-ec2 costsaws.billing.total
- rolling 30 day estimate of AWS costs
Quickstart
Here's a full example of a Geckoboard dashboard showing your total AWS costs:
var Dashboards = require('dashboards');
var billing = require('dashboards-aws-billing');
var pipe = require('parallel-ware-pipe');
var geckoboard = require('geckoboard')('api-key');
new Dashboards()
.use(billing(accountId, key, secret, bucket, region))
.use(pipe('aws.billing.total', geckoboard('widget-id').number))
.run();
License
MIT