New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amqp-heartbeat-to-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amqp-heartbeat-to-mongodb

Collect all heartbeat messages and store them into MongoDB

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Use amqp-heartbeat package to send heartbeat messages.

Usage

Collect all heartbeat messages and write them into the dashboard DB:

var heartbeatCollector = require ( 'amqp-heartbeat-to-mongodb' )
heartbeatCollector.start( 'amqp://user:password@localhost', 'mongodb://localhost:27017/dashboard' )

Prerequisites

MongoDB

Get and start MongoDB Docker container:

https://hub.docker.com/_/mongo/

docker pull mongo
docker run --name my-mongo -p 27017:27017 -d mongo

Create a database named dashboard and a collection services.

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

Run as Docker Container

docker build -t heartbeat/collector .
docker run -d --link mongodb:mongo --link some-rabbit:rabbit --name heartbeat-collector heartbeat/collector

Web GUI

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

Keywords

FAQs

Package last updated on 12 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc