metric

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: UPL-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EndpointPath = "/metric"

Variables

This section is empty.

Functions

func InitMetricsExporter

func InitMetricsExporter(metricsBackend string) (*prometheus.Registry, error)

func RegisterMetrics

func RegisterMetrics(reg *prometheus.Registry, mux *http.ServeMux)

func ServeMetrics

func ServeMetrics(port int, mux *http.ServeMux)

Types

type IngressCollector

type IngressCollector struct {
	prometheus.Collector
	// contains filtered or unexported fields
}

func NewIngressCollector

func NewIngressCollector(controllerClass string, reg *prometheus.Registry) *IngressCollector

func (*IngressCollector) AddBackendCreationTime

func (ic *IngressCollector) AddBackendCreationTime(f float64)

func (*IngressCollector) AddIngressBackendSyncTime

func (ic *IngressCollector) AddIngressBackendSyncTime(f float64)

func (*IngressCollector) AddIngressListenerSyncTime

func (ic *IngressCollector) AddIngressListenerSyncTime(f float64)

func (*IngressCollector) AddIngressSyncTime

func (ic *IngressCollector) AddIngressSyncTime(f float64)

func (*IngressCollector) AddStateBuildTime

func (ic *IngressCollector) AddStateBuildTime(f float64)

func (IngressCollector) Collect

func (ic IngressCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (IngressCollector) Describe

func (ic IngressCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector

func (*IngressCollector) IncrementIngressAddOperation

func (ic *IngressCollector) IncrementIngressAddOperation()

func (*IngressCollector) IncrementIngressDeleteOperation

func (ic *IngressCollector) IncrementIngressDeleteOperation()

func (*IngressCollector) IncrementIngressUpdateOperation

func (ic *IngressCollector) IncrementIngressUpdateOperation()

func (*IngressCollector) IncrementSyncCount

func (ic *IngressCollector) IncrementSyncCount()

Jump to

Keyboard shortcuts

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