1.0.9 • Published 6 years ago

ppsguard v1.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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')
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago