Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEBPFProg ¶
func GetEBPFProg() []byte
Types ¶
type OOMEvent ¶
type OOMEvent struct {
Pid uint32 `json:"pid"`
FComm string `json:"fcomm"`
CgroupID uint32 `json:"cgroupID"`
CgroupPath string `json:"cgroup_path"`
}
func DecodeMapItem ¶
type OomInstance ¶
type OomInstance struct {
// process id of the killed process
Pid int
// the name of the killed process
ProcessName string
// the time that the process was reported to be killed,
// accurate to the minute
TimeOfDeath time.Time
// the absolute name of the container that OOMed
ContainerName string
// the absolute name of the container that was killed
// due to the OOM.
VictimContainerName string
// the constraint that triggered the OOM. One of CONSTRAINT_NONE,
// CONSTRAINT_CPUSET, CONSTRAINT_MEMORY_POLICY, CONSTRAINT_MEMCG
Constraint string
}
type OomParser ¶
type OomParser struct {
// contains filtered or unexported fields
}
func (*OomParser) StreamOoms ¶
func (p *OomParser) StreamOoms(outStream chan<- *OomInstance)
Click to show internal directories.
Click to hide internal directories.