prommetrics

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterTriggerAuthenticationResource = "cluster_trigger_authentication"
	TriggerAuthenticationResource        = "trigger_authentication"
	ScaledObjectResource                 = "scaled_object"
	ScaledJobResource                    = "scaled_job"

	DefaultPromMetricsNamespace = "keda"
)

Variables

This section is empty.

Functions

func DecrementCRDTotal

func DecrementCRDTotal(crdType, namespace string)

func DecrementTriggerTotal

func DecrementTriggerTotal(triggerType string)

func IncrementCRDTotal

func IncrementCRDTotal(crdType, namespace string)

func IncrementTriggerTotal

func IncrementTriggerTotal(triggerType string)

func RecordBuildInfo added in v2.11.0

func RecordBuildInfo()

RecordBuildInfo publishes information about KEDA version and runtime info through an info metric (gauge).

func RecordScalableObjectLatency added in v2.11.0

func RecordScalableObjectLatency(namespace string, name string, isScaledObject bool, value float64)

RecordScaledObjectLatency create a measurement of the latency executing scalable object loop

func RecordScaledObjectError

func RecordScaledObjectError(namespace string, scaledObject string, err error)

RecordScaleObjectError counts the number of errors with the scaled object

func RecordScalerActive added in v2.10.0

func RecordScalerActive(namespace string, scaledObject string, scaler string, scalerIndex int, metric string, active bool)

RecordScalerActive create a measurement of the activity of the scaler

func RecordScalerError

func RecordScalerError(namespace string, scaledObject string, scaler string, scalerIndex int, metric string, err error)

RecordScalerError counts the number of errors occurred in trying get an external metric used by the HPA

func RecordScalerLatency added in v2.10.0

func RecordScalerLatency(namespace string, scaledObject string, scaler string, scalerIndex int, metric string, value float64)

RecordScalerLatency create a measurement of the latency to external metric

func RecordScalerMetric

func RecordScalerMetric(namespace string, scaledObject string, scaler string, scalerIndex int, metric string, value float64)

RecordScalerMetric create a measurement of the external metric used by the HPA

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