Git Product home page Git Product logo

ppsguard's Introduction

ppsGuard

Barebone PPS/CPU Rate Watcher for console and UDP loggers. Useful for measuring bottlenecking events into paStash or other tools.

Install

sudo npm install -g ppsguard

Usage

ppsguard --max_pps=300 --max_cpu=3

Usage w/ limited UDP output

ppsguard --max_pps=300 --max_cpu=3 --limit_amount=1 --limit_every 'minute' --udp 127.0.0.1:1234

Output

2017-12-31T00:29:13.405Z 'WARNING!' 'PPS:' 1493.2018766312679 'CPU:' 2.55712890625
2017-12-31T00:29:33.439Z 'WARNING!' 'PPS:' 1374.6596774790248 'CPU:' 1.89306640625
2017-12-31T00:29:43.454Z 'WARNING!' 'PPS:' 349.478350046417 'CPU:' 1.67529296875

Options

  • --interface : Ethernet Interface. (default: eth0)
  • --max_pps : PPS Current Treshold. (default: 500)
  • --max_mean : PPS Mean Treshold. (default: 1000)
  • --max_cpu : CPU Treshold, (default: 2)
  • --message : Warning Message (default: "WARNING!")
  • --json : Output raw JSON (default: false)
  • --udp : Output to UDP socket, Example: 127.0.0.1:1234 (default: false)
  • --limit_amount : Allowed hits per interval, (default: 1)
  • --limit_every : Interval. Accepts 'second', 'minute', 'hour' or value in ms, (default: 'second')

ppsguard's People

Contributors

lmangani avatar

Stargazers

 avatar

Watchers

 avatar  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.