Documentation ¶
Overview ¶
Package kubelet provides a client for the Kubelet API.
Index ¶
- Variables
- func GetMetadata() (map[string]string, error)
- func KubeContainerIDToTaggerEntityID(ctrID string) (string, error)
- func KubeIDToTaggerEntityID(entityName string) (string, error)
- func KubePodUIDToTaggerEntityID(podUID string) (string, error)
- func NodeUIDToTaggerEntityName(uid string) string
- func ParseMetricFromRaw(raw []byte, metric string) (string, error)
- func PodUIDToEntityName(uid string) string
- func PodUIDToTaggerEntityName(uid string) string
Constants ¶
This section is empty.
Variables ¶
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") // KubePodEntityName is the entity name for Kubernetes pods. KubePodEntityName = "kubernetes_pod" // KubePodPrefix is the entity prefix for Kubernetes pods KubePodPrefix = KubePodEntityName + containers.EntitySeparator // KubePodTaggerEntityName is the tagger entity name for Kubernetes pods KubePodTaggerEntityName = "kubernetes_pod_uid" // KubePodTaggerEntityPrefix is the tagger entity prefix for Kubernetes pods KubePodTaggerEntityPrefix = KubePodTaggerEntityName + containers.EntitySeparator // KubeNodeTaggerEntityName is the tagger entity name for Kubernetes nodes KubeNodeTaggerEntityName = "kubernetes_node_uid" // KubeNodeTaggerEntityPrefix is the tagger entity prefix for Kubernetes pods KubeNodeTaggerEntityPrefix = KubeNodeTaggerEntityName + containers.EntitySeparator )
Functions ¶
func GetMetadata ¶
GetMetadata returns metadata about the kubelet runtime such as the kubelet_version.
func KubeContainerIDToTaggerEntityID ¶
KubeContainerIDToTaggerEntityID builds an entity ID from a container ID coming from the pod status (i.e. including the <runtime>:// prefix).
func KubeIDToTaggerEntityID ¶
KubeIDToTaggerEntityID builds a tagger entity ID from an entity ID belonging to a container or pod.
func KubePodUIDToTaggerEntityID ¶
KubePodUIDToTaggerEntityID builds an entity ID from a pod UID coming from the pod status (i.e. including the <runtime>:// prefix).
func NodeUIDToTaggerEntityName ¶
NodeUIDToTaggerEntityName returns a prefixed tagger entity name from a node UID
func ParseMetricFromRaw ¶
ParseMetricFromRaw parses a metric from raw prometheus text
func PodUIDToEntityName ¶
PodUIDToEntityName returns a prefixed entity name from a pod UID
func PodUIDToTaggerEntityName ¶
PodUIDToTaggerEntityName returns a prefixed tagger entity name from a pod UID
Types ¶
This section is empty.