prometheus

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageCounter            *prometheus.CounterVec
	MessageBytes              *prometheus.CounterVec
	ServiceOperationCounter   *prometheus.CounterVec
	TwirpRequestStatusCounter *prometheus.CounterVec
)

Functions

func AddConnection added in v1.2.1

func AddConnection(direction Direction)

func AddParticipant

func AddParticipant()

func AddPublishAttempt added in v1.3.4

func AddPublishAttempt(kind string)

func AddPublishSuccess added in v1.3.4

func AddPublishSuccess(kind string)

func AddPublishedTrack

func AddPublishedTrack(kind string)

func GetUpdatedNodeStats added in v0.15.4

func GetUpdatedNodeStats(prev *livekit.NodeStats, prevAverage *livekit.NodeStats) (*livekit.NodeStats, bool, error)

func IncrementBytes

func IncrementBytes(direction Direction, count uint64, retransmit bool)

func IncrementPackets

func IncrementPackets(direction Direction, count uint64, retransmit bool)

func IncrementParticipantJoin added in v1.1.0

func IncrementParticipantJoin(join uint32)

func IncrementParticipantJoinFail added in v1.3.4

func IncrementParticipantJoinFail(join uint32)

func IncrementParticipantRtcConnected added in v1.3.4

func IncrementParticipantRtcConnected(join uint32)

func IncrementParticipantRtcInit added in v1.3.4

func IncrementParticipantRtcInit(join uint32)

func IncrementRTCP added in v0.14.2

func IncrementRTCP(direction Direction, nack, pli, fir uint32)

func Init added in v1.2.0

func Init(nodeID string, nodeType livekit.NodeType) error

func RecordForwardJitter added in v1.6.2

func RecordForwardJitter(_, jitterAvg uint32)

func RecordForwardLatency added in v1.6.2

func RecordForwardLatency(_, latencyAvg uint32)

func RecordJitter added in v1.3.4

func RecordJitter(direction Direction, trackSource livekit.TrackSource, trackType livekit.TrackType, jitter uint32)

func RecordPacketLoss added in v1.3.4

func RecordPacketLoss(direction Direction, trackSource livekit.TrackSource, trackType livekit.TrackType, lost, total uint32)

func RecordPacketOutOfOrder added in v1.8.0

func RecordPacketOutOfOrder(direction Direction, trackSource livekit.TrackSource, trackType livekit.TrackType, ooo, total uint32)

func RecordPublishTime added in v1.8.0

func RecordPublishTime(source livekit.TrackSource, trackType livekit.TrackType, d time.Duration, sdk livekit.ClientInfo_SDK, kind livekit.ParticipantInfo_Kind)

func RecordQuality added in v1.4.3

func RecordQuality(rating livekit.ConnectionQuality, score float32, numUpDrops int, numDownDrops int)

func RecordRTT added in v1.3.4

func RecordRTT(direction Direction, trackSource livekit.TrackSource, trackType livekit.TrackType, rtt uint32)

func RecordSessionDuration added in v1.6.3

func RecordSessionDuration(protocolVersion int, d time.Duration)

func RecordSessionStartTime added in v1.5.3

func RecordSessionStartTime(protocolVersion int, d time.Duration)

func RecordSubscribeTime added in v1.8.0

func RecordSubscribeTime(source livekit.TrackSource, trackType livekit.TrackType, d time.Duration, sdk livekit.ClientInfo_SDK, kind livekit.ParticipantInfo_Kind, count int)

func RecordTrackSubscribeAttempt added in v1.3.4

func RecordTrackSubscribeAttempt()

func RecordTrackSubscribeFailure added in v1.3.4

func RecordTrackSubscribeFailure(err error, isUserError bool)

func RecordTrackSubscribeSuccess added in v1.3.4

func RecordTrackSubscribeSuccess(kind string)

func RecordTrackUnsubscribed added in v1.3.4

func RecordTrackUnsubscribed(kind string)

func RoomEnded

func RoomEnded(startedAt time.Time)

func RoomStarted

func RoomStarted()

func SubConnection added in v1.2.1

func SubConnection(direction Direction)

func SubParticipant

func SubParticipant()

func SubPublishedTrack

func SubPublishedTrack(kind string)

Types

type Direction

type Direction string
const (
	Incoming Direction = "incoming"
	Outgoing Direction = "outgoing"
)

Jump to

Keyboard shortcuts

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