process

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 6 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 `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

Jump to

Keyboard shortcuts

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