metrics

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 3 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
)

Metrics used to autoscale models:

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

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