telemetry

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ApplicationKindLabel is the label used to identify application kind on HelmReleases
	ApplicationKindLabel = "apps.cozystack.io/application.kind"
)

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 for cozystack-controller

func NewCollector

func NewCollector(c client.Client, config *Config, _ *rest.Config) (*Collector, error)

NewCollector creates a new telemetry collector for cozystack-controller

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

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
}

Config holds telemetry configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns default telemetry configuration

type OperatorCollector added in v1.0.0

type OperatorCollector struct {
	// contains filtered or unexported fields
}

OperatorCollector handles telemetry data collection for cozystack-operator

func NewOperatorCollector added in v1.0.0

func NewOperatorCollector(r client.Reader, config *Config, kubeConfig *rest.Config) (*OperatorCollector, error)

NewOperatorCollector creates a new telemetry collector for cozystack-operator

func (*OperatorCollector) NeedLeaderElection added in v1.0.0

func (c *OperatorCollector) NeedLeaderElection() bool

NeedLeaderElection implements manager.LeaderElectionRunnable

func (*OperatorCollector) Start added in v1.0.0

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

Start implements manager.Runnable

Jump to

Keyboard shortcuts

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