collector

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

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

C is a collector that collects telemetry data.

func New

func New(prometheusURL string, targetNodeSelector map[string]string) *C

New returns a new collector instance.

func (*C) NeedLeaderElection

func (c *C) NeedLeaderElection() bool

NeedLeaderElection implements LeaderElectionRunnable and always returns true.

func (*C) PayloadCh

func (c *C) PayloadCh() <-chan *v1.SendClusterTelemetryRequest_Payload

PayloadCh returns a read-only channel that can be used to receive telemetry payloads.

func (*C) SetupWithManager

func (c *C) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers the collector with the manager.

func (*C) Start

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

Start starts the collector.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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