perf

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0, Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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 (m *Metrics) DecRTCSessions(groupID string)

func (*Metrics) DecRTPTracks added in v0.10.0

func (m *Metrics) DecRTPTracks(groupID, direction, trackType string)

func (*Metrics) DecWSConnections

func (m *Metrics) DecWSConnections(clientID string)

func (*Metrics) Handler

func (m *Metrics) Handler() http.Handler

func (*Metrics) IncRTCConnState

func (m *Metrics) IncRTCConnState(state string)

func (*Metrics) IncRTCErrors

func (m *Metrics) IncRTCErrors(groupID string, errType string)

func (*Metrics) IncRTCSessions

func (m *Metrics) IncRTCSessions(groupID string)

func (*Metrics) IncRTPTracks added in v0.10.0

func (m *Metrics) IncRTPTracks(groupID, direction, trackType string)

func (*Metrics) IncWSConnections

func (m *Metrics) IncWSConnections(clientID string)

func (*Metrics) IncWSMessages

func (m *Metrics) IncWSMessages(clientID, msgType, direction string)

func (*Metrics) ObserveRTCClientJitter added in v0.18.0

func (m *Metrics) ObserveRTCClientJitter(groupID string, val float64)

func (*Metrics) ObserveRTCClientLossRate added in v0.18.0

func (m *Metrics) ObserveRTCClientLossRate(groupID string, val float64)

func (*Metrics) ObserveRTCClientRTT added in v0.18.0

func (m *Metrics) ObserveRTCClientRTT(groupID string, val float64)

func (*Metrics) ObserveRTPTracksWrite added in v0.16.0

func (m *Metrics) ObserveRTPTracksWrite(groupID, trackType string, dur float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL