metrics

package
v0.0.0-...-84d1506 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

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

func (*Prometheus) Init

func (p *Prometheus) Init()

Init creates and registers the metrics.

func (*Prometheus) UpdateNamespaceAnnotations

func (p *Prometheus) UpdateNamespaceAnnotations(nsList []v1.Namespace, annotations []string)

func (*Prometheus) UpdatePodAnnotations

func (p *Prometheus) UpdatePodAnnotations(podList []v1.Pod, annotations []string)

type PrometheusInterface

type PrometheusInterface interface {
	UpdateNamespaceAnnotations([]v1.Namespace, []string)
	UpdatePodAnnotations([]v1.Pod, []string)
}

PrometheusInterface allows for mocking out the functionality of Prometheus when testing.

Jump to

Keyboard shortcuts

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