Documentation ¶
Index ¶
- Constants
- type ControllerBusinessMetric
- func (cbm *ControllerBusinessMetric) Collect(ch chan<- prometheus.Metric)
- func (cbm *ControllerBusinessMetric) DecrementQueueLength(controller string)
- func (cbm *ControllerBusinessMetric) Describe(ch chan<- *prometheus.Desc)
- func (cbm *ControllerBusinessMetric) IncrementQueueLength(controller string)
- func (cbm *ControllerBusinessMetric) RecordError(controller string)
- func (cbm *ControllerBusinessMetric) RecordLatency(controller string, reconcileTime time.Duration)
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
Click to show internal directories.
Click to hide internal directories.