probe

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubMain

func SubMain(pieProbeName string, node string, measurePath string, storageClass string, serverURI string) error

Types

type DiskInfoExporter

type DiskInfoExporter interface {
	Export(metrics *DiskMetrics) error
}

func NewDiskInfoExporter

func NewDiskInfoExporter(url string, pieProbeName string, node string, storageClass string) DiskInfoExporter

type DiskMetrics

type DiskMetrics struct {
	ReadLatency  float64
	WriteLatency float64
	ErrorNumber  int
}

type DiskMetricsInterface

type DiskMetricsInterface interface {
	GetMetrics(ctx context.Context) (*DiskMetrics, error)
}

func NewDiskMetrics

func NewDiskMetrics(path string) DiskMetricsInterface

Jump to

Keyboard shortcuts

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