metric

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix                            = "keda_otel_scaler_"
	KedaOtelScalerValue               = Prefix + "metric_value"
	KedaOtelScalerValueClamped        = Prefix + "metric_value_clamped"
	KedaOtelScalerMetricPointsWritten = Prefix + "metric_points_written"
	KedaOtelScalerMetricPointsRead    = Prefix + "metric_points_read"
	KedaOtelScalerRuntimeInfo         = Prefix + "runtime_info"
)

Variables

This section is empty.

Functions

func NewMetricStore

func NewMetricStore(stalePeriodSeconds int) types.MemStore

func NewParser

func NewParser() types.Parser

Types

type InternalMetrics

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

func Metrics

func Metrics() *InternalMetrics

func (*InternalMetrics) IncMetricRead

func (m *InternalMetrics) IncMetricRead(name string)

func (*InternalMetrics) IncMetricWrite

func (m *InternalMetrics) IncMetricWrite(name string)

func (*InternalMetrics) Init

func (m *InternalMetrics) Init()

func (*InternalMetrics) Register

func (m *InternalMetrics) Register() (err error)

func (*InternalMetrics) SetMetricValue

func (m *InternalMetrics) SetMetricValue(name, labels, timeOp, aggregation string, value float64)

func (*InternalMetrics) SetMetricValueClamped

func (m *InternalMetrics) SetMetricValueClamped(name, labels, timeOp, aggregation, scaledObject, namespace string, value float64)

func (*InternalMetrics) SetRuntimeInfo

func (m *InternalMetrics) SetRuntimeInfo(cfg *util.Config) prometheus.Labels

func (*InternalMetrics) Unregister

func (m *InternalMetrics) Unregister()

Unregister metrics

Jump to

Keyboard shortcuts

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