core

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Beamer

type Beamer struct {
	// contains filtered or unexported fields
}

Beamer support HAProxy stats collection

func NewBeamer

func NewBeamer(exporters []*Exporter, labels map[string]string) *Beamer

NewBeamer create a beamer

func (*Beamer) Metrics

func (b *Beamer) Metrics() *bytes.Buffer

Metrics delivers beamer stats as warp10 metrics.

type Exporter

type Exporter struct {
	URI string
	// contains filtered or unexported fields
}

Exporter collects HAProxy stats from the given URI and exports them as warp10 metrics package.

func NewExporter

func NewExporter(uri string, timeout time.Duration, labels map[string]string, metrics []string) (*Exporter, error)

NewExporter returns an initialized Exporter.

func (*Exporter) Metrics

func (e *Exporter) Metrics() *bytes.Buffer

Metrics delivers HAProxy stats as warp10 metrics.

func (*Exporter) Scrape

func (e *Exporter) Scrape() bool

Scrape retrive HAProxy data

Jump to

Keyboard shortcuts

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