hostmetadata

package
v3.9.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 15 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 `singleInstance:"true" acceptsEndpoints:"false"`
	// The path to the proc filesystem. Useful to override in containerized
	// environments.
	ProcFSPath string `yaml:"procFSPath" default:"/proc"`
	// The path to the main host config dir. Useful to override in
	// containerized environments.
	EtcPath string `yaml:"etcPath" default:"/etc"`
}

Config for this monitor

type Monitor

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

Monitor for host-metadata

func (*Monitor) Configure

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

Configure is the main function of the monitor, it will report host metadata on a varied interval

func (*Monitor) ReportMetadataProperties

func (m *Monitor) ReportMetadataProperties()

ReportMetadataProperties emits properties about the host

func (*Monitor) ReportUptimeMetric

func (m *Monitor) ReportUptimeMetric()

ReportUptimeMetric report metrics

Jump to

Keyboard shortcuts

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