Socket
Book a DemoInstallSign in
Socket

dashboards-aws-billing

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashboards-aws-billing

AWS billing plugin for segmentio/dashboards

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

dashboards

FAQs

Package last updated on 07 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts