collector

package
v0.0.0-...-c369d74 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 12 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 {
	Describe(chan<- *prometheus.Desc)
	Update(chan<- prometheus.Metric) error
}

Collector must be implemented by collectors

type ServiceCollector

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

ServiceCollector combines all collectors and implements prometheus.Collector

func NewCollector

func NewCollector(provider *gophercloud.ProviderClient, opts gophercloud.EndpointOpts, enabledCollectors ...string) (*ServiceCollector, error)

NewCollector creates a new prometheus.Collector which scapes all enabledCollectors

func (ServiceCollector) Collect

func (c ServiceCollector) Collect(ch chan<- prometheus.Metric)

Collect all the data from all collectors

func (ServiceCollector) Describe

func (c ServiceCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends metrics descriptions to ch

Jump to

Keyboard shortcuts

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