Documentation ¶
Index ¶
- func CollectSnapshotMetricsTimer(h *prometheus.HistogramVec, event SnapshotMethod) *prometheus.Timer
- func NewSnapshotMetricsTimer(method SnapshotMethod) *prometheus.Timer
- type Collector
- type DaemonEventCollector
- type DaemonInfoCollector
- type FsMetricsCollector
- type FsMetricsVecCollector
- type SnapshotMethod
- type SnapshotterMetricsCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 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 FsMetricsCollector ¶
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 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 (*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()
Click to show internal directories.
Click to hide internal directories.