Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SoftIRQEvents = []string{config.IRQNetTXLabel, config.IRQNetRXLabel, config.IRQBlockLabel}
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter interface { HardwareCountersEnabled() bool Detach() CollectProcesses() ([]ProcessBPFMetrics, error) CollectCPUFreq() (map[int32]uint64, error) GetEnabledBPFHWCounters() []string GetEnabledBPFSWCounters() []string }
func NewExporter ¶
func NewMockExporter ¶
type ProcessBPFMetrics ¶
type ProcessBPFMetrics struct { CGroupID uint64 ThreadPID uint64 /* thread id */ PID uint64 /* TGID of the threads, i.e. user space pid */ ProcessRunTime uint64 /* in ms */ TaskClockTime uint64 /* in ms */ CPUCycles uint64 CPUInstr uint64 CacheMisses uint64 PageCacheHit uint64 VecNR [config.MaxIRQ]uint16 // irq counter, 10 is the max number of irq vectors Command [16]byte }
must be in sync with bpf program
Click to show internal directories.
Click to hide internal directories.