node-health-check icon indicating copy to clipboard operation
node-health-check copied to clipboard

An additional option to allow checking of runtime/duration

Open GeoffThorpeFT opened this issue 4 years ago • 0 comments

A Question/Feature Request

What

In addition to checking the cpu, memory and disk would it be possible to check duration

Details

I've recently come across this library as an ex-team member used it for the healthcheck for the Risk Register. Its great now you can specify thresholds for cpu, memory and disk and the library will interact with Heroku to derive, check and alert on the value. However, I note that response time/duration is not currently an option. As we have some time sensitive endpoints it would be great if we could pass use a duration option to specify the max we are willing to accept. We would then see the healthcheck fail when that limit was exceeded. That would be far better and easier to understand that our apps crashing with Heroku timeouts after the 30 second default.

Additional information

I understand that duration per endpoint is tricky as that would require some form of interaction with the ping url option.

GeoffThorpeFT avatar Oct 06 '21 08:10 GeoffThorpeFT