numbat-reachability
v0.2.4
Published
Send metrics describing whether a thing is reachable.
Downloads
8
Readme
numbat-reachability
Send metrics describing whether a thing is reachable.
Say your thing depends on a Redis running somewhere. You want to know whether
that Redis is up or not. numbat-reachability
sends a metric with value 1 if
it is, 0 otherwise.
Usage
var Reachability = require('numbat-reachability')
Reachability({
uri: 'tcp://127.0.0.1:3337',
hosts: [
'redis://:[email protected]',
'http://another-microservice.internal.example.com'
]
})
Supports redis://
, http://
, https://
and tcp://
URLs.