adapter

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusMetricServer

type PrometheusMetricServer struct{}

PrometheusMetricServer the type of MetricsServer

func (PrometheusMetricServer) NewServer

func (metricsServer PrometheusMetricServer) NewServer(address string, pattern string)

NewServer creates a new http serving instance of prometheus metrics

func (PrometheusMetricServer) RecordHPAScalerError

func (metricsServer PrometheusMetricServer) RecordHPAScalerError(namespace string, scaledObject string, scaler string, scalerIndex int, metric string, err error)

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

func (PrometheusMetricServer) RecordHPAScalerMetric

func (metricsServer PrometheusMetricServer) RecordHPAScalerMetric(namespace string, scaledObject string, scaler string, scalerIndex int, metric string, value float64)

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

func (PrometheusMetricServer) RecordScaledObjectError

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

RecordScalerObjectError counts the number of errors with the scaled object

Jump to

Keyboard shortcuts

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