kubernetesk8s.io/kubernetes/pkg/kubelet/metrics Index | Files

package metrics

import "k8s.io/kubernetes/pkg/kubelet/metrics"

Index

Variables

var (
	ImagePullLatency = prometheus.NewSummary(
		prometheus.SummaryOpts{
			Subsystem: kubeletSubsystem,
			Name:      "image_pull_latency_microseconds",
			Help:      "Image pull latency in microseconds.",
		},
	)
	ContainersPerPodCount = prometheus.NewSummary(
		prometheus.SummaryOpts{
			Subsystem: kubeletSubsystem,
			Name:      "containers_per_pod_count",
			Help:      "The number of containers per pod.",
		},
	)
	SyncPodLatency = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Subsystem: kubeletSubsystem,
			Name:      "sync_pod_latency_microseconds",
			Help:      "Latency in microseconds to sync a single pod. Broken down by operation type: create, update, or sync",
		},
		[]string{"operation_type"},
	)
	SyncPodsLatency = prometheus.NewSummary(
		prometheus.SummaryOpts{
			Subsystem: kubeletSubsystem,
			Name:      "sync_pods_latency_microseconds",
			Help:      "Latency in microseconds to sync all pods.",
		},
	)
	DockerOperationsLatency = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Subsystem: kubeletSubsystem,
			Name:      "docker_operations_latency_microseconds",
			Help:      "Latency in microseconds of Docker operations. Broken down by operation type.",
		},
		[]string{"operation_type"},
	)
)

Functions

func NewInstrumentedDockerInterface

func NewInstrumentedDockerInterface(dockerClient dockertools.DockerInterface) dockertools.DockerInterface

Creates an instrumented DockerInterface from an existing DockerInterface.

func Register

func Register(containerCache dockertools.DockerCache)

Register all metrics.

func SinceInMicroseconds

func SinceInMicroseconds(start time.Time) float64

Gets the time since the specified start in microseconds.

Types

type SyncPodType

type SyncPodType int
const (
	SyncPodCreate SyncPodType = iota
	SyncPodUpdate
	SyncPodSync
)

func (SyncPodType) String

func (self SyncPodType) String() string

Source Files

instrumented_docker.go metrics.go

Version
v0.15.0
Published
Apr 13, 2015
Platform
windows/amd64
Imports
6 packages
Last checked
3 minutes ago

Tools for package owners.