prometheus

package
v3.11.16-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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