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
Click to show internal directories.
Click to hide internal directories.