Versions in this module Expand all Collapse all v0 v0.0.0 Feb 25, 2025 Changes in this version + var Gauges = []prometheus.GaugeDefinition + type CPUStats struct + CPU string + Idle float64 + Iowait float64 + System float64 + Total float64 + User float64 + type Collector struct + func NewCollector(ctx context.Context, logger hclog.Logger, dataDir string, ...) *Collector + func (c *Collector) Stats() *HostStats + type CollectorOption func(c *Collector) + func WithBaseLabels(labels []metrics.Label) CollectorOption + func WithMetrics(m *metrics.Metrics) CollectorOption + type DiskStats struct + Available uint64 + InodesUsedPercent float64 + Path string + Size uint64 + Used uint64 + UsedPercent float64 + type HostStats struct + CPU []*CPUStats + DataDirStats *DiskStats + Memory *MemoryStats + Timestamp int64 + Uptime uint64 + func (hs *HostStats) Clone() *HostStats + func (hs *HostStats) Emit(sink Metrics, baseLabels []metrics.Label) + type MemoryStats struct + Available uint64 + Free uint64 + Total uint64 + Used uint64 + UsedPercent float64 + type Metrics interface + SetGaugeWithLabels func(key []string, val float32, labels []metrics.Label)