metrics

package
v0.0.0-...-ec72bf4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IMetrics ipam.MetricsAPI
)

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) SetNetResourceSets

func (m *NoOpMetrics) SetNetResourceSets(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(owner string, callDuration, latency time.Duration, folds int)

MetricsObserver implementation

func (*NoOpMetricsObserver) QueueEvent

func (m *NoOpMetricsObserver) QueueEvent(owner string, reason string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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