telemetry

package
v2.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManager

func CreateManager(
	logger logr.Logger,
	restConfig *rest.Config,
	gatewaysCounter workflows.DiscoveredGatewaysCounter,
	fixedPayload types.Payload,
	reportCfg ReportConfig,
) (telemetry.Manager, error)

CreateManager creates telemetry manager using the provided rest.Config.

func SetupAnonymousReports

func SetupAnonymousReports(
	ctx context.Context,
	kubeCfg *rest.Config,
	clientsProvider GatewayClientsProvider,
	reportCfg ReportConfig,
	instanceID interface{ String() string },
	fixedPayloadCustomizer types.PayloadCustomizer,
) (func(), error)

SetupAnonymousReports sets up and starts the anonymous reporting and returns a cleanup function and an error. In case of no error returned - the caller is responsible to call the returned function - to stop the reports sending.

Types

type GatewayClientsProvider

type GatewayClientsProvider interface {
	GatewayClients() []*adminapi.Client
	GatewayClientsCount() int
}

GatewayClientsProvider is an interface that provides clients for the currently discovered Gateway instances.

type ReportConfig

type ReportConfig struct {
	SplunkEndpoint                   string
	SplunkEndpointInsecureSkipVerify bool
	TelemetryPeriod                  time.Duration
	ReportValues                     ReportValues
}

ReportConfig holds configuration for telemetry reports.

type ReportValues

type ReportValues struct {
	FeatureGates                   map[string]bool
	MeshDetection                  bool
	PublishServiceNN               k8stypes.NamespacedName
	KonnectSyncEnabled             bool
	GatewayServiceDiscoveryEnabled bool
}

ReportValues holds values that are included in telemetry reports.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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