collector

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 1 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 struct {
	Store Store
}

Collector represents a kube-state-metrics metric collector. It is a stripped down version of the Prometheus client_golang collector.

func NewCollector

func NewCollector(s Store) *Collector

NewCollector constructs a collector with the given Store.

func (*Collector) Collect

func (c *Collector) Collect(w io.Writer)

Collect returns all metrics of the underlying store of the collector.

type Store

type Store interface {
	WriteAll(io.Writer)
}

Store represents a metrics store e.g. k8s.io/kube-state-metrics/pkg/metrics_store.

Jump to

Keyboard shortcuts

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