metric

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.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 {
	IncReconcileCount()
	IncReconcileErrorCount(string)
	SetManagedIngresses(map[string]int)

	IncAPIRequestCount(prometheus.Labels)
	IncAPIErrorCount(prometheus.Labels)
	IncAPIRetryCount(prometheus.Labels)

	RemoveMetrics(string)

	Start()
	Stop()
}

Collector defines the interface for a metric collector

func NewCollector

func NewCollector(registry *prometheus.Registry, ingressClass string) (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) IncAPIErrorCount

func (dc DummyCollector) IncAPIErrorCount(prometheus.Labels)

IncAPIErrorCount ...

func (DummyCollector) IncAPIRequestCount

func (dc DummyCollector) IncAPIRequestCount(prometheus.Labels)

IncAPIRequestCount ...

func (DummyCollector) IncAPIRetryCount

func (dc DummyCollector) IncAPIRetryCount(prometheus.Labels)

IncAPIRetryCount ...

func (DummyCollector) IncReconcileCount

func (dc DummyCollector) IncReconcileCount()

IncReloadCount ...

func (DummyCollector) IncReconcileErrorCount

func (dc DummyCollector) IncReconcileErrorCount(string)

IncReloadErrorCount ...

func (DummyCollector) RemoveMetrics

func (dc DummyCollector) RemoveMetrics(string)

RemoveMetrics ...

func (DummyCollector) SetManagedIngresses

func (dc DummyCollector) SetManagedIngresses(map[string]int)

SetManagedIngresses ...

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