Documentation ¶
Index ¶
- type Collector
- type DummyCollector
- func (dc DummyCollector) ConfigSuccess(uint64, bool)
- func (dc DummyCollector) IncCheckCount(string, string)
- func (dc DummyCollector) IncCheckErrorCount(string, string)
- func (dc DummyCollector) IncReloadCount()
- func (dc DummyCollector) IncReloadErrorCount()
- func (dc DummyCollector) OnStartedLeading(electionID string)
- func (dc DummyCollector) OnStoppedLeading(electionID string)
- func (dc DummyCollector) RemoveMetrics(ingresses, endpoints []string)
- func (dc DummyCollector) SetHosts(hosts sets.String)
- func (dc DummyCollector) SetSSLExpireTime([]*ingress.Server)
- 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 { ConfigSuccess(uint64, bool) IncReloadCount() IncReloadErrorCount() OnStartedLeading(string) OnStoppedLeading(string) IncCheckCount(string, string) IncCheckErrorCount(string, string) RemoveMetrics(ingresses, endpoints []string) SetSSLExpireTime([]*ingress.Server) // SetHosts sets the hostnames that are being served by the ingress controller SetHosts(sets.String) Start() Stop() }
Collector defines the interface for a metric collector
func NewCollector ¶
func NewCollector(metricsPerHost bool, registry *prometheus.Registry) (Collector, error)
NewCollector creates a new metric collector the for ingress controller
func NewDummyCollector ¶
func NewDummyCollector() Collector
NewDummyCollector returns a dummy metric collector
type DummyCollector ¶
type DummyCollector struct{}
DummyCollector dummy implementation for mocks in tests
func (DummyCollector) ConfigSuccess ¶
func (dc DummyCollector) ConfigSuccess(uint64, bool)
ConfigSuccess ...
func (DummyCollector) IncCheckCount ¶
func (dc DummyCollector) IncCheckCount(string, string)
IncCheckCount ...
func (DummyCollector) IncCheckErrorCount ¶
func (dc DummyCollector) IncCheckErrorCount(string, string)
IncCheckErrorCount ...
func (DummyCollector) IncReloadErrorCount ¶
func (dc DummyCollector) IncReloadErrorCount()
IncReloadErrorCount ...
func (DummyCollector) OnStartedLeading ¶
func (dc DummyCollector) OnStartedLeading(electionID string)
OnStartedLeading indicates the pod is not the current leader
func (DummyCollector) OnStoppedLeading ¶
func (dc DummyCollector) OnStoppedLeading(electionID string)
OnStoppedLeading indicates the pod is not the current leader
func (DummyCollector) RemoveMetrics ¶
func (dc DummyCollector) RemoveMetrics(ingresses, endpoints []string)
RemoveMetrics ...
func (DummyCollector) SetSSLExpireTime ¶
func (dc DummyCollector) SetSSLExpireTime([]*ingress.Server)
SetSSLExpireTime ...
Click to show internal directories.
Click to hide internal directories.