metrics

package
v0.0.0-...-8680cc4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GRPCMetrics create some standard server metrics.
	GRPCMetrics = grpc_prometheus.NewServerMetrics()

	// PodActionsCounter records the number of pod operations.
	PodActionsCounter = metrics.NewLabelCounter(subsystemCRI, "pod_actions_counter", "The number of pod operations", "action")

	// PodSuccessActionsCounter records the number of pod success operations.
	PodSuccessActionsCounter = metrics.NewLabelCounter(subsystemCRI, "pod_success_actions_counter", "The number of pod success operations", "action")

	// PodActionsTimer records the time cost of each pod action.
	PodActionsTimer = metrics.NewLabelTimer(subsystemCRI, "pod_actions", "The number of seconds it takes to process each pod action", "action")

	// ContainerActionsCounter records the number of container operations.
	ContainerActionsCounter = metrics.NewLabelCounter(subsystemCRI, "container_actions_counter", "The number of container operations", "action")

	// ContainerSuccessActionsCounter records the number of container success operations.
	ContainerSuccessActionsCounter = metrics.NewLabelCounter(subsystemCRI, "container_success_actions_counter", "The number of container success operations", "action")

	// ContainerActionsTimer records the time cost of each container action.
	ContainerActionsTimer = metrics.NewLabelTimer(subsystemCRI, "container_actions", "The number of seconds it takes to process each container action", "action")

	// ImagePullSummary records the summary of pulling image latency.
	ImagePullSummary = metrics.NewLabelSummary(subsystemCRI, "image_pull_latency_microseconds", "Latency in microseconds to pull a image.", "image")

	// ImageActionsCounter records the number of image operations.
	ImageActionsCounter = metrics.NewLabelCounter(subsystemCRI, "image_actions_counter", "The number of image operations", "action")

	// ImageSuccessActionsCounter the number of image success operations.
	ImageSuccessActionsCounter = metrics.NewLabelCounter(subsystemCRI, "image_success_actions_counter", "The number of image success operations", "action")

	// ImageActionsTimer records the time cost of each image action.
	ImageActionsTimer = metrics.NewLabelTimer(subsystemCRI, "image_actions", "The number of seconds it takes to process each image action", "action")

	// VolumeActionsCounter records the number of volume operations.
	VolumeActionsCounter = metrics.NewLabelCounter(subsystemCRI, "volume_actions_counter", "The number of volume operations", "action")

	// VolumeSuccessActionsCounter the number of volume success operations.
	VolumeSuccessActionsCounter = metrics.NewLabelCounter(subsystemCRI, "volume_success_actions_counter", "The number of volume success operations", "action")

	// VolumeActionsTimer records the time cost of each volume action.
	VolumeActionsTimer = metrics.NewLabelTimer(subsystemCRI, "volume_actions", "The number of seconds it takes to process each volume action", "action")

	// RuntimeActionsCounter records the number of runtime operations.
	RuntimeActionsCounter = metrics.NewLabelCounter(subsystemCRI, "runtime_actions_counter", "The number of runtime operations", "action")

	// RuntimeSuccessActionsCounter the number of runtime success operations.
	RuntimeSuccessActionsCounter = metrics.NewLabelCounter(subsystemCRI, "runtime_success_actions_counter", "The number of runtime success operations", "action")

	// RuntimeActionsTimer records the time cost of each runtime action.
	RuntimeActionsTimer = metrics.NewLabelTimer(subsystemCRI, "runtime_actions", "The number of seconds it takes to process each runtime action", "action")
)

Functions

func Register

func Register()

Register all metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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