Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Start() Stop() SetHosts(sets.String) SetServerNum(httpNum, tcpNum int) RemoveHostMetric([]string) }
Collector defines the interface for a metric collector
func NewCollector ¶
func NewCollector(gatewayHost string, 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) RemoveHostMetric ¶
func (dc DummyCollector) RemoveHostMetric([]string)
RemoveHostMetric -
func (DummyCollector) SetServerNum ¶
func (dc DummyCollector) SetServerNum(httpNum, tcpNum int)
SetServerNum -
Click to show internal directories.
Click to hide internal directories.