collector

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SeachestCollectorNamespace is the namespace field in the prometheus metrics when
	// seachest is used to collect the metrics.
	SeachestCollectorNamespace = "seachest"
)

Variables

This section is empty.

Functions

func NewSeachestMetricCollector added in v0.5.0

func NewSeachestMetricCollector(c kubernetes.Client) prometheus.Collector

NewSeachestMetricCollector creates a new instance of SeachestCollector which implements Collector interface

func NewStaticMetricCollector

func NewStaticMetricCollector(c kubernetes.Client) prometheus.Collector

NewStaticMetricCollector creates a new instance of StaticMetricCollector which implements Collector interface

Types

type SeachestCollector added in v0.5.0

type SeachestCollector 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
}

SeachestCollector contains the metrics, concurrency handler and client to get the metrics from seachest

func (*SeachestCollector) Collect added in v0.5.0

func (sc *SeachestCollector) Collect(ch chan<- prometheus.Metric)

Collect is the implementation of Collect in prometheus.Collector

func (*SeachestCollector) Describe added in v0.5.0

func (sc *SeachestCollector) Describe(ch chan<- *prometheus.Desc)

Describe is the implementation of Describe in prometheus.Collector

type SeachestMetricData added in v0.5.0

type SeachestMetricData struct {
	SeachestIdentifier *seachest.Identifier
	TempInfo           blockdevice.TemperatureInformation
}

SeachestMetricData is the struct which holds the data from seachest library corresponding to each blockdevice

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