metrics

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageLocal  = "local"
	StorageRemote = "remote"
)

Variables

View Source
var (
	DownloadedSizeMB = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "downloaded_size_mb",
	})
	S3UploadedSizeMB = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "s3_uploaded_size_mb",
	})

	EncodedDurationSeconds = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "encoded_duration_seconds",
	})
	EncodedBitrateMbit = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "encoded_bitrate_mbit",
			Buckets: []float64{0.5, 1, 1.5, 2, 2.5, 3, 4, 5, 6, 7, 8, 10, 15, 20, 25, 30},
		},
		[]string{"resolution"},
	)

	StreamsRequestedCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "streams_requested_count",
	}, []string{"storage"})

	HTTPAPIRequests = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "http_api_requests",
			Help:    "Method call latency distributions",
			Buckets: []float64{0.01, 0.025, 0.05, 0.1, 0.25, 0.4, 1, 2, 5, 10},
		},
		[]string{"status_code"},
	)
)

Functions

func RegisterMetrics

func RegisterMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

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