kubelet

package
v0.0.0-...-3dd6856 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotCompiled is returned if kubelet support is not compiled in.
	// User classes should handle that case as gracefully as possible.
	ErrNotCompiled = errors.New("kubelet support not compiled in")

	// KubePodPrefix is the entity prefix for Kubernetes pods
	KubePodPrefix = "kubernetes_pod://"
)

Functions

func ParseMetricFromRaw

func ParseMetricFromRaw(raw []byte, metric string) (string, error)

ParseMetricFromRaw parses a metric from raw prometheus text

func PodUIDToEntityName

func PodUIDToEntityName(uid string) string

PodUIDToEntityName returns a prefixed entity name from a pod UID

func TrimRuntimeFromCID

func TrimRuntimeFromCID(cid string) string

TrimRuntimeFromCID takes a full containerID with runtime prefix and only returns the short cID, compatible with a docker container ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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