prometheus

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func New

func New(reg prometheus.Registerer, config *MetricsConfig) *Metrics

func (*Metrics) AddDirtyTracker

func (m *Metrics) AddDirtyTracker(name string, dt *dirtytracker.Remote)

func (*Metrics) AddFromProtocol

func (m *Metrics) AddFromProtocol(name string, proto *protocol.FromProtocol)

func (*Metrics) AddMetrics

func (m *Metrics) AddMetrics(name string, mm *modules.Metrics)

func (*Metrics) AddMigrator

func (m *Metrics) AddMigrator(name string, mig *migrator.Migrator)

func (*Metrics) AddNBD

func (m *Metrics) AddNBD(name string, mm *expose.ExposedStorageNBDNL)

func (*Metrics) AddProtocol

func (m *Metrics) AddProtocol(name string, proto *protocol.RW)

func (*Metrics) AddS3Storage

func (m *Metrics) AddS3Storage(name string, s3 *sources.S3Storage)

func (*Metrics) AddSyncer

func (m *Metrics) AddSyncer(name string, syncer *migrator.Syncer)

func (*Metrics) AddToProtocol

func (m *Metrics) AddToProtocol(name string, proto *protocol.ToProtocol)

func (*Metrics) AddVolatilityMonitor

func (m *Metrics) AddVolatilityMonitor(name string, vm *volatilitymonitor.VolatilityMonitor)

func (*Metrics) AddWaitingCache

func (m *Metrics) AddWaitingCache(name string, wc *waitingcache.Remote)

func (*Metrics) RemoveDirtyTracker

func (m *Metrics) RemoveDirtyTracker(name string)

func (*Metrics) RemoveFromProtocol

func (m *Metrics) RemoveFromProtocol(name string)

func (*Metrics) RemoveMetrics

func (m *Metrics) RemoveMetrics(name string)

func (*Metrics) RemoveMigrator

func (m *Metrics) RemoveMigrator(name string)

func (*Metrics) RemoveNBD

func (m *Metrics) RemoveNBD(name string)

func (*Metrics) RemoveProtocol

func (m *Metrics) RemoveProtocol(name string)

func (*Metrics) RemoveS3Storage

func (m *Metrics) RemoveS3Storage(name string)

func (*Metrics) RemoveSyncer

func (m *Metrics) RemoveSyncer(name string)

func (*Metrics) RemoveToProtocol

func (m *Metrics) RemoveToProtocol(name string)

func (*Metrics) RemoveVolatilityMonitor

func (m *Metrics) RemoveVolatilityMonitor(name string)

func (*Metrics) RemoveWaitingCache

func (m *Metrics) RemoveWaitingCache(name string)

func (*Metrics) Shutdown

func (m *Metrics) Shutdown()

Shutdown everything

type MetricsConfig

type MetricsConfig struct {
	HeatmapResolution     uint64
	Namespace             string
	SubSyncer             string
	SubMigrator           string
	SubProtocol           string
	SubToProtocol         string
	SubFromProtocol       string
	SubS3                 string
	SubDirtyTracker       string
	SubVolatilityMonitor  string
	SubMetrics            string
	SubNBD                string
	SubWaitingCache       string
	TickMigrator          time.Duration
	TickSyncer            time.Duration
	TickProtocol          time.Duration
	TickToProtocol        time.Duration
	TickFromProtocol      time.Duration
	TickS3                time.Duration
	TickDirtyTracker      time.Duration
	TickVolatilityMonitor time.Duration
	TickMetrics           time.Duration
	TickNBD               time.Duration
	TickWaitingCache      time.Duration
}

func DefaultConfig

func DefaultConfig() *MetricsConfig

Jump to

Keyboard shortcuts

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