controllers

package
v0.0.0-...-950e6cb Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrometheusURL         = "PROM_URL"
	ObjectStorageInstance = "OBJECT_STORAGE_INSTANCE"
	ConcurrentLimit       = "CONCURRENT_LIMIT"
)
View Source
const (
	DefaultConcurrencyLimit = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitorReconciler

type MonitorReconciler struct {
	client.Client
	logr.Logger
	Interval time.Duration
	Scheme   *runtime.Scheme

	NvidiaGpu     map[string]gpu.NvidiaGPU
	DBClient      database.Interface
	TrafficClient database.Interface
	Properties    *resources.PropertyTypeLS
	PromURL       string

	ObjStorageClient        *minio.Client
	ObjStorageMetricsClient *objstorage.MetricsClient
	ObjectStorageInstance   string
	// contains filtered or unexported fields
}

MonitorReconciler reconciles a Monitor object

func NewMonitorReconciler

func NewMonitorReconciler(mgr ctrl.Manager) (*MonitorReconciler, error)

func (*MonitorReconciler) DropMonitorCollectionOlder

func (r *MonitorReconciler) DropMonitorCollectionOlder() error

func (*MonitorReconciler) MonitorTrafficUsed

func (r *MonitorReconciler) MonitorTrafficUsed(startTime, endTime time.Time) error

func (*MonitorReconciler) StartReconciler

func (r *MonitorReconciler) StartReconciler(ctx context.Context) error

Jump to

Keyboard shortcuts

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