Monitor CPU usage of program matching a RegEx pattern
.woodpecker | ||
.gitignore | ||
go.mod | ||
go.sum | ||
justfile | ||
main.go | ||
README.md |
cpuwatch
Monitor CPU usage of a process matching a RegEx pattern
Usage of ./cpuwatch:
-grace int
Grace period in seconds after a notification is sent (default 300)
-interval int
Interval in seconds to check the processes (default 30)
-regex string
Regular expression to match process name
-threshold float
CPU usage threshold (default 66)