Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) AddDirtyTracker(name string, dt *dirtytracker.Remote)
- func (m *Metrics) AddFromProtocol(name string, proto *protocol.FromProtocol)
- func (m *Metrics) AddMetrics(name string, mm *modules.Metrics)
- func (m *Metrics) AddMigrator(name string, mig *migrator.Migrator)
- func (m *Metrics) AddNBD(name string, mm *expose.ExposedStorageNBDNL)
- func (m *Metrics) AddProtocol(name string, proto *protocol.RW)
- func (m *Metrics) AddS3Storage(name string, s3 *sources.S3Storage)
- func (m *Metrics) AddSyncer(name string, syncer *migrator.Syncer)
- func (m *Metrics) AddToProtocol(name string, proto *protocol.ToProtocol)
- func (m *Metrics) AddVolatilityMonitor(name string, vm *volatilitymonitor.VolatilityMonitor)
- func (m *Metrics) AddWaitingCache(name string, wc *waitingcache.Remote)
- func (m *Metrics) RemoveDirtyTracker(name string)
- func (m *Metrics) RemoveFromProtocol(name string)
- func (m *Metrics) RemoveMetrics(name string)
- func (m *Metrics) RemoveMigrator(name string)
- func (m *Metrics) RemoveNBD(name string)
- func (m *Metrics) RemoveProtocol(name string)
- func (m *Metrics) RemoveS3Storage(name string)
- func (m *Metrics) RemoveSyncer(name string)
- func (m *Metrics) RemoveToProtocol(name string)
- func (m *Metrics) RemoveVolatilityMonitor(name string)
- func (m *Metrics) RemoveWaitingCache(name string)
- func (m *Metrics) Shutdown()
- type MetricsConfig
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) 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 (*Metrics) RemoveFromProtocol ¶
func (*Metrics) RemoveMetrics ¶
func (*Metrics) RemoveMigrator ¶
func (*Metrics) RemoveProtocol ¶
func (*Metrics) RemoveS3Storage ¶
func (*Metrics) RemoveSyncer ¶
func (*Metrics) RemoveToProtocol ¶
func (*Metrics) RemoveVolatilityMonitor ¶
func (*Metrics) RemoveWaitingCache ¶
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
Click to show internal directories.
Click to hide internal directories.