amqp-heartbeat

1.6.0 • Public • Published

Send Heartbeat Messages To RabitMQ

Usage is easy:

var heartbeat = require( 'amqp-heartbeat' )
heartbeat.start( 'amqp://user:password@localhost', 'Some Service Name' )

You should update the status regulary, e.g.:

heartbeat.setStatus( 'Users in web shop: '+ sessionCount )

Run RabbitMQ (Docker Container)

docker run -d --hostname my-rabbit --name some-rabbit -p 5672:5672 -p 15672:15672 -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password rabbitmq:3-management

Collect Heartbeat Messages

Use amqp-heartbeat-to-mongodb package to collect and store heartbeat messages in a MongoDB.

Web GUI

A web UI demo is available, check out the amq-heartbeat-gui node package

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.6.0
    2
    • latest

Version History

Package Sidebar

Install

npm i amqp-heartbeat

Weekly Downloads

2

Version

1.6.0

License

MIT

Last publish

Collaborators

  • ma-ha