Add a gauge for worker thread liveness.
This commit is contained in:
parent
fc05529574
commit
2ba36ee04c
|
@ -65,6 +65,8 @@ public class MessagePersister implements Managed {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
metricRegistry.gauge(name(getClass(), "workerThreadRunning"), () -> () -> workerThread.isAlive() ? 1 : 0);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
|
Loading…
Reference in New Issue