process

package
v0.0.0-...-81e7916 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GiB = 1 << (10 * 3) //nolint:mnd // 1 GiB = 1024^3 bytes
)

Variables

View Source
var (
	ErrLoadingFailed = errors.New("could not load resource")
)

Functions

This section is empty.

Types

type EventStream

type EventStream struct {
	KubeConfig string
	Metric     edp.ConsumptionMetrics
}

type Input

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

func (Input) Parse

func (inp Input) Parse(specs *config.PublicCloudSpecs) (*edp.ConsumptionMetrics, error)

type Process

type Process struct {
	KEBClient         *keb.Client
	EDPClient         *edp.Client
	Queue             workqueue.TypedDelayingInterface[string]
	SecretCacheClient v1.CoreV1Interface
	Cache             *cache.Cache
	PublicCloudSpecs  *config.PublicCloudSpecs
	ScrapeInterval    time.Duration
	WorkersPoolSize   int
	NodeConfig        skrnode.ConfigInf
	PVCConfig         skrpvc.ConfigInf
	SvcConfig         skrsvc.ConfigInf
	RedisConfig       skrredis.ConfigInf
	Logger            *zap.SugaredLogger
}

func (*Process) Start

func (p *Process) Start()

Start runs the complete process of collection and sending metrics.

Jump to

Keyboard shortcuts

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