HTTP API monitor based on postman and newman. It provides webui for newman, and some other useful things.
How it work
- setup monitor-man
- export your collection, data file, enviroment from postman, then upload to monitor-man
- monitor-man will setup a newman for monitor your test
Distribute
The distribute branch is design for deploy monitor-man in multiple idc. Upload collection in one place, and run collection in multiple idc according to an environment variable value. See Collection Create
Setup
By Node
- git clone this project
- run
npm install
- change listening port
export PORT=9200
(default 3000) - set redis info
export REDIS_HOST=127.0.0.1;export REDIS_PORT=6379;export REDIS_AUTH=123456
(monitor-man rely on redis to store all information) - set log level
export LOG_LEVEL=debug
- run
node bin/www
note: if you use distribute branch, set REDIS_RHOST, REDIS_WHOST. And you need to set an environment to distinguish idc(eg export IDC=beijing).
BY Docker
docker pull yangxikun/monitor-man
(hub.docker.com/r/yangxikun…)- or
docker pull yangxikun/monitor-man-distribute
(hub.docker.com/r/yangxikun…) docker run --env REDIS_HOST=127.0.0.1 --env REDIS_PORT=6379 --env TIMEZONE=Asia/Shanghai -p 3000:3000 yangxikun/monitor-man:1.0.0
- now, visit http://127.0.0.1:3000
note: if you use distribute branch, use “–env REDIS_RHOST=127.0.0.1 –env REDIS_WHOST=127.0.0.1”. And additional environment to distinguish idc “–env IDC=beijing”
build docker image:
- git clone this project
- checkout distribute branch if needed
- npm install
- wget nodejs.org/dist/v6.11.…
- docker build -t yangxikun/monitor-man:1.0.0 .
Available config environment variable
- REDIS_HOST
- REDIS_PORT
- REDIS_AUTH
- REDIS_DB
- TIMEZONE: see
/usr/share/zoneinfo/
(docker only) - LOG_LEVEL: default debug, see log4js
Doc
see Wiki
License
This software is licensed under MIT. See the LICENSE file for more information.