static

package
v0.4.6-RC1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NodeNamespace is the namespace used for components on the node.
	// This has been seen as a practice in node exporter.
	NodeNamespace = "node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics is the prometheus metrics that are exposed by the exporter

func NewMetrics

func NewMetrics() *Metrics

NewMetrics creates instance of metrics

func (*Metrics) Collectors

func (m *Metrics) Collectors() []prometheus.Collector

Collectors lists out all the collectors for which the metrics is exposed

func (*Metrics) ErrorCollectors

func (m *Metrics) ErrorCollectors() []prometheus.Collector

ErrorCollectors lists out all collectors for metrics related to error

func (*Metrics) IncErrorRequestCounter

func (m *Metrics) IncErrorRequestCounter()

IncErrorRequestCounter increments the no of requests errored out.

func (*Metrics) IncRejectRequestCounter

func (m *Metrics) IncRejectRequestCounter()

IncRejectRequestCounter increments the reject request error counter

func (*Metrics) SetMetrics

func (m *Metrics) SetMetrics(blockDevices []bd.BlockDevice)

SetMetrics is used to set the prometheus metrics to resepective fields

Jump to

Keyboard shortcuts

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