oomkill

package
v0.0.0-...-c0f4c10 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package oomkill contains the OOMKill check.

Index

Constants

View Source
const (
	// CheckName is the name of the check
	CheckName = "oom_kill"
)

Variables

This section is empty.

Functions

func Factory

func Factory(tagger tagger.Component) optional.Option[func() check.Check]

Factory creates a new check factory

Types

type OOMKillCheck

type OOMKillCheck struct {
	core.CheckBase
	// contains filtered or unexported fields
}

OOMKillCheck grabs OOM Kill metrics

func (*OOMKillCheck) Configure

func (m *OOMKillCheck) Configure(senderManager sender.SenderManager, _ uint64, config, initConfig integration.Data, source string) error

Configure parses the check configuration and init the check

func (*OOMKillCheck) Run

func (m *OOMKillCheck) Run() error

Run executes the check

type OOMKillConfig

type OOMKillConfig struct {
	CollectOOMKill bool `yaml:"collect_oom_kill"`
}

OOMKillConfig is the config of the OOMKill check

func (*OOMKillConfig) Parse

func (c *OOMKillConfig) Parse(data []byte) error

Parse parses the check configuration

Jump to

Keyboard shortcuts

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