Skip to content

Node.js hertbeat server that check diferents typs of services and expose the status via a REST API and web UI

License

Notifications You must be signed in to change notification settings

fluxitsoft/nodejs-service-heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Service heartbeat

Node.js server used to check the status of differents types of services, collect the information and expose it via a REST API. The server also have a small ui implementd with express and websockets.

Type of services

  • HTTP Web Application full response time and status code
  • Hudson project (build status and Test success)
  • Sonar project (differents metrics like test coverage)
  • JMX MBean Object Attributes (like memory or other numeric attributes of any object)
  • ping response time
  • Telnet successful connection response time
  • TODO check database

Prereqs

  • MongoDB
  • Node.js (update version for ubuntu users) and NPM
sudo apt-get install python-software-properties python g++ make software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js 
sudo apt-get update 
sudo apt-get install nodejs npm

Install

git clone https://github.com/fluxitsoft/nodejs-service-heartbeat
cd nodejs-service-heartbeat
npm install
node fill-database.js

the node fill-database.js line will connect to the localhost mongodb and store some example service

Run

node server.js

with this line you cand start the service check using those service and call the API to query the status

API

Contribute

nodejs-service-hearbeat is under development, and contributors are welcome. If you have a feature request, suggestion, or bug report, please open a new issue. To submit patches, please send a pull request. Once your changes get merged back in, you’ll automatically be added to the Contributors List.

License

This project is under GNU Lesser General Public License version 3 or later (http://www.gnu.org/licenses/).

About

Node.js hertbeat server that check diferents typs of services and expose the status via a REST API and web UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published