Add a simple heartbeat to the configured statsd host for every second9

Fixes #4
This commit is contained in:
R. Tyler Croy 2015-01-26 07:00:07 -08:00
parent 5e1a4e11ba
commit 18e747788e
1 changed files with 4 additions and 1 deletions

View File

@ -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()