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.

          Source Files