internalmetrics

package
v3.11.0-beta2+incompat... Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 12 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"`

	// Defaults to the top-level `internalStatusHost` option
	Host string `yaml:"host"`
	// Defaults to the top-level `internalStatusPort` option
	Port uint16 `yaml:"port" noDefault:"true"`
	// The HTTP request path to use to retrieve the metrics
	Path string `yaml:"path" default:"/metrics"`
}

Config for internal metric monitoring

type Monitor

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

Monitor for collecting internal metrics from the simple server that dumps them.

func (*Monitor) Configure

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

Configure and kick off internal metric collection

func (*Monitor) Shutdown

func (m *Monitor) Shutdown()

Shutdown the internal metric collection

Jump to

Keyboard shortcuts

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