At any moment you can suscribe to circus event. Circus provide a PUB/SUB feed on which any clients can suscribe. The suscriber endpoint URI is set in the circus.ini configuration file.
Events are pubsub topics:
Events are pubsub topics:
All events messages are in a json.
The client has been updated to provide a simple way to listen on the events:
circusctl list [<topic>, ...]
$ circusctl listen tcp://127.0.0.1:5556
watcher.refuge.spawn: {u'process_id': 6, u'process_pid': 72976,
u'time': 1331681080.985104}
watcher.refuge.spawn: {u'process_id': 7, u'process_pid': 72995,
u'time': 1331681086.208542}
watcher.refuge.spawn: {u'process_id': 8, u'process_pid': 73014,
u'time': 1331681091.427005}