processes

package
v3.1.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.MonitorConfig `singleInstance:"true"`
	// A list of process names to match
	Processes []string `yaml:"processes"`
	// A map with keys specifying the `plugin_instance` value to be sent for
	// the values which are regexes that match process names.  See example in
	// description.
	ProcessMatch map[string]string `yaml:"processMatch"`
	// Collect metrics on the number of context switches made by the process
	CollectContextSwitch bool `yaml:"collectContextSwitch" default:"false"`
	// The path to the proc filesystem -- useful to override if the agent is
	// running in a container.
	ProcFSPath string `yaml:"procFSPath" default:"/proc"`
}

Config is the monitor-specific config with the generic config embedded

func (*Config) Validate

func (c *Config) Validate() error

Validate will check the config for correctness.

type Monitor

type Monitor struct {
	collectd.MonitorCore
}

Monitor is the main type that represents the monitor

func (*Monitor) Configure

func (am *Monitor) Configure(conf *Config) error

Configure configures and runs the plugin in collectd

Jump to

Keyboard shortcuts

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