consul

package
v3.8.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 5 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"`
	ACLToken            string `yaml:"aclToken" neverLog:"true"`
	UseHTTPS            bool   `yaml:"useHTTPS"`
	EnhancedMetrics     *bool  `yaml:"enhancedMetrics"`
	CACertificate       string `yaml:"caCertificate"`
	ClientCertificate   string `yaml:"clientCertificate"`
	ClientKey           string `yaml:"clientKey"`
	SignalFxAccessToken string `yaml:"signalFxAccessToken" neverLog:"true"`
	// contains filtered or unexported fields
}

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

func (*Config) PythonConfig

func (c *Config) PythonConfig() *python.Config

PythonConfig returns the embedded python.Config struct from the interface

type Monitor

type Monitor struct {
	python.PyMonitor
}

Monitor is the main type that represents the monitor

func (*Monitor) Configure

func (m *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