Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jabis Sev贸n
/
esm
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
37094a4b
authored
2016-08-16 20:42:50 +0200
by
Rafal Wilinski
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Improve README.md and add new gif
1 parent
3b2bab21
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
README.md
out.gif
README.md
View file @
37094a4
#
###
express-monitor
A module based on Socket.io and Chart.js to report realtime server metrics for Express-based node servers.
# express-monitor
A module based on Socket.io and Chart.js to report realtime server metrics for Express-based node servers.
More Node frameworks coming soon.

##
#
How to use it (in progress)
## How to use it (in progress)
1.
Add this as a dependency (will be on NPM soon)
2.
Before any other middleware or router add following line:
`app.use(expressMonitor());`
3.
Run server and to go
`/status`
## Options
Monitor can be configured by passing options object into
`expressMonitor`
constructor.
Default config:
```
path: '/status',
socketPort: 41338, // Port for Socket.io communication
spans: [{
interval: 1, // Every second
retention: 60 // Keep 60 datapoints in memory
}, {
interval: 5, // Every 5 seconds
retention: 60
}, {
interval: 15, // Every 15 seconds
retention: 60
}]
```
## License
[
MIT License
](
https://opensource.org/licenses/MIT
)
漏 Rafal Wilinski
\ No newline at end of file
...
...
out.gif
View file @
37094a4
217 KB
|
W:
|
H:
250 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment