Add a gauge for worker thread liveness.

This commit is contained in:
Jon Chambers 2020-10-03 10:41:42 -04:00 committed by Jon Chambers
parent fc05529574
commit 2ba36ee04c
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ public class MessagePersister implements Managed {
}
}
});
metricRegistry.gauge(name(getClass(), "workerThreadRunning"), () -> () -> workerThread.isAlive() ? 1 : 0);
}
@VisibleForTesting