Skip to content

Refactor pm2 monit + pm2 logs #2631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Nicholaiii opened this issue Jan 14, 2017 · 9 comments
Closed

Refactor pm2 monit + pm2 logs #2631

Nicholaiii opened this issue Jan 14, 2017 · 9 comments

Comments

@Nicholaiii
Copy link

If reporting a bug, please use the following template.

Expected behaviour

Expecting app to redraw and conform to sizes.

Actual behaviour

Image of bug

Steps to reproduce

  • pm2 m
  • resize terminal

Software versions used

OS         : Ubuntu 16.04
node.js    : 6.9.1
PM2        : 2.2.3

PM2 Log output

Use the command: tail --lines 50 ~/.pm2/pm2.log

Not applicable; but if you need it I will paste it.
@vmarchaud
Copy link
Contributor

We actually use this module to do this but its really old, we may rework pm2 monit to achieve this.

@Nicholaiii
Copy link
Author

I made a quick, working solution using blessed, a really handy and flexible terminal interface API. It handles redrawing like a charm.
gist here
Feel free to steal as much or little as you want to. :)

@vmarchaud
Copy link
Contributor

The aim will be to make a much complete UI, but thanks for your gist anyway :)

@vmarchaud vmarchaud changed the title "pm2 m" breaks on resize Rework pm2 monit to adapt to screen size Jan 14, 2017
@Unitech Unitech changed the title Rework pm2 monit to adapt to screen size Refactor pm2 monit + pm2 logs Jan 24, 2017
@Unitech
Copy link
Owner

Unitech commented Jan 24, 2017

Could be great to re work the pm2 logs command also
=> Sample work from @soyuka https://github.com/keymetrics/pm2-logs

@soyuka
Copy link
Collaborator

soyuka commented Jan 24, 2017

\o/ old work! IMO blessed is not supported enough to be a stable tool that we could use... This is why we dropped that pm2 solution it was too buggy in some terminals no?

@Unitech
Copy link
Owner

Unitech commented Feb 2, 2017

Great work from @ItsJimi landed in #development branch!

Try out the new dashboard/monitoring for PM2:

$ npm install Unitech/pm2#development -g
$ pm2 monit

Will land in [email protected]

@Unitech
Copy link
Owner

Unitech commented Feb 2, 2017

Look at this!:

screenshot from 2017-02-02 17-19-57

@Unitech
Copy link
Owner

Unitech commented Feb 3, 2017

@ItsJimi

  • Add some padding inside boxes (between box and text)
  • Add interpreter in Metadata box
  • Move the Code metrics panel just below the process list and metadata below the global log panel - the process list and code metrics panel must have the same width

@vmarchaud
Copy link
Contributor

Published PM2 2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants