lorenwest / monitor-dashboard

Dashboards for the Node.js monitor project
https://lorenwest.github.com/monitor-dashboard
MIT License
204 stars 28 forks source link

Monitor My Own Application with Dashboard #12

Closed rabingogo closed 10 years ago

rabingogo commented 10 years ago

Dear lorenwest,

I'm able to run node-monitor(to monitor my own app) and monitor-dashboard independently. And according to what I understand, monitor-dashboard is monitoring the process it started. But I cannot figure out how to use monitor-dashboard to monitor my own app.

Could you give me some directions? Or if there's any misunderstand, please let me know.

Thanks a lot in advance.

lorenwest commented 10 years ago

Hello,

There are two modes to node-monitor - one where you place this in your app

var Monitor = require('monitor');
Monitor.start();

The other mode is a process or script that monitors that process. If you've gone through the steps in the README.md of the node-monitor project, you'll have played with this a bit.

The monitor-dashboard server runs in the second mode - as a monitor client to your application.

Each component on the dashboard is connected to an app to monitor. When you place a new component onto the dashboard, it asks for the server name and probe to connect with. Start by running monitor-dashboard on the same machine as your app, as this is the simplest configuration.

Monitoring applications on different servers has security issues that are outlined in node-monitor. If you have problems connecting, let me know and I can help work through the issues.

rabingogo commented 10 years ago

Thanks lorenwest!