Skip to content
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

Created a pm2 web interface. #36

Closed
wants to merge 6 commits into from

Conversation

adriancooney
Copy link

Seeing the potential in pm2 web I decided to add some more functionality. This pull request adds:

  • pm2 web start|stop|restart
  • A dashboard with some functionality. Displays processes and CPU's etc. See screenshot below.

To start, run pm2 web and point your browser to http://localhost:9000.

(Woops, just realized I forgot to use the configuration port. Will fix.)

I'm creating a pull request now to test the waters. Should I continue with the web interface? And if so, should I add the ability to start and stop processes? I can see some security issues arising but could be alleviated.

screen shot 2013-06-28 at 00 36 07

@Unitech
Copy link
Owner

Unitech commented Jun 28, 2013

Great !!!

I will take some time to review this during the week end

Thanks !

@Unitech Unitech mentioned this pull request Jul 8, 2013
5 tasks
@jameswyse
Copy link

This looks awesome, definitely potential here.. nice one!

What do you guys think about making the dashboard a separate app? That would open even more possibilities, perhaps even monitoring PM2 on multiple servers through the one dashboard.

@alumowa
Copy link

alumowa commented Jul 16, 2013

+1 to separating the dashboard, much more flexible and cleaner.

Nice job on the UI btw, looks great!

@patrickliang
Copy link

This is fantastic!

@spruce
Copy link

spruce commented Oct 27, 2013

What is happening with this extension? Would love to have that and also adding some auth (at least basic http auth)

@Unitech
Copy link
Owner

Unitech commented Oct 27, 2013

Yes I always wanted to merge this PR to pm2 but I wanted to keep PM2 lean so I waited to build a communication interface.
Now it's almost ready, I coded this interface (still under development) : https://github.com/Unitech/pm2-interface

@achingbrain
Copy link
Contributor

I'd love to see something like this, and for it to graph the memory and cpu usage of individual processes over time. Was about to start working on something similar so I'm glad someone beat me to it.

+1 to monitoring pm2 instances on multiple machines too.

@rlidwka
Copy link
Collaborator

rlidwka commented Nov 20, 2013

I'm a bit surprised that it still isn't available as a separate npm module.

@achingbrain
Copy link
Contributor

Indeed. Perhaps rashly I've just grabbed the changes made by dunxrion and published them as a stand-alone express app on npm under the name pm2-web. There's a repo and instructions for it here: https://github.com/achingbrain/pm2-web

As a bonus it'll also publish the availability of the page via Bonjour/zeroconf.

I'll see about adding some of the features talked about above over the weekend.

@achingbrain
Copy link
Contributor

The multi-host monitoring support is all ready to go, I'm just waiting for Unitech/pm2-interface#5 to be merged and released for it to work.

@markshust
Copy link

Unitech/pm2-interface#5 was merged a few weeks ago

@knownasilya
Copy link

👍 this is a great idea, I was just thinking or writing something like this. Would be nice to start/stop processes as well.

@achingbrain
Copy link
Contributor

@knownasilya take a look at https://github.com/achingbrain/pm2-web (and/or https://npmjs.org/package/pm2-web) - in the "Actions" column are little icons that let you start, stop and restart processes.

@Unitech Unitech closed this Feb 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants