Git Product home page Git Product logo

billing-export-python's Introduction

status: inactive

This project is no longer actively developed or maintained.

For more information about App Engine, refer to our documentation.

billing-export-python

View Google Cloud Platform billing export files via an App Engine dashboard.

Demonstrates parsing billing export files stored in a cloud storage bucket and rendering a Google Chart, triggering alerts and sending summary email.

The dashboard presents a graph of the last 90 days of billing data sent by the billing export feature. A complete walkthrough of the application, and enabling billing export, is available on YouTube.

Screenshot

Setup Instructions

  • Setup Billing Export. - Create a Cloud Storage bucket, and navigate to "Billing โ†’ Project โ†’ Billing Export". Enter the bucket name, a useful prefix, and select 'JSON' as the format.

  • Copy config.py.template to config.py - Enter values for the bucket to monitor, and a default email address to use when no email address exists.

  • Edit app.yaml - Supply a valid App Engine application id with access to the created bucket.

  • Setup Object Change Notifications - Configure the URL https://billing-export-dot-{appid}.appspot.com/objectChangeNofication as the object change notification URL of the bucket. Steps are described here. Please not the necessity of using a service account with gsutil to run the "gsutil notification" command, a personal account won't work.

gsutil notification watchbucket https://billing-export-dot-{appid}.appspot.com/objectChangeNofication gs://{bucketname>}

Usage Tips

  • Clicking the "Flush all caches" button takes time if there are a large number of objects in the bucket. It should never be needed if object change notifications are working.

  • Select a date in the line chart by clicking a column in the body of the chart.

  • The TreeMap chart at the top of the file presents the charge breakdown for the selected date.

  • Select a product or SKU from the treemap to show charges for just the selected product or SKU in the line chart.

  • Right-click the treemap to go back up.

  • Show or hide lines in the line chart by selecting a series in the chart legend.

Dependencies

This application makes use of

billing-export-python's People

Contributors

bmenasha avatar craigbox avatar iangsy avatar vilmacs avatar zoidbergwill 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.