oomparser

package
v0.29.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
}

struct that contains information related to an OOM kill instance

type OomParser

type OomParser struct {
	// contains filtered or unexported fields
}

OomParser wraps a kmsgparser in order to extract OOM events from the individual kernel ring buffer messages.

func New

func New() (*OomParser, error)

initializes an OomParser object. Returns an OomParser object and an error.

func (*OomParser) StreamOoms

func (self *OomParser) StreamOoms(outStream chan<- *OomInstance)

StreamOoms writes to a provided a stream of OomInstance objects representing OOM events that are found in the logs. It will block and should be called from a goroutine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL