Documentation ¶
Index ¶
- type Collector
- type DummyCollector
- func (dc DummyCollector) IncAPIErrorCount(prometheus.Labels)
- func (dc DummyCollector) IncAPIRequestCount(prometheus.Labels)
- func (dc DummyCollector) IncAPIRetryCount(prometheus.Labels)
- func (dc DummyCollector) IncReconcileCount()
- func (dc DummyCollector) IncReconcileErrorCount(string)
- func (dc DummyCollector) RemoveMetrics(string)
- func (dc DummyCollector) SetManagedIngresses(map[string]int)
- func (dc DummyCollector) Start()
- func (dc DummyCollector) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { IncReconcileCount() IncReconcileErrorCount(string) SetManagedIngresses(map[string]int) IncAPIRequestCount(prometheus.Labels) IncAPIErrorCount(prometheus.Labels) IncAPIRetryCount(prometheus.Labels) RemoveMetrics(string) Start() Stop() }
Collector defines the interface for a metric collector
func NewCollector ¶
func NewCollector(registry *prometheus.Registry, ingressClass string) (Collector, error)
NewCollector creates a new metric collector the for ingress controller
type DummyCollector ¶
type DummyCollector struct{}
DummyCollector dummy implementation for mocks in tests
func (DummyCollector) IncAPIErrorCount ¶
func (dc DummyCollector) IncAPIErrorCount(prometheus.Labels)
IncAPIErrorCount ...
func (DummyCollector) IncAPIRequestCount ¶
func (dc DummyCollector) IncAPIRequestCount(prometheus.Labels)
IncAPIRequestCount ...
func (DummyCollector) IncAPIRetryCount ¶
func (dc DummyCollector) IncAPIRetryCount(prometheus.Labels)
IncAPIRetryCount ...
func (DummyCollector) IncReconcileCount ¶
func (dc DummyCollector) IncReconcileCount()
IncReloadCount ...
func (DummyCollector) IncReconcileErrorCount ¶
func (dc DummyCollector) IncReconcileErrorCount(string)
IncReloadErrorCount ...
func (DummyCollector) RemoveMetrics ¶
func (dc DummyCollector) RemoveMetrics(string)
RemoveMetrics ...
func (DummyCollector) SetManagedIngresses ¶
func (dc DummyCollector) SetManagedIngresses(map[string]int)
SetManagedIngresses ...
Click to show internal directories.
Click to hide internal directories.