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 `alloy:"matcher,block,optional"` ProcFSPath string `alloy:"procfs_path,attr,optional"` Children bool `alloy:"track_children,attr,optional"` Threads bool `alloy:"track_threads,attr,optional"` SMaps bool `alloy:"gather_smaps,attr,optional"` Recheck bool `alloy:"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 ¶
func (a *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type MatcherGroup ¶
type MatcherGroup struct { Name string `alloy:"name,attr,optional"` CommRules []string `alloy:"comm,attr,optional"` ExeRules []string `alloy:"exe,attr,optional"` CmdlineRules []string `alloy:"cmdline,attr,optional"` }
MatcherGroup taken and converted to Alloy from github.com/ncabatoff/process-exporter/config
Click to show internal directories.
Click to hide internal directories.