2.0.0 • Published 9 years ago
good-rabbit v2.0.0
good-rabbit
RabbitMQ broadcasting for Good process monitor
Usage
good-rabbit is a good reporter implementation to write hapi server events to RabbitMQ.
The connection to RabbitMQ is made via the wascally module.
GoodRabbit([config])
Creates a new GoodRabbit object with the following arguments:
config- Configuration object[connection]- Settings for connecting to RabbitMQ. See theconnectionexample in wascally's Configuration via JSON for more info and defaults[exchange]- Settings for the exchange to publish to. See theexchangesexample in wascally docs Configuration via JSON for more info.
Output Format
All good messages are published to the given exchange w/ type set to event from good (i.e. ops, error, request) and body containing the entire payload from good. No parsing or transforming is done, that's left up to whatever processes the data coming out of RabbitMQ.