kubernetes: github.com/erimatnor/kubernetes/pkg/kubelet/metrics Index | Files

package metrics

import "github.com/erimatnor/kubernetes/pkg/kubelet/metrics"

Index

Package Files

metrics.go

Variables

var (
    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"},
    )
)

func Register Uses

func Register(containerCache kubecontainer.RuntimeCache)

Register all metrics.

func SinceInMicroseconds Uses

func SinceInMicroseconds(start time.Time) float64

Gets the time since the specified start in microseconds.

type SyncPodType Uses

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

func (SyncPodType) String Uses

func (sp SyncPodType) String() string

Package metrics imports 5 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.