python

package
v3.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: Apache-2.0 Imports: 20 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 `yaml:",inline" acceptsEndpoints:"true"`

	// Host will be filled in by auto-discovery if this monitor has a discovery
	// rule.  It can then be used under pluginConfig by the template
	// `{{.Host}}`
	Host string `yaml:"host"`
	// Port will be filled in by auto-discovery if this monitor has a discovery
	// rule.  It can then be used under pluginConfig by the template
	// `{{.Port}}`
	Port uint16 `yaml:"port"`

	// Corresponds to the ModuleName option in collectd-python
	ModuleName string `yaml:"moduleName" json:"moduleName"`
	// Corresponds to a set of ModulePath options in collectd-python
	ModulePaths []string `yaml:"modulePaths" json:"modulePaths"`
	// This is a yaml form of the collectd config.
	PluginConfig map[string]interface{} `yaml:"pluginConfig" json:"pluginConfig"`
	// A set of paths to [types.db files](https://collectd.org/documentation/manpages/types.db.5.shtml)
	// that are needed by your plugin.  If not specified, the runner will use
	// the global collectd types.db file.
	TypesDBPaths []string `yaml:"typesDBPaths" json:"typesDBPaths"`
}

Config for the Collectd Python runner

type Monitor

type Monitor struct {
	*pyrunner.MonitorCore

	Output types.Output
}

Monitor that runs collectd python plugins directly

func (*Monitor) Configure

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

Configure starts the subprocess and configures the plugin

Jump to

Keyboard shortcuts

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