health-monitor-endpoint
v1.0.3
Published
Health monitor which allows for monitoring via an express
Downloads
6
Readme
Health Monitor Endpoint
Health Monitor Endpoint for Express
Allows you to monitor applications by making requests to an express endpoint. Data includes the most recent error message and stack details. Installation, usage, and endpoint details are below.
Installation
npm install health-monitor-endpoint --save
Usage
require('health-monitor-endpoint')
Just require the module and it will do the rest! In order to test the endpoint go to the follow url and switch out localhost
to your server's ip address or domain name depending on your config.
http://localhost:18080/healthcheck
Endpoints
Health Check
URL : /healthcheck
Port : 18080
Method : GET
Success Response
Code : 200 OK
Error Response
Code : 500 Internal Server Error
Content : {"errorMessage": "message of error", errorStack: "complete error stack"}