mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 05:06:47 +00:00
Add a gauge for worker thread liveness.
This commit is contained in:
1 parent
fc05529574
commit
2ba36ee04c
1 file changed
+2
@@ -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