mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit Based on the comprehensive summary of changes, here are the release notes: - **New Features** - Added a new Kubernetes controller for managing workload monitoring - Introduced telemetry collection capabilities with configurable options - Added new Custom Resource Definitions (CRDs) for Workload and WorkloadMonitor - **Improvements** - Enhanced API infrastructure with new API group and version - Improved deployment configurations for various system components - Added development container and workflow configurations - **Bug Fixes** - Updated import paths to correct domain naming - **Chores** - Updated copyright years - Refined module dependencies - Standardized code linting and testing configurations - **Infrastructure** - Increased `cozystack-api` deployment replicas from 1 to 2 for improved availability <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
28 lines
643 B
Go
28 lines
643 B
Go
package telemetry
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Config holds telemetry configuration
|
|
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
|
|
}
|
|
|
|
// DefaultConfig returns default telemetry configuration
|
|
func DefaultConfig() *Config {
|
|
return &Config{
|
|
Disabled: false,
|
|
Endpoint: "https://telemetry.cozystack.io",
|
|
Interval: 15 * time.Minute,
|
|
CozystackVersion: "unknown",
|
|
}
|
|
}
|