collector

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 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
	Debug       bool
}

Jump to

Keyboard shortcuts

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