collector

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aerospike

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

Aerospike is aerospike exporter

func NewAerospike

func NewAerospike(options Options) (*Aerospike, error)

NewAerospike initializes collectors and return it

func (*Aerospike) Collect

func (a *Aerospike) Collect(ch chan<- prometheus.Metric)

Collect collects metrics from aerospike collectors

func (*Aerospike) Describe

func (a *Aerospike) Describe(ch chan<- *prometheus.Desc)

Describe describe metrics for aerospike collectors

type Collector

type Collector interface {
	prometheus.Collector
}

Collector abstracts prometheus collector

func NewCollector

func NewCollector(options Options, field string) (Collector, error)

NewCollector initializes collector

type Options

type Options struct {
	Addr  string
	Alias string
}

Options store Collector initializing parameters

type Scraps

type Scraps map[string]string

Scraps stores data exported from Aerospike

Jump to

Keyboard shortcuts

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