process

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Category             api.MetricCategory = "process"
	CommandProcessSignal api.CommandType    = "process_signal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

func NewCollector

func NewCollector() *Collector

func (*Collector) Collect

func (p *Collector) Collect() (*Metrics, error)

type CollectorSpec

type CollectorSpec struct {
	Category string
	Interval string
}

type Controller

type Controller struct{}

func NewController

func NewController() *Controller

func (*Controller) Signal

func (c *Controller) Signal(pid int, sig int) error

type ControllerSpec

type ControllerSpec struct {
	Type string
}

type Info

type Info struct {
	PID           int
	PPID          int
	User          string
	State         string
	CPUPercent    float64
	MemoryBytes   uint64
	Command       string
	SampledAtNano int64
}

type Metrics

type Metrics struct {
	Processes []Info
}

type Module

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

func New

func New(intervals config.ReportConfig) *Module

func (*Module) CollectorEntries

func (m *Module) CollectorEntries() []modules.CollectorEntry

func (*Module) ControllerEntries

func (m *Module) ControllerEntries() []modules.ControllerEntry

func (*Module) Name

func (m *Module) Name() string

func (*Module) Registration

func (m *Module) Registration() any

type Registration

type Registration struct {
	Collectors  []CollectorSpec
	Controllers []ControllerSpec
}

type SignalCommand

type SignalCommand struct {
	PID    int
	Signal int
}

Jump to

Keyboard shortcuts

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