tormon

Tornado based application monitor


Keywords
tornado, redis, tormon
License
Other
Install
pip install tormon==0.0.11

Documentation

Info

Tornado project which monitors urls provided. As for now it supports file based url reader and persist information in memory.

Manual

  1. Install tormon
$ pip install tormon
  1. Run tormon providing path to file which has list of urls (each in separate line) to monitor:
$ tor-mon --host=0.0.0.0 --port=8081 --config=/tmp/config.yml --debug=true
  1. Run tormon using redis as a storage (requires redis-py or/and hiredis)
$ tor-mon --host=0.0.0.0 --port=8081 --config=/tmp/config.yml --debug=true --writer=redis
  1. Query api to get information:
$ curl http://localhost:8081/api/urls/
$ curl http://localhost:8081/api/stats/
$ curl http://localhost:8081/api/url/\?url\=<url>
  1. Optionally You can install redis and hiredis