collector

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OPCodeMap = map[uint32]string{
	15: "OP_READ",
}

Functions

func CollectSnapshotMetricsTimer added in v0.5.0

func CollectSnapshotMetricsTimer(h *prometheus.HistogramVec, event SnapshotMethod) *prometheus.Timer

func NewSnapshotMetricsTimer added in v0.5.0

func NewSnapshotMetricsTimer(method SnapshotMethod) *prometheus.Timer

Types

type Collector

type Collector interface {
	// Collect metrics to prometheus data.
	Collect()
}

type DaemonEventCollector

type DaemonEventCollector struct {
	// contains filtered or unexported fields
}

func NewDaemonEventCollector added in v0.5.0

func NewDaemonEventCollector(ev types.DaemonState) *DaemonEventCollector

func (*DaemonEventCollector) Collect

func (d *DaemonEventCollector) Collect()

type DaemonInfoCollector added in v0.5.0

type DaemonInfoCollector struct {
	Version *types.BuildTimeInfo
	// contains filtered or unexported fields
}

func NewDaemonInfoCollector added in v0.5.0

func NewDaemonInfoCollector(version *types.BuildTimeInfo, value float64) *DaemonInfoCollector

func (*DaemonInfoCollector) Collect added in v0.5.0

func (d *DaemonInfoCollector) Collect()

type DaemonResourceCollector added in v0.7.0

type DaemonResourceCollector struct {
	DaemonID string
	Value    float64
}

func (*DaemonResourceCollector) Collect added in v0.7.0

func (d *DaemonResourceCollector) Collect()

type FsMetricsCollector

type FsMetricsCollector struct {
	Metrics  *types.FsMetrics
	ImageRef string
}

func NewFsMetricsCollector added in v0.5.0

func NewFsMetricsCollector(m *types.FsMetrics, imageRef string) *FsMetricsCollector

func (*FsMetricsCollector) Collect

func (f *FsMetricsCollector) Collect()

type FsMetricsVecCollector added in v0.5.0

type FsMetricsVecCollector struct {
	MetricsVec []FsMetricsCollector
}

func NewFsMetricsVecCollector added in v0.5.0

func NewFsMetricsVecCollector() *FsMetricsVecCollector

func (*FsMetricsVecCollector) Clear added in v0.5.0

func (f *FsMetricsVecCollector) Clear()

func (*FsMetricsVecCollector) Collect added in v0.5.0

func (f *FsMetricsVecCollector) Collect()

type InflightMetricsVecCollector added in v0.6.0

type InflightMetricsVecCollector struct {
	MetricsVec     []*types.InflightMetrics
	HungIOInterval time.Duration
}

func NewInflightMetricsVecCollector added in v0.6.0

func NewInflightMetricsVecCollector(hungIOInterval time.Duration) *InflightMetricsVecCollector

func (*InflightMetricsVecCollector) Collect added in v0.6.0

func (i *InflightMetricsVecCollector) Collect()

type SnapshotMethod added in v0.5.0

type SnapshotMethod string
const (
	SnapshotMethodUnknown SnapshotMethod = "UNKNOWN"
	SnapshotMethodPrepare SnapshotMethod = "PREPARE"
	SnapshotMethodMount   SnapshotMethod = "MOUNTS"
	SnapshotMethodCleanup SnapshotMethod = "CLEANUP"
	SnapshotMethodRemove  SnapshotMethod = "REMOVE"
)

type SnapshotterMetricsCollector added in v0.5.0

type SnapshotterMetricsCollector struct {
	// contains filtered or unexported fields
}

func NewSnapshotterMetricsCollector added in v0.5.0

func NewSnapshotterMetricsCollector(ctx context.Context, cacheDir string, pid int) (*SnapshotterMetricsCollector, error)

func (*SnapshotterMetricsCollector) Collect added in v0.5.0

func (s *SnapshotterMetricsCollector) Collect()

func (*SnapshotterMetricsCollector) CollectCacheUsage added in v0.5.0

func (s *SnapshotterMetricsCollector) CollectCacheUsage()

func (*SnapshotterMetricsCollector) CollectResourceUsage added in v0.5.0

func (s *SnapshotterMetricsCollector) CollectResourceUsage()

Jump to

Keyboard shortcuts

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