Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultAvxThreshold is the cutoff below which a cgroup/container is not an AVX user. DefaultAvxThreshold = float64(0.1) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
Metrics implements collecting, caching and processing of raw metrics.
func NewMetrics ¶
NewMetrics creates a new instance for metrics collecting and processing.
func (*Metrics) Gather ¶
func (m *Metrics) Gather() ([]*model.MetricFamily, error)
Gather is our prometheus.Gatherer interface for proxying metrics.
type Options ¶
type Options struct { // PollInterval is the interval for polling raw metrics. PollInterval time.Duration // Events is the channel for delivering metrics events. Events chan interface{} // AvxThreshold is the threshold (0 - 1) for a cgroup to be considered AVX512-active AvxThreshold float64 }
Options describes options for metrics collection and processing.
Click to show internal directories.
Click to hide internal directories.