Commit 2bce7f6
committed
fix: Initialize Prometheus healthy/recording metrics with current status
The `jitsi_jibri_healthy` and `jitsi_jibri_recording` Prometheus gauges
default to 0 and only update on status transitions via publishStatus().
Since Jibri starts healthy with no transition, the metrics remain at 0
even though the instance is healthy.
Seed the metrics with the current status immediately after registering
the status handler so they reflect the actual state from startup.
Fixes #5901 parent 5522961 commit 2bce7f6
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
0 commit comments