diff --git a/pkg/stats/monitor_prom.go b/pkg/stats/monitor_prom.go index 24a6eee3..1c9dc875 100644 --- a/pkg/stats/monitor_prom.go +++ b/pkg/stats/monitor_prom.go @@ -17,6 +17,7 @@ package stats import ( "github.com/prometheus/client_golang/prometheus" + "github.com/livekit/protocol/livekit" "github.com/livekit/protocol/rpc" ) @@ -75,7 +76,9 @@ func (m *Monitor) promIsIdle() float64 { func (m *Monitor) promCanAcceptRequest() float64 { m.mu.Lock() - _, canAccept := m.canAcceptRequestLocked(&rpc.StartEgressRequest{Request: &rpc.StartEgressRequest_Web{}}) + _, canAccept := m.canAcceptRequestLocked(&rpc.StartEgressRequest{ + Request: &rpc.StartEgressRequest_Web{Web: &livekit.WebEgressRequest{}}, + }) m.mu.Unlock() if !m.svc.IsDisabled() && canAccept {