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
Click to show internal directories.
Click to hide internal directories.