Documentation ¶
Index ¶
- Variables
- func KubeContainerIDToTaggerEntityID(ctrID string) (string, error)
- func KubePodUIDToTaggerEntityID(podUID string) (string, error)
- func ParseMetricFromRaw(raw []byte, metric string) (string, error)
- func PodUIDToEntityName(uid string) string
- func PodUIDToTaggerEntityName(uid string) string
- func TrimRuntimeFromCID(cid string) string
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://" // 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 )
Functions ¶
func KubeContainerIDToTaggerEntityID ¶
KubeContainerIDToTaggerEntityID builds an entity ID from a container ID coming from the pod status (i.e. including the <runtime>:// prefix).
func KubePodUIDToTaggerEntityID ¶
KubePodUIDToTaggerEntityID builds an entity ID from a pod UID coming from the pod status (i.e. including the <runtime>:// prefix).
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
func TrimRuntimeFromCID ¶
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.
Click to show internal directories.
Click to hide internal directories.