etcd

package
v3.0.1-beta4+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 4 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              string   `yaml:"host" validate:"required"`
	Port              uint16   `yaml:"port" validate:"required"`
	Name              string   `yaml:"name"`
	ClusterName       string   `yaml:"clusterName" required:"true"`
	SSLKeyFile        string   `yaml:"sslKeyFile"`
	SSLCertificate    string   `yaml:"sslCertificate"`
	SSLCACerts        string   `yaml:"sslCACerts"`
	SSLCertValidation bool     `yaml:"sslCertValidation" default:"true"`
	EnhancedMetrics   bool     `yaml:"enhancedMetrics"`
	MetricsToInclude  []string `yaml:"metricsToInclude"`
	MetricsToExclude  []string `yaml:"metricsToExclude"`
}

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

func (*Config) Validate

func (c *Config) Validate() error

Validate will check the config before the monitor is instantiated

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