prommetrics

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 4 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 RecordScaledObjectError

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

RecordScaleObjectError counts the number of errors with the scaled object

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 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