static

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

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 []blockdevice.BlockDevice)

SetMetrics is used to set the prometheus metrics to respective fields

Jump to

Keyboard shortcuts

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