Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) DecRTCSessions(groupID string)
- func (m *Metrics) DecRTPTracks(groupID, direction, trackType string)
- func (m *Metrics) DecWSConnections(clientID string)
- func (m *Metrics) Handler() http.Handler
- func (m *Metrics) IncRTCConnState(state string)
- func (m *Metrics) IncRTCErrors(groupID string, errType string)
- func (m *Metrics) IncRTCSessions(groupID string)
- func (m *Metrics) IncRTPTracks(groupID, direction, trackType string)
- func (m *Metrics) IncWSConnections(clientID string)
- func (m *Metrics) IncWSMessages(clientID, msgType, direction string)
- func (m *Metrics) ObserveRTCClientJitter(groupID string, val float64)
- func (m *Metrics) ObserveRTCClientLossRate(groupID string, val float64)
- func (m *Metrics) ObserveRTCClientRTT(groupID string, val float64)
- func (m *Metrics) ObserveRTPTracksWrite(groupID, trackType string, dur float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { RTPTracks *prometheus.GaugeVec RTPTrackWrites *prometheus.HistogramVec RTCSessions *prometheus.GaugeVec RTCConnStateCounters *prometheus.CounterVec RTCErrors *prometheus.CounterVec RTCClientLoss *prometheus.HistogramVec RTCClientRTT *prometheus.HistogramVec RTCClientJitter *prometheus.HistogramVec WSConnections *prometheus.GaugeVec WSMessageCounters *prometheus.CounterVec // contains filtered or unexported fields }
func NewMetrics ¶
func NewMetrics(namespace string, registry *prometheus.Registry) *Metrics
func (*Metrics) DecRTCSessions ¶
func (*Metrics) DecRTPTracks ¶ added in v0.10.0
func (*Metrics) DecWSConnections ¶
func (*Metrics) IncRTCConnState ¶
func (*Metrics) IncRTCErrors ¶
func (*Metrics) IncRTCSessions ¶
func (*Metrics) IncRTPTracks ¶ added in v0.10.0
func (*Metrics) IncWSConnections ¶
func (*Metrics) IncWSMessages ¶
func (*Metrics) ObserveRTCClientJitter ¶ added in v0.18.0
func (*Metrics) ObserveRTCClientLossRate ¶ added in v0.18.0
func (*Metrics) ObserveRTCClientRTT ¶ added in v0.18.0
func (*Metrics) ObserveRTPTracksWrite ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.