rainbond: github.com/goodrain/rainbond/gateway/metric Index | Files | Directories

package metric

import "github.com/goodrain/rainbond/gateway/metric"

Index

Package Files

dummy.go metric.go

type Collector Uses

type Collector interface {
    Start()
    Stop()
    SetHosts(sets.String)
    SetServerNum(httpNum, tcpNum int)
    RemoveHostMetric([]string)
}

Collector defines the interface for a metric collector

func NewCollector Uses

func NewCollector(gatewayHost string, registry *prometheus.Registry) (Collector, error)

NewCollector creates a new metric collector the for ingress controller

func NewDummyCollector Uses

func NewDummyCollector() Collector

NewDummyCollector returns a dummy metric collector

type DummyCollector Uses

type DummyCollector struct{}

DummyCollector dummy implementation for mocks in tests

func (DummyCollector) RemoveHostMetric Uses

func (dc DummyCollector) RemoveHostMetric([]string)

RemoveHostMetric -

func (DummyCollector) SetHosts Uses

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

SetHosts -

func (DummyCollector) SetServerNum Uses

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

SetServerNum -

func (DummyCollector) Start Uses

func (dc DummyCollector) Start()

Start ...

func (DummyCollector) Stop Uses

func (dc DummyCollector) Stop()

Stop ...

Directories

PathSynopsis
collectors

Package metric imports 4 packages (graph) and is imported by 2 packages. Updated 2019-07-07. Refresh now. Tools for package owners.