Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector string
Collector specifies a single metrics collector identifier.
const ( // Subsystem is the namespace where the metrics are being registered. Subsystem = "container_runtime" // Operations is the key for CRI-O operation metrics. // Deprecated: in favour of OperationsTotal Operations Collector = crioPrefix + "operations" // OperationsLatencyTotal is the key for the operation latency metrics. // Deprecated: in favour of OperationsLatencySecondsTotal OperationsLatencyTotal Collector = crioPrefix + "operations_latency_microseconds_total" // OperationsLatency is the key for the operation latency metrics for each CRI call. // Deprecated: in favour of OperationsLatencySeconds OperationsLatency Collector = crioPrefix + "operations_latency_microseconds" // OperationsErrors is the key for the operation error metrics. // Deprecated: in favour of OperationsErrorsTotal OperationsErrors Collector = crioPrefix + "operations_errors" // ImagePullsByDigest is the key for CRI-O image pull metrics by digest. // Deprecated: in favour of ImagePullsBytesTotal ImagePullsByDigest Collector = crioPrefix + "image_pulls_by_digest" // ImagePullsByName is the key for CRI-O image pull metrics by name. // Deprecated: in favour of ImagePullsBytesTotal ImagePullsByName Collector = crioPrefix + "image_pulls_by_name" // ImagePullsByNameSkipped is the key for CRI-O skipped image pull metrics by name (skipped). // Deprecated: in favour of ImagePullsSkippedBytesTotal ImagePullsByNameSkipped Collector = crioPrefix + "image_pulls_by_name_skipped" // ImagePullsFailures is the key for failed image downloads in CRI-O. // Deprecated: in favour of ImagePullsFailureTotal ImagePullsFailures Collector = crioPrefix + "image_pulls_failures" // ImagePullsSuccesses is the key for successful image downloads in CRI-O. // Deprecated: in favour of ImagePullsSuccessTotal ImagePullsSuccesses Collector = crioPrefix + "image_pulls_successes" // ImagePullsLayerSize is the key for CRI-O image pull metrics per layer. ImagePullsLayerSize Collector = crioPrefix + "image_pulls_layer_size" // ImageLayerReuse is the key for the CRI-O image layer reuse metrics. // Deprecated: in favour of ImageLayerReuseTotal ImageLayerReuse Collector = crioPrefix + "image_layer_reuse" // ContainersOOMTotal is the key for the total CRI-O container out of memory metrics. ContainersOOMTotal Collector = crioPrefix + "containers_oom_total" // ContainersOOM is the key for the CRI-O container out of memory metrics per container name. // Deprecated: in favour of ContainersOOMCountTotal ContainersOOM Collector = crioPrefix + "containers_oom" // ProcessesDefunct is the key for the total number of defunct processes in a node. ProcessesDefunct Collector = crioPrefix + "processes_defunct" // OperationsTotal is the key for CRI-O operation metrics. OperationsTotal Collector = crioPrefix + "operations_total" // OperationsLatencySeconds is the key for the operation latency metrics for each CRI call. OperationsLatencySeconds Collector = crioPrefix + "operations_latency_seconds" // OperationsLatencySecondsTotal is the key for the operation latency metrics. OperationsLatencySecondsTotal Collector = crioPrefix + "operations_latency_seconds_total" // OperationsErrorsTotal is the key for the operation error metrics. OperationsErrorsTotal Collector = crioPrefix + "operations_errors_total" // ImagePullsBytesTotal is the key for CRI-O image pull metrics. ImagePullsBytesTotal Collector = crioPrefix + "image_pulls_bytes_total" // ImagePullsSkippedBytesTotal is the key for CRI-O skipped image pull metrics. ImagePullsSkippedBytesTotal Collector = crioPrefix + "image_pulls_skipped_bytes_total" // ImagePullsFailureTotal is the key for failed image downloads in CRI-O. ImagePullsFailureTotal Collector = crioPrefix + "image_pulls_failure_total" // ImagePullsSuccessTotal is the key for successful image downloads in CRI-O. ImagePullsSuccessTotal Collector = crioPrefix + "image_pulls_success_total" // ImageLayerReuseTotal is the key for the CRI-O image layer reuse metrics. ImageLayerReuseTotal Collector = crioPrefix + "image_layer_reuse_total" // ContainersOOMCountTotal is the key for the CRI-O container out of memory metrics per container name. ContainersOOMCountTotal Collector = crioPrefix + "containers_oom_count_total" // ContainersSeccompNotifierCountTotal is the key for the CRI-O container seccomp notifier metrics per container name and syscalls. ContainersSeccompNotifierCountTotal Collector = crioPrefix + "containers_seccomp_notifier_count_total" )
type Collectors ¶
type Collectors []Collector
Collectors specifies a list of metrics collectors.
func All ¶
func All() Collectors
All returns all available metrics collectors referenced by their name key.
func FromSlice ¶
func FromSlice(in []string) (c Collectors)
FromSlice converts a string slice to a Collectors type.
func (Collectors) Contains ¶
func (c Collectors) Contains(in Collector) bool
Contains returns true if the provided Collector `in` is part of the collectors instance.
func (Collectors) ToSlice ¶
func (c Collectors) ToSlice() (r []string)
ToSlice converts a Collectors type to a string slice.
Click to show internal directories.
Click to hide internal directories.