@iryu54/stack-monitor

Monitor processes as a stack


Keywords
stack-monitor, stack, microservices, git, github, bitbucket, npm, process, command, cli, monitor, monitoring, nodejs
License
MIT
Install
npm install @iryu54/stack-monitor@1.18.8

Documentation

Stack Monitor

DeepScan grade

Quality Gate Status Code Smells Bugs Technical Debt

Launch multiples command at once. You can monitor projects.(like npm projects, git projects ...)

Install

npm i -g @iryu54/stack-monitor

Features

Command:

  • Launch multiple commands at once
  • Check in realtime logs produced by command
  • Restart process

Git

  • Stash / Stash pop
  • Pull if there is update in branch
  • View branches
  • Change branch
  • Reset branch
  • Checkout file

Npm

  • Launch a script
  • Install
  • Rebuild
  • Log of script in real time
  • Show all dependencies
  • Check if update exist for each dependency

Bugs

  • Check problems with typescript

Misc

  • Open folder in vscode
  • Open folder in explorer
  • Open Url for micro service
  • Open remote url of git

System

  • Show CPU percentage for global system
  • Show Mem percentage for global system
  • Show CPU percentage for each commands
  • Show Mem percentage for each commands

Usage

Create a config file like this

Then, in a terminal, type:

stack-monitor <path/to/my/config>

You can type only stack-monitor and choose your config file later.

If you change a variable in conf after execution, the corresponding service restart.

Snippet

Add this in your vscode to print easily variables in debug output of service:

	"Print to stack-monitor": {
		"prefix": "log",
		"body": [
			"console.log(JSON.stringify(['stack-monitor', $1]));",
			"$2"
		],
		"description": "Print to stack-monitor"
	}

Type log in vs code, it should produce something like that:

console.log(JSON.stringify(['stack-monitor', <what you want>, <and others>]));

Example:

if you type this somewhere in server service:

console.log(JSON.stringify(['stack-monitor', "debug:", {port} ]));

Output should appeart in debug section of logs