You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every realtime server metric is a counter or histogram recorded only on activity. A stalled or freshly started worker exports nothing until traffic arrives. MQTT solves this with mqtt.server.uptime in app/mqtt.php.
Goal
Add realtime.server.uptime, an observable gauge of seconds since the realtime worker started, observed on every collect.
I noticed that realtime.server.uptime was already introduced in app/realtime.php (lines 479-484) via recent commits to track seconds since the realtime worker started:
if (!$telemetryinstanceof NoTelemetry) {
$workerStartedAt = \microtime(true);
$telemetry
->createObservableGauge('realtime.server.uptime', 's', 'Seconds since the realtime worker started.')
->observe(fn (callable$observe) => $observe(\microtime(true) - $workerStartedAt, $workerTelemetryAttributes));
}
Since this gauge is now registered and observed on every collect alongside mqtt.server.uptime, this issue appears to be resolved on main.
Activity
sundeep8967 commentedon Oct 31, 2026
Hi @ArnabChatterjee20k @eldadfux,
I noticed that
realtime.server.uptimewas already introduced inapp/realtime.php(lines 479-484) via recent commits to track seconds since the realtime worker started:Since this gauge is now registered and observed on every collect alongside
mqtt.server.uptime, this issue appears to be resolved onmain.