fs

package
v0.13.12 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Getattr = iota
	Readlink
	Open
	Release
	Read
	Statfs
	Getxattr
	Listxattr
	Opendir
	Lookup
	Readdir
	Readdirplus
	Access
	Forget
	BatchForget

	MaxFops
)

Variables

This section is empty.

Functions

func GetMaxFops

func GetMaxFops() uint

func MakeFopBuckets

func MakeFopBuckets() []uint64

Types

type Fop

type Fop int

type GetCountersFn

type GetCountersFn func(*types.FsMetrics) []uint64

type MetricHistogram

type MetricHistogram struct {
	Desc        *prometheus.Desc
	Buckets     []uint64
	GetCounters GetCountersFn
	// contains filtered or unexported fields
}

func (*MetricHistogram) Clear added in v0.5.0

func (h *MetricHistogram) Clear()

func (*MetricHistogram) Collect

func (h *MetricHistogram) Collect(ch chan<- prometheus.Metric)

func (*MetricHistogram) Describe

func (h *MetricHistogram) Describe(ch chan<- *prometheus.Desc)

Implement prometheus.Collector interface

func (*MetricHistogram) Save

func (h *MetricHistogram) Save(m prometheus.Metric)

func (*MetricHistogram) ToConstHistogram

func (h *MetricHistogram) ToConstHistogram(m *types.FsMetrics, imageRef string) (prometheus.Metric, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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