collector

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamedProcessCollector

type NamedProcessCollector struct {
	*proc.Grouper
	// contains filtered or unexported fields
}

func NewProcessCollector

func NewProcessCollector(options ProcessCollectorOption) (*NamedProcessCollector, error)

func (*NamedProcessCollector) Collect

func (p *NamedProcessCollector) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*NamedProcessCollector) Describe

func (p *NamedProcessCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector.

type ProcessCollectorOption

type ProcessCollectorOption struct {
	ProcFSPath        string
	Children          bool
	Threads           bool
	GatherSMaps       bool
	Namer             common.MatchNamer
	Recheck           bool
	RecheckTimeLimit  time.Duration
	Debug             bool
	RemoveEmptyGroups bool
}

Jump to

Keyboard shortcuts

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