metric

package
v0.0.0-...-cfb183a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 7 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 {
	ConfigSuccess(uint64, bool)

	IncReloadCount()
	IncReloadErrorCount()

	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(statusPort int, registry *prometheus.Registry) (Collector, error)

NewCollector creates a new metric collector the for ingress controller

type DummyCollector

type DummyCollector struct{}

DummyCollector dummy implementation for mocks in tests

func (DummyCollector) ConfigSuccess

func (dc DummyCollector) ConfigSuccess(uint64, bool)

ConfigSuccess ...

func (DummyCollector) IncReloadCount

func (dc DummyCollector) IncReloadCount()

IncReloadCount ...

func (DummyCollector) IncReloadErrorCount

func (dc DummyCollector) IncReloadErrorCount()

IncReloadErrorCount ...

func (DummyCollector) RemoveMetrics

func (dc DummyCollector) RemoveMetrics(ingresses, endpoints []string)

RemoveMetrics ...

func (DummyCollector) SetSSLExpireTime

func (dc DummyCollector) SetSSLExpireTime([]*ingress.Server)

SetSSLExpireTime ...

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