procstat

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 13 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 `acceptsEndpoints:"false"`
	// The name of an executable to monitor.  (ie: `exe: "signalfx-agent*"`)
	Exe string `yaml:"exe"`
	// Pattern to match against.  On Windows the pattern should be in the form of a WMI query.
	// (ie: `pattern: "%signalfx-agent%"`)
	Pattern string `yaml:"pattern"`
	// Username to match against
	User string `yaml:"user"`
	// Path to Pid file to monitor.  (ie: `pidFile: "/var/run/signalfx-agent.pid"`)
	PidFile string `yaml:"pidFile"`
	// Used to override the process name dimension
	ProcessName string `yaml:"processName"`
	// Prefix to be added to each dimension
	Prefix string `yaml:"prefix"`
	// Whether to add PID as a dimension instead of part of the metric name
	PidTag bool `yaml:"pidTag"`
}

Config for this monitor

type Monitor

type Monitor struct {
	Output types.Output
	// contains filtered or unexported fields
}

Monitor for Utilization

func (*Monitor) Configure

func (m *Monitor) Configure(conf *Config) (err error)

Configure the monitor and kick off metric syncing

func (*Monitor) Shutdown

func (m *Monitor) Shutdown()

Shutdown stops the metric sync

Jump to

Keyboard shortcuts

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