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.
- 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
- 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
git clone https://github.com/fluxitsoft/nodejs-service-heartbeat
cd nodejs-service-heartbeat
npm install
node fill-database.jsthe node fill-database.js line will connect to the localhost mongodb and store some example service
node server.jswith this line you cand start the service check using those service and call the API to query the status
- Access to the service status http://localhost:3000/status
- Access to the service definition http://localhost:3000/service
- Access Monitoring UI http://localhost:3000/
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.
This project is under GNU Lesser General Public License version 3 or later (http://www.gnu.org/licenses/).