metrics

package
v0.0.0-...-cf73954 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const MB = 1 << 20

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorEvent

type ErrorEvent struct {
	Status   int
	ErrMsg   string
	Duration time.Duration
}

type MetricsCollector

type MetricsCollector interface {
	PostSuccess(event SuccessEvent)
	PostFailure(event ErrorEvent)
	RecordJobPickedUp(requestCount int)
}

func NewPrometheusMetricsCollector

func NewPrometheusMetricsCollector(r prometheus.Registerer) MetricsCollector

type OrchestratorMetrics

type OrchestratorMetrics struct {
	// contains filtered or unexported fields
}

func NewOrchestratorMetrics

func NewOrchestratorMetrics(r prometheus.Registerer) *OrchestratorMetrics

func (*OrchestratorMetrics) RecordJobDispatched

func (o *OrchestratorMetrics) RecordJobDispatched(requestCount int)

func (*OrchestratorMetrics) ResetTargetPodUsage

func (o *OrchestratorMetrics) ResetTargetPodUsage()

func (*OrchestratorMetrics) SetRegisteredExecutors

func (o *OrchestratorMetrics) SetRegisteredExecutors(count int)

func (*OrchestratorMetrics) SetTargetPodUsage

func (o *OrchestratorMetrics) SetTargetPodUsage(namespace string, podName string, cpuMillicores int64, memoryBytes int64)

type PrometheusMetricsCollector

type PrometheusMetricsCollector struct {
	// contains filtered or unexported fields
}

func (*PrometheusMetricsCollector) PostFailure

func (b *PrometheusMetricsCollector) PostFailure(event ErrorEvent)

func (*PrometheusMetricsCollector) PostSuccess

func (b *PrometheusMetricsCollector) PostSuccess(event SuccessEvent)

func (*PrometheusMetricsCollector) RecordJobPickedUp

func (b *PrometheusMetricsCollector) RecordJobPickedUp(requestCount int)

type SuccessEvent

type SuccessEvent struct {
	Status        int
	ResponseSize  int64
	Duration      time.Duration
	FirstByteTime time.Duration
}

Jump to

Keyboard shortcuts

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