collector

package
v0.0.0-...-16b7ed2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Update(ch chan<- prometheus.Metric) error
}

Collector is the interface a collector has to implement.

func NewQstatCollector

func NewQstatCollector() (Collector, error)

type PBSCollector

type PBSCollector struct {
	Collectors map[string]Collector
}

PBSCollector implements the prometheus.Collector interface.

func NewPBSCollector

func NewPBSCollector(filters ...string) (*PBSCollector, error)

NewPBSCollector creates a new PBSCollector.

func (PBSCollector) Collect

func (n PBSCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (PBSCollector) Describe

func (n PBSCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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