storageautoscaler

package
v4.0.0-...-e639487 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OsdUsage

type OsdUsage struct {
	TotalUsage   float64
	HighestUsage float64
	TotalOsd     float64
}

type PrometheusResponse

type PrometheusResponse struct {
	Status string       `json:"status"`
	Data   VectorResult `json:"data"`
}

type StorageAutoscalerReconciler

type StorageAutoscalerReconciler struct {
	client.Client
	Log               logr.Logger
	OperatorNamespace string
	SyncMap           *sync.Map
	EventCh           chan event.GenericEvent
	ScrapeInterval    time.Duration
}

StorageAutoscalerReconciler is the reconciler for StorageAutoscaler objects

func (*StorageAutoscalerReconciler) Reconcile

Reconcile reconciles the StorageAutoscaler object

func (*StorageAutoscalerReconciler) SetupWithManager

func (r *StorageAutoscalerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the reconciler with the manager

type StorageAutoscalerScraper

type StorageAutoscalerScraper struct {
	client.Client
	Log               logr.Logger
	OperatorNamespace string
	ScrapeInterval    time.Duration
	SyncMap           *sync.Map
	EventCh           chan event.GenericEvent
}

StorageAutoscalerScrpaer is the scraper for Prometheus metrics

func (*StorageAutoscalerScraper) ScrapeMetricsPeriodically

func (r *StorageAutoscalerScraper) ScrapeMetricsPeriodically(ctx context.Context)

type VectorResult

type VectorResult struct {
	ResultType string       `json:"resultType"`
	Result     model.Vector `json:"result"`
}

VectorResult contains only the vector result type

Jump to

Keyboard shortcuts

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