GithubHelp home page GithubHelp logo

hypn / lambda-invocations-counter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 3 KB

Retrieves the invocation count of your AWS Lambda Functions from CloudWatch for a given number of minutes.

Python 100.00%

lambda-invocations-counter's Introduction

AWS Lambda Invocations Counter

Retrieves the invocation count of your AWS Lambda Functions from CloudWatch for a given number of minutes.

It makes use of the popular "Boto3" library and expects your local environment to be setup with AWS credentials and region.

Usage:

~$ python count-invocations.py -h

usage: count-invocations.py [-h] [-f FILTER] [-m MINUTES] [-t TOP] [-v] [-z]

optional arguments:
  -h, --help            show this help message and exit
  -f FILTER, --filter FILTER
                        string to match in Lambda functions to report on (eg:
                        "prod-")
  -m MINUTES, --minutes MINUTES
                        minutes of window period to measure (1440 for 24
                        hours)
  -t TOP, --top TOP     number of top results to return
  -v, --verbose         display some progress info
  -z, --zeros           return results with 0 invocations

Example:

~$ python count-invocations.py -f prod -m 2 -t 10 -v -z

Skipping "dev-list-books" (does not match filter string)
Counting invocations for "prod-list-books"
Skipping "dev-create-book" (does not match filter string)
Counting invocations for "prod-create-book"
Skipping "dev-update-book" (does not match filter string)
Counting invocations for "prod-update-book"
Skipping "dev-delete-book" (does not match filter string)
Counting invocations for "prod-delete-book"
Lambda functions counted: 4
Reducing result set to 10 highest results


prod-list-books   31
prod-create-book  4
prod-update-book  0
prod-delete-book  0

lambda-invocations-counter's People

Contributors

hypn avatar

Watchers

 avatar James Cloos avatar

Forkers

ns408

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.