collector

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package collector handles health data collection from various sources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCollectionID

func GenerateCollectionID() string

GenerateCollectionID generates a unique identifier for a data collection cycle

func GenerateEventID added in v1.2.0

func GenerateEventID() string

GenerateEventID generates a UUID for each exported event.

Types

type Collector

type Collector interface {
	Collect(ctx context.Context) (*HealthData, error)
}

Collector defines the interface for collecting health data

func New

func New(
	cfg *config.HealthExporterConfig,
	fullConfig *config.Config,
	allComponentNames []string,
	metricsStore pkgmetrics.Store,
	eventStore eventstore.Store,
	componentsRegistry components.Registry,
	nvmlInstance nvidianvml.Instance,
	attestationManager *attestation.Manager,
	machineID string,
	dcgmGPUIndexes map[string]string,
) Collector

New creates a new health data collector

type HealthData

type HealthData struct {
	CollectionID    string
	MachineID       string
	Timestamp       time.Time
	MachineInfo     *machineinfo.MachineInfo
	Metrics         pkgmetrics.Metrics
	Events          eventstore.Events
	ComponentData   map[string]interface{}
	AttestationData *attestation.AttestationData
	ConfigEntries   []config.ConfigEntry
}

HealthData represents the collected health data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL