Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BKNetworkSampler ¶
type BKNetworkSampler interface {
Sample() (*resourcestypes.NetworkSample, error)
}
type CommandSampler ¶
type CommandSampler struct {
// contains filtered or unexported fields
}
CommandSampler uses the same CPU and memory metrics as withExec, without requiring a network namespace or an eBPF network sampler.
func NewCommandSampler ¶
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
func NewSampler ¶
func (*Sampler) DisableCgroupSamples ¶
func (s *Sampler) DisableCgroupSamples()
Do not present container-only usage as an inclusive exec total if a mount helper could not join the execution's cgroup.
func (*Sampler) SampleOther ¶
SampleOther reads every sampler not read by SampleUsage.
func (*Sampler) SampleUsage ¶
SampleUsage reads total CPU and current memory, the readings workload export copies.
func (*Sampler) SetMountNetwork ¶
func (s *Sampler) SetMountNetwork(mounts BKNetworkSampler)
Mount counters start at zero for this exec; unlike a pooled veth, they must not be baselined after mount setup has already transferred data.
Click to show internal directories.
Click to hide internal directories.