metrics

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsClientSubsystem    = "metrics_client"
	MetricsClientFailTotalKey = "fail_total"
)

Variables

This section is empty.

Functions

func NewReceiver

func NewReceiver(m MetricsExporter) http.Handler

Types

type MetricsExporter

type MetricsExporter interface {
	SetLatency(node, storageClass string, readLatency, writeLatency float64)
	SetLatencyOnMountProbe(pieProbeName, node, storageClass string, readLatency, writeLatency float64)
	IncrementCreateProbeCount(node string, storageClass string, onTime bool)
	IncrementPerformanceProbeCount(node string, storageClass string, succeed bool)
	IncrementPerformanceOnMountProbeCount(pieProbeName string, node string, storageClass string, succeed bool)
	IncrementProvisionProbeCount(pieProbeName string, storageClass string, onTime bool)
	IncrementMountProbeCount(pieProbeName string, node string, storageClass string, onTime bool)
}

func NewMetrics

func NewMetrics() MetricsExporter

Jump to

Keyboard shortcuts

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