dashboards-aws-billing

0.0.2 • Public • Published

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 costs
  • aws.billing.nonEc2 - rolling 30 day estimate of non-ec2 costs
  • aws.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

Package Sidebar

Install

npm i dashboards-aws-billing

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • ivolo