telemetry

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

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

func (c *Collector) NeedLeaderElection() bool

NeedLeaderElection implements manager.LeaderElectionRunnable

func (*Collector) Start

func (c *Collector) Start(ctx context.Context) error

Start implements manager.Runnable

func (*Collector) Stop

func (c *Collector) Stop()

Stop halts telemetry collection

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

Jump to

Keyboard shortcuts

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