Documentation ¶
Index ¶
- func NewPrometheusMetrics(namespace string, registry *prometheus.Registry) *prometheusMetrics
- func NewTriggerMetrics(namespace, name string) *triggerMetrics
- type NoOpMetrics
- func (m *NoOpMetrics) AddIPAllocation(subnetID string, allocated int64)
- func (m *NoOpMetrics) AddIPRelease(subnetID string, released int64)
- func (m *NoOpMetrics) IncAllocationAttempt(status, subnetID string)
- func (m *NoOpMetrics) IncResyncCount()
- func (m *NoOpMetrics) K8sSyncTrigger() trigger.MetricsObserver
- func (m *NoOpMetrics) PoolMaintainerTrigger() trigger.MetricsObserver
- func (m *NoOpMetrics) ResyncTrigger() trigger.MetricsObserver
- func (m *NoOpMetrics) SetAllocatedIPs(typ string, allocated int)
- func (m *NoOpMetrics) SetAvailableIPsPerSubnet(subnetID, availabilityZone string, available int)
- func (m *NoOpMetrics) SetAvailableInterfaces(available int)
- func (m *NoOpMetrics) SetNodes(category string, nodes int)
- type NoOpMetricsObserver
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)
Click to show internal directories.
Click to hide internal directories.