process

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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) UnmarshalRiver

func (c *Arguments) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements River unmarshalling for Config.

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