Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PodAndContainerIDNotFoundError = errors.Sentinel("could not find pod or container id")
Functions ¶
func New ¶
func New(opts ...CollectorOption) metadatax.Collector
Types ¶
type Cgroup ¶
func GetCgroupsForPID ¶
type CollectorOption ¶
type CollectorOption func(*collector)
func CollectorWithMetadataContainerInitFunc ¶
func CollectorWithMetadataContainerInitFunc(fn func() metadatax.MetadataContainer) CollectorOption
func WithKubeletClient ¶
func WithKubeletClient(client kubelet.Client) CollectorOption
func WithPodResolver ¶
func WithPodResolver(resolver PodResolver) CollectorOption
Click to show internal directories.
Click to hide internal directories.