prometheus

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeImportCollector

func InitializeImportCollector(
	scheduled bool,
	cbCollectISCounts QueuedImageStreamFetcher,
)

InitializeImportCollector is supposed to be called by image import controllers when they are prepared to serve requests. Once all the controllers register their callbacks, the collector registers the metrics with the prometheus.

Types

type ImportErrorCounts

type ImportErrorCounts map[ImportErrorInfo]uint64

ImportErrorCounts serves as a container of counters for the error_count metric.

type ImportErrorInfo

type ImportErrorInfo struct {
	Registry string
	Reason   string
}

ImportErrorInfo contains dimensions of metricErrorCount

type ImportSuccessCounts

type ImportSuccessCounts map[string]uint64

ImportSuccessCounts maps registry hostname (with port) to the count of successful imports. It serves as a container of counters for the success_count metric.

type QueuedImageStreamFetcher

type QueuedImageStreamFetcher func() (ImportSuccessCounts, ImportErrorCounts, error)

QueuedImageStreamFetcher is a callback passed to the importStatusCollector that is supposed to be invoked by image import controller with the current state of counters.

Jump to

Keyboard shortcuts

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