RabbitMQ broadcasting for Good process monitor
good-rabbit
is a good reporter implementation to write hapi server events to RabbitMQ.
The connection to RabbitMQ is made via the wascally module.
Creates a new GoodRabbit object with the following arguments:
config
- Configuration object[connection]
- Settings for connecting to RabbitMQ. See theconnection
example in wascally's Configuration via JSON for more info and defaults[exchange]
- Settings for the exchange to publish to. See theexchanges
example in wascally docs Configuration via JSON for more info.
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.