Giter VIP home page Giter VIP logo

metrics-aws-billing's Introduction

metrics-aws-billing

An aws-billing plugin for segmentio/metrics.

Use this plugin to visualize your AWS hosting costs on a dashboard.

Installation

$ npm install metrics-aws-billing

Example

var Metrics = require('metrics');
var billing = require('metrics-aws-billing');

Metrics()
  .every('1d', billing(accountId, key, secret, bucket, region));

Metrics

The metrics exposed by this plugin are:

  • aws billing total - the total amount charged by AWS so far this billing period
  • aws billing estimated monthly total - rolling 30 day estimate of the total cost

and for each product, it will expose the following metric:

  • aws billing product total - the total amount charged by AWS so far this billing period
  • aws billing product estimated monthly total - rolling 30 day estimate of the total cost

image

Quickstart

Here's a full example of a Geckoboard dashboard showing your total AWS costs:

var Metrics = require('metrics');
var billing = require('metrics-aws-billing');
var geckoboard = require('geckoboard')('api-key');

new Metrics()
  .every('1d', billing(accountId, key, secret, bucket, region))
  .use(function (metrics) {
    metrics.on('aws billing total', function (metric) {
      geckoboard(widget).number(metric.latest());
    });
  });

License

MIT

metrics-aws-billing's People

Stargazers

light-reading avatar  avatar James Bentley avatar Matías Agustín Méndez avatar 曹文忠 avatar Joel Van Horn avatar  avatar Danilo Vaz avatar Lakshminp avatar Marwan Hilmi avatar Ryo Murayama avatar Kerry Jones avatar  avatar gregory nicholas avatar James Young avatar

Watchers

Julian Gruber avatar TJ Holowaychuk avatar Prakash Durgani avatar david birdsong avatar James Cloos avatar Achille avatar Andrius Vaskys avatar Julien Fabre avatar George Wolf avatar Rakesh Nair avatar  avatar Gurdas Nijor avatar  avatar Karthick Sriraman avatar  avatar Niels avatar  avatar Sam Johnson avatar  avatar  avatar Sherry Chao avatar Jenn Boyce avatar Michael Phillips avatar Christopher Albanese avatar Brent Summers avatar Alex Noonan avatar Teresa Nesteby avatar Chris Nixon avatar  avatar  avatar Zeb avatar Liz Hartmann avatar Arlen McCluskey avatar  avatar Ian Muceus avatar  avatar Emilio Gomez Lavin avatar  avatar Kate Flaming avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.