Comments (3)
Does your test work with a local server? If so, this is a configuration issue, and you're right - it could use some better documentation and configuration examples. One way to change configurations is to start your app server with the following on the command line:
node myapp.js '--NODE_CONFIG={"Monitor":{"allowExternalConnections":true}}'
That should allow your app to be monitored remotely. Make sure you understand the security concerns.
From http://lorenwest.github.io/node-monitor/index.html
Security Concerns
Exposing the internals of your app server is a high security risk. By default, the server listens on port 42000 and will connect with localhost clients only.
In order to monitor across machines, the default configuration must be changed to listen beyond localhost. Before doing this, it is recommended to understand the risks and have external measures in place to prevent unauthorized access.
See notes in the config/external.js file for more information.
from node-monitor.
To add some context, node-monitor uses node-config for configuration management. This allows multiple npm modules to mixin configurations, offers multi-deployment configurations, and file based, environment variable based, or command line based configurations.
The above example used the command line based configuration, but as you deploy your app to different environments (development, qa, staging, production), you may need different configurations. The best way is to create a /config directory at the top of your app, put default configurations into the default file, and environment-specific configurations into their own file. Hopefully the node-config documentation will be enough to get you going.
from node-monitor.
It works!, I forget create that /config folder with my configuration. Thanks so much.. And congrat for this library (^_^)
from node-monitor.
Related Issues (20)
- Removing components HOT 2
- "Add component" needs scrollbar by default. HOT 1
- npm start monitor failed HOT 1
- Support for HTTP monitoring? HOT 1
- Troubles running example scripts on Mac HOT 5
- Monitor an application from Browser HOT 2
- node-monitor crashes HOT 2
- error running monitor HOT 4
- Error watching for file (runtime.json) ENOSPC HOT 3
- Need more examples HOT 5
- process.EventEmitter is deprecated in Node.js v6.*.* HOT 4
- What about multiple processes? How are they handled? HOT 3
- Cannot get output when running a nodejs script file HOT 1
- How can I add additional data to the monitor result? HOT 4
- getConnection() return null
- Build error on install HOT 1
- Monitor information do not getting correctly in docker container HOT 1
- Waiting for response HOT 1
- Page onInit doesn't save HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-monitor.