metric

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SbuController = "service_binding_usage_controller"
	UkController  = "usage_kind_controller"
)

Unique Names of controller type for which statistics are collected

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerBusinessMetric

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

ControllerBusinessMetric represents metrics exporter

func NewControllerBusinessMetric

func NewControllerBusinessMetric() *ControllerBusinessMetric

NewControllerBusinessMetric returns new ControllerBusinessMetric

func (*ControllerBusinessMetric) Collect

func (cbm *ControllerBusinessMetric) Collect(ch chan<- prometheus.Metric)

Collect implementation of prometheus.Collector interface method

func (*ControllerBusinessMetric) DecrementQueueLength

func (cbm *ControllerBusinessMetric) DecrementQueueLength(controller string)

DecrementQueueLength decrements gauge to estimate queue length

func (*ControllerBusinessMetric) Describe

func (cbm *ControllerBusinessMetric) Describe(ch chan<- *prometheus.Desc)

Describe implementation of prometheus.Collector interface method

func (*ControllerBusinessMetric) IncrementQueueLength

func (cbm *ControllerBusinessMetric) IncrementQueueLength(controller string)

IncrementQueueLength increments gauge to estimate queue length

func (*ControllerBusinessMetric) RecordError

func (cbm *ControllerBusinessMetric) RecordError(controller string)

RecordError counts all errors during reconcile process

func (*ControllerBusinessMetric) RecordLatency

func (cbm *ControllerBusinessMetric) RecordLatency(controller string, reconcileTime time.Duration)

RecordLatency saves probe to estimate reconcile process latency

Jump to

Keyboard shortcuts

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