metrics

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngressMonitorMetric

type IngressMonitorMetric struct {
	Namespace string
	Name      string
	Success   bool
}

IngressMonitorMetric represents a metric which will be used to capture information about an IngressMonitor.

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics is a wrapper for the metrics we use within the operator.

func New

func New(reg *prometheus.Registry) *Metrics

New returns a new metrics handler which registers all it's metrics with the specified prometheus Registry to broadcast it's captured values.

func (*Metrics) AddIngressMonitor

func (m *Metrics) AddIngressMonitor(obj IngressMonitorMetric)

AddIngressMonitor adds an extra IngressMonitor to the IngressMonitor Gauge for the namespace it's created in.

func (*Metrics) DeleteIngressMonitor

func (m *Metrics) DeleteIngressMonitor(obj IngressMonitorMetric)

DeleteIngressMonitor deletes an IngressMonitor to the IngressMonitor Gauge from the namespace it's deleted from.

func (*Metrics) SyncIngressMonitor

func (m *Metrics) SyncIngressMonitor(obj IngressMonitorMetric)

SyncIngressMonitor sets up the metrics for a sync action for an IngressMonitorMetric.

type Namespaced

type Namespaced interface {
	Namespace() string
}

Namespaced represent a type which has a namespace attached to it.

Jump to

Keyboard shortcuts

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