prometheus

package
v3.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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 `yaml:",inline" acceptsEndpoints:"true"`

	// Host of the exporter
	Host string `yaml:"host" validate:"required"`
	// Port of the exporter
	Port uint16 `yaml:"port" validate:"required"`
	Name string `yaml:"name"`

	// Path to the metrics endpoint on the exporter server, usually `/metrics`
	// (the default).`
	MetricPath string `yaml:"metricPath" default:"/metrics"`
}

Config for this monitor

type Monitor

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

Monitor for prometheus exporter metrics

func (*Monitor) Configure

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

Configure the monitor and kick off volume metric syncing

func (*Monitor) Shutdown

func (m *Monitor) Shutdown()

Shutdown stops the metric sync

Jump to

Keyboard shortcuts

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