pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gather

func Gather(ctx context.Context, config *Config, o Options) ([]*dto.MetricFamily, error)

Types

type Config

type Config struct {
	Exporters []Exporter
}

type Exporter

type Exporter struct {
	Name string
	URL  string
}

type MergeFamilies

type MergeFamilies []*dto.MetricFamily

func (MergeFamilies) Len

func (a MergeFamilies) Len() int

func (MergeFamilies) Less

func (a MergeFamilies) Less(i, j int) bool

func (MergeFamilies) Swap

func (a MergeFamilies) Swap(i, j int)

type Metrics

type Metrics []*dto.Metric

func (Metrics) Len

func (a Metrics) Len() int

func (Metrics) Less

func (a Metrics) Less(i, j int) bool

func (Metrics) Swap

func (a Metrics) Swap(i, j int)

type Options

type Options interface {
	Timeout() time.Duration
	MetricKey() string
}

Jump to

Keyboard shortcuts

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