metrics

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImportFailures = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "imgctrl_import_failures",
			Help: "The total number of image import failures",
		},
	)
	ImportSuccesses = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "imgctrl_import_success",
			Help: "The total number of image import successes",
		},
	)
	PushSuccesses = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "imgctrl_image_pushes_success",
			Help: "The total number image pushes",
		},
	)
	PushFailures = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "imgctrl_image_pushes_failures",
			Help: "The total number failed image pushes",
		},
	)
	PushLatency = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Name:    "imgctrl_push_latency",
			Help:    "Time spent processsing image pulls",
			Buckets: []float64{5, 10, 15, 20, 30, 45, 60, 90, 120, 150, 180, 300, 600},
		},
	)
	PullSuccesses = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "imgctrl_image_pulls_success",
			Help: "The total number of image pulls",
		},
	)
	PullFailures = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "imgctrl_image_pulls_failures",
			Help: "The total number of failed image pulls",
		},
	)
	PullLatency = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Name:    "imgctrl_pull_latency",
			Help:    "Time spent processsing image pulls",
			Buckets: []float64{5, 10, 15, 20, 30, 45, 60, 90, 120, 150, 180, 300, 600},
		},
	)
	ActiveWorkers = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "imgctrl_active_import_workers",
			Help: "Current number of running image imports workers",
		},
	)
	MirrorLatency = prometheus.NewHistogram(
		prometheus.HistogramOpts{
			Name:    "imgctrl_mirror_latency",
			Help:    "Time spent mirroring images",
			Buckets: []float64{5, 10, 15, 20, 30, 45, 60, 90, 120, 150, 180, 300, 600},
		},
	)
)

Bellow follow a list of all registered metrics we have in our system. To add a new one remember to add it to this list and also to properly register it on init() func.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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