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 ¶
NewCollector creates a new telemetry collector for cozystack-controller
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
}
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
Click to show internal directories.
Click to hide internal directories.