Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darukjs/daruk-monitor-middleware
https://github.com/darukjs/daruk-monitor-middleware
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/darukjs/daruk-monitor-middleware
- Owner: darukjs
- Created: 2019-05-17T06:35:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T07:53:53.000Z (over 5 years ago)
- Last Synced: 2024-04-14T05:11:46.662Z (9 months ago)
- Language: TypeScript
- Size: 3.89 MB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### daruk-monitor-middleware
A monitor from v8-profiler-node8 for [Daruk](https://darukjs.github.io/daruk.org)
## Installation scaffolding
```bash
$ cnpm i -g daruk-monitor-middleware
```
## How to use in your daruk project
Find your daruk config file
```typescript
//daruk.config.ts
darukConfig.middleware = {
'daruk-monitor-middleware': (mid: Function) => {
return mid({
auth: {
name: 'monitor',
password: 'monitor'
}
});
}
};//push it into the middleware list
darukConfig.middlewareOrder = ['daruk-monitor-middleware'];
```## Your can view the data from Api:
### /monitor/profiler
### /monitor/profiler/function
### /monitor/profiler/mem
### /monitor/profiler/mem-analytics
## LICENSE
### MIT License