Documentation
¶
Overview ¶
Package telemetry comment
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶ added in v1.3.0
type Collector interface {
// Called periodically by the controller to trigger a collection round.
Collect(context.Context) error
// Called once during shutdown to release resources and flush final data.
Close(context.Context) error
}
Collector is the generic interface for a telemetry collector.
type Config ¶ added in v1.3.0
type Config struct {
// ParentClient is the client from the current (local) cluster, that is either
// a regional or the management cluster.
ParentClient client.Client
Mode Mode
SystemNamespace string
LocalBaseDir string
Interval time.Duration
JitterPercentage uint // ie 10%
Concurrency int
}
Config configurates Telemetry Collector.
type Mode ¶ added in v1.3.0
type Mode string //nolint:recvcheck // invalid in this case
Mode defines the way telemetry is collected and stored.
Click to show internal directories.
Click to hide internal directories.