Back to godoc.org

Package metric

v5.2.0-release+incompa...
Latest Go to latest

The latest major version is .

Published: Apr 16, 2020 | License: LGPL-3.0 | Module: github.com/goodrain/rainbond

Index

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

func (dc DummyCollector) SetHosts(hosts sets.String)

SetHosts -

func (DummyCollector) SetServerNum

func (dc DummyCollector) SetServerNum(httpNum, tcpNum int)

SetServerNum -

func (DummyCollector) Start

func (dc DummyCollector) Start()

Start ...

func (DummyCollector) Stop

func (dc DummyCollector) Stop()

Stop ...

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier