node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

pm2-plotly

pm2-plotly

Create a quick dashboard to monitor pm2 apps using Plotly

install

npm install -g pm2-plotly

configure with your Plotly credentials

touch ~/.pm2_plotly

Fill that file with your credentials:

{
    "username": "alexander.daniel",
    "apiKey": "xxxxxxxxxxx",
    "tokens": [
        "xxxxxxxxxxx",
        "xxxxxxxxxxx"
    ]
}

Now you're ready to go!

start the dashboard server:

pm2-plotly

Visiting http://localhost:9090/ will show you a list of running pm2 apps.

Right now you can only view one at a time, as this script only uses 2 plotly streamTokens. Feel free to fork!

license

MIT