process

package
v0.36.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	ProcFSPath: "/proc",
	Children:   true,
	Threads:    true,
	SMaps:      true,
	Recheck:    false,
}

DefaultArguments holds the default arguments for the prometheus.exporter.process component.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ProcessExporter []MatcherGroup `river:"matcher,block,optional"`

	ProcFSPath string `river:"procfs_path,attr,optional"`
	Children   bool   `river:"track_children,attr,optional"`
	Threads    bool   `river:"track_threads,attr,optional"`
	SMaps      bool   `river:"gather_smaps,attr,optional"`
	Recheck    bool   `river:"recheck_on_scrape,attr,optional"`
}

Arguments configures the prometheus.exporter.process component

func (*Arguments) Convert

func (a *Arguments) Convert() *process_exporter.Config

func (*Arguments) SetToDefault added in v0.35.0

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

type MatcherGroup

type MatcherGroup struct {
	Name         string   `river:"name,attr,optional"`
	CommRules    []string `river:"comm,attr,optional"`
	ExeRules     []string `river:"exe,attr,optional"`
	CmdlineRules []string `river:"cmdline,attr,optional"`
}

MatcherGroup taken and converted to River from github.com/ncabatoff/process-exporter/config

Jump to

Keyboard shortcuts

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