metric

package
v5.0.3-release+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2019 License: LGPL-3.0 Imports: 2 Imported by: 0

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

	SetServerNum(httpNum, tcpNum int)
}

Collector defines the interface for a metric collector

func NewCollector

func NewCollector(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) SetServerNum

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

func (DummyCollector) Start

func (dc DummyCollector) Start()

Start ...

func (DummyCollector) Stop

func (dc DummyCollector) Stop()

Stop ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL