prometheus

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func AddConnection

func AddConnection(direction Direction)

func AddParticipant

func AddParticipant()

func AddPublishedTrack

func AddPublishedTrack(kind string)

func AddSubscribedTrack

func AddSubscribedTrack(kind string)

func GetUpdatedNodeStats

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

func IncrementParticipantJoin(join uint32)

func IncrementRTCP

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

func Init

func Init(nodeID string)

func RoomEnded

func RoomEnded(startedAt time.Time)

func RoomStarted

func RoomStarted()

func SubConnection

func SubConnection(direction Direction)

func SubParticipant

func SubParticipant()

func SubPublishedTrack

func SubPublishedTrack(kind string)

func SubSubscribedTrack

func SubSubscribedTrack(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