pm2-plotly

Create a quick dashboard to monitor a pm2 app using Plotly

Usage no npm install needed!

<script type="module">
  import pm2Plotly from 'https://cdn.skypack.dev/pm2-plotly';
</script>

README

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