metrics

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	*http.Server
	// contains filtered or unexported fields
}

Metrics is used to expose container image version checks as prometheus metrics.

func New

func New(log *logrus.Entry) *Metrics

func (*Metrics) AddImage

func (m *Metrics) AddImage(namespace, pod, container, containerType, imageURL string, isLatest bool, currentVersion, latestVersion string)

func (*Metrics) RemoveImage

func (m *Metrics) RemoveImage(namespace, pod, container, containerType string)

func (*Metrics) Run

func (m *Metrics) Run(servingAddress string) error

Run will run the metrics server.

func (*Metrics) Shutdown

func (m *Metrics) Shutdown() error

Jump to

Keyboard shortcuts

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