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