8xFF / atm0s-media-server

Decentralized, Global-Scale Media Server written in Rust (WebRTC/Whip/Whep/Rtmp/Sip)
https://8xff.github.io/media-docs/
MIT License
211 stars 17 forks source link

feat: report connector agent stats to console #322

Open giangndm opened 1 month ago

giangndm commented 1 month ago

Currently each connector agent like Gateway or MediaServer will report stats like queue len, inflight pkts, acked pkts. The stats should be sent to console for monitoring cluster behavior

#[derive(Debug, Clone)]
pub enum Event {
    Stats { queue: usize, inflight: usize, acked: usize },
}