Add a simple heartbeat to the configured statsd host for every second9
Fixes #4
This commit is contained in:
parent
5e1a4e11ba
commit
18e747788e
|
@ -83,7 +83,10 @@ class Main {
|
|||
|
||||
logger.info("Started wait loop...")
|
||||
|
||||
while (true) { Thread.sleep(1000) }
|
||||
while (true) {
|
||||
statsd?.recordGaugeValue('heartbeat', 1)
|
||||
Thread.sleep(1 * 1000)
|
||||
}
|
||||
|
||||
logger.info("exiting..")
|
||||
poller.die()
|
||||
|
|
Loading…
Reference in New Issue