collector

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStaticMetricCollector

func NewStaticMetricCollector(c kubernetes.Client) prometheus.Collector

NewStaticMetricCollector creates a new instance of StaticMetricCollector which implements Collector interface

Types

type StaticMetricCollector

type StaticMetricCollector struct {
	// Client is the k8s client which will be used to interface with etcd
	Client kubernetes.Client

	// concurrency handling
	sync.Mutex
	// contains filtered or unexported fields
}

StaticMetricCollector contains the metrics, concurrency handler and client to get the static metrics

func (*StaticMetricCollector) Collect

func (mc *StaticMetricCollector) Collect(ch chan<- prometheus.Metric)

Collect is the implementation of Collect in prometheus.Collector

func (*StaticMetricCollector) Describe

func (mc *StaticMetricCollector) Describe(ch chan<- *prometheus.Desc)

Describe is the implementation of Describe in prometheus.Collector

Jump to

Keyboard shortcuts

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