Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector handles telemetry data collection and sending
func NewCollector ¶
func NewCollector(client client.Client, config *Config, kubeConfig *rest.Config) (*Collector, error)
NewCollector creates a new telemetry collector
func (*Collector) NeedLeaderElection ¶
NeedLeaderElection implements manager.LeaderElectionRunnable
type Config ¶
type Config struct {
// Disable telemetry collection if set to true
Disabled bool
// Endpoint to send telemetry data to
Endpoint string
// Interval between telemetry data collection
Interval time.Duration
// CozystackVersion represents the current version of Cozystack
CozystackVersion string
}
Config holds telemetry configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns default telemetry configuration
Click to show internal directories.
Click to hide internal directories.