Documentation
¶
Index ¶
- type PrometheusMetricServer
- func (metricsServer PrometheusMetricServer) NewServer(address string, pattern string)
- func (metricsServer PrometheusMetricServer) RecordHPAScalerError(namespace string, scaledObject string, scaler string, scalerIndex int, ...)
- func (metricsServer PrometheusMetricServer) RecordHPAScalerMetric(namespace string, scaledObject string, scaler string, scalerIndex int, ...)
- func (metricsServer PrometheusMetricServer) RecordScaledObjectError(namespace string, scaledObject string, err error)
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
Click to show internal directories.
Click to hide internal directories.