metrics

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelWorkerName   string = "worker_name"
	LabelStage        string = "stage"
	StageAccepted     string = "accepted"
	StageDownloading  string = "downloading"
	StageEncoding     string = "encoding"
	StageUploading    string = "uploading"
	StageMetadataFill string = "metadata_fill"
	StageLibraryAdd   string = "library_add"
)

Variables

View Source
var (
	RequestsPublished = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "requests_published",
	})
	RequestsCompleted = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "requests_completed",
	}, []string{LabelWorkerName})
	Capacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "capacity",
	}, []string{LabelWorkerName})
	Running = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "running",
	}, []string{LabelWorkerName})

	TranscodedSeconds = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "transcoded_seconds",
	})
	TranscodedCount = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "transcoded_count",
	})
	SpentSeconds = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "spent_seconds",
	}, []string{LabelStage})
	StageRunning = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "stage_running",
	}, []string{LabelStage})

	InputBytes = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "input_bytes",
	})
	OutputBytes = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "output_bytes",
	})

	ErrorsCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "errors_count",
	}, []string{LabelStage})
)

Functions

func RegisterConductorMetrics

func RegisterConductorMetrics()

func RegisterWorkerMetrics

func RegisterWorkerMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

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