mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 01:08:05 +01:00
Add a gauge for worker thread liveness.
This commit is contained in:
committed by
Jon Chambers
parent
fc05529574
commit
2ba36ee04c
@@ -65,6 +65,8 @@ public class MessagePersister implements Managed {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
metricRegistry.gauge(name(getClass(), "workerThreadRunning"), () -> () -> workerThread.isAlive() ? 1 : 0);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
||||
Reference in New Issue
Block a user