Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶ added in v0.1.3
func Run(ctx context.Context, r prometheus.Registerer, cfg Configuration, logger *slog.Logger) error
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
An Collector collects the GPUStats received from intel_gpu_top and produces a consolidated sample to be reported to Prometheus. Consolidation is done by calculating the median of each attribute.
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.