Skip to main content

o_sfu_telemetry/metrics/
mod.rs

1mod catalog;
2mod counter;
3mod descriptor;
4mod labels;
5mod rtc;
6mod rtp;
7
8#[cfg(any(test, feature = "test-support"))]
9#[path = "TESTS/snapshot.rs"]
10mod snapshot;
11
12#[cfg(any(test, feature = "test-support"))]
13#[path = "TESTS/test_support.rs"]
14pub mod test_support;
15
16#[cfg(test)]
17#[allow(non_snake_case, reason = "test modules map to local TESTS directories")]
18mod TESTS;
19
20#[cfg(test)]
21pub(crate) use descriptor::METRIC_FAMILY_COUNT;
22pub(crate) use descriptor::render_prometheus_text;
23#[cfg(any(test, feature = "test-support"))]
24pub use snapshot::RuntimeMetricsSnapshot;
25
26pub use self::{
27    catalog::RuntimeMetrics,
28    descriptor::{MetricName, RoomGaugeValues},
29    labels::{
30        BudgetSolverOutcome, HttpRoute, MediaQualityLossDirection, MediaQualitySample,
31        RtcDatagramDropReason, RtcDatagramRoutePath, RtcKeyframeRequestOutcome, RtcNackDirection,
32        RtcOutputBudgetLimit, RtcRelayEnqueueResult, RtcRemoteControlDropKind,
33        RtcRemotePacketGateConvergence, RtcRouteControlOutcome, RtpDecoderRefreshScope,
34        RtpForwardDestinationKind, RtpRelayDropKind, SourceSelectionKind, TransportHealthState,
35        TransportIceState, WsSessionLoopExitReason,
36    },
37    rtc::RtcMetricsRecorder,
38    rtp::RtpMetricsRecorder,
39};