metrics

package
v0.0.0-...-c34bea4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrometheusMetrics

func NewPrometheusMetrics(namespace string, registry *prometheus.Registry) *prometheusMetrics

NewPrometheusMetrics returns a new interface metrics implementation backed by Prometheus metrics.

func NewTriggerMetrics

func NewTriggerMetrics(namespace, name string) *triggerMetrics

Types

type NoOpMetrics

type NoOpMetrics struct{}

NoOpMetrics is a no-operation implementation of the metrics

func (*NoOpMetrics) AddIPAllocation

func (m *NoOpMetrics) AddIPAllocation(subnetID string, allocated int64)

func (*NoOpMetrics) AddIPRelease

func (m *NoOpMetrics) AddIPRelease(subnetID string, released int64)

func (*NoOpMetrics) IncAllocationAttempt

func (m *NoOpMetrics) IncAllocationAttempt(status, subnetID string)

func (*NoOpMetrics) IncResyncCount

func (m *NoOpMetrics) IncResyncCount()

func (*NoOpMetrics) K8sSyncTrigger

func (m *NoOpMetrics) K8sSyncTrigger() trigger.MetricsObserver

func (*NoOpMetrics) PoolMaintainerTrigger

func (m *NoOpMetrics) PoolMaintainerTrigger() trigger.MetricsObserver

func (*NoOpMetrics) ResyncTrigger

func (m *NoOpMetrics) ResyncTrigger() trigger.MetricsObserver

func (*NoOpMetrics) SetAllocatedIPs

func (m *NoOpMetrics) SetAllocatedIPs(typ string, allocated int)

func (*NoOpMetrics) SetAvailableIPsPerSubnet

func (m *NoOpMetrics) SetAvailableIPsPerSubnet(subnetID, availabilityZone string, available int)

func (*NoOpMetrics) SetAvailableInterfaces

func (m *NoOpMetrics) SetAvailableInterfaces(available int)

func (*NoOpMetrics) SetNodes

func (m *NoOpMetrics) SetNodes(category string, nodes int)

type NoOpMetricsObserver

type NoOpMetricsObserver struct{}

NoOpMetricsObserver is a no-operation implementation of the metrics observer

func (*NoOpMetricsObserver) PostRun

func (m *NoOpMetricsObserver) PostRun(callDuration, latency time.Duration, folds int)

MetricsObserver implementation

func (*NoOpMetricsObserver) QueueEvent

func (m *NoOpMetricsObserver) QueueEvent(reason string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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