metrics

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttrRequestTypeHTTP    = "http"
	AttrRequestTypeMessage = "message"
)

Attribute values:

View Source
const (
	MeterName = "kubeai.org"
)

Variables

View Source
var (
	InferenceRequestsActiveMetricName               = "kubeai.inference.requests.active"
	InferenceRequestsActive                         metric.Int64UpDownCounter
	InferenceRequestsHashLookupIterationsMetricName = "kubeai.inference.requests.hash.lookup.iterations"
	InferenceRequestsHashLookupIterations           metric.Int64Histogram
	InferenceRequestsHashLookupInitialMetricName    = "kubeai.inference.requests.hash.lookup.initial"
	InferenceRequestsHashLookupInitial              metric.Int64Counter
	InferenceRequestsHashLookupFinalMetricName      = "kubeai.inference.requests.hash.lookup.final"
	InferenceRequestsHashLookupFinal                metric.Int64Counter
	InferenceRequestsHashLookupDefaultMetricName    = "kubeai.inference.requests.hash.lookup.default"
	InferenceRequestsHashLookupDefault              metric.Int64Counter
)

Metrics used to autoscale models:

View Source
var (
	AttrRequestModel = attribute.Key("request.model")
	AttrRequestType  = attribute.Key("request.type")
	AttrEndpoint     = attribute.Key("endpoint")
)

Attributes:

Functions

func Init

func Init(meter metric.Meter) error

Init sets up global metric variables.

func OtelAttrToPromLabel

func OtelAttrToPromLabel(k attribute.Key) string

func OtelNameToPromName

func OtelNameToPromName(name string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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