kpis

package
v0.0.0-...-09e306e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedKPIsByImpl = map[string]plugins.KPI{

	"vmware_host_contention_kpi":   &vmware.VMwareHostContentionKPI{},
	"vmware_project_noisiness_kpi": &vmware.VMwareProjectNoisinessKPI{},

	"netapp_storage_pool_cpu_usage_kpi": &netapp.NetAppStoragePoolCPUUsageKPI{},

	"vm_migration_statistics_kpi": &shared.VMMigrationStatisticsKPI{},
	"vm_life_span_kpi":            &shared.VMLifeSpanKPI{},
	"vm_commitments_kpi":          &shared.VMCommitmentsKPI{},

	"sap_host_total_allocatable_capacity_kpi": &sap.HostTotalAllocatableCapacityKPI{},
	"sap_host_capacity_kpi":                   &sap.HostAvailableCapacityKPI{},
	"sap_host_running_vms_kpi":                &sap.HostRunningVMsKPI{},
}

Configuration of supported kpis.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// Kubernetes client to manage/fetch resources.
	client.Client
	// The supported kpis to manage.
	SupportedKPIsByImpl map[string]plugins.KPI
	// The name of the operator to scope resources to.
	OperatorName string
	// contains filtered or unexported fields
}

The kpi controller checks the status of kpi dependencies and populates the kpi status accordingly.

func (*Controller) InitAllKPIs

func (c *Controller) InitAllKPIs(ctx context.Context) error

Handle the startup of the manager and initialize the kpis to be used.

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

This loop will be called by the controller-runtime for each kpi resource that needs to be reconciled.

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr manager.Manager) error

Directories

Path Synopsis
sap

Jump to

Keyboard shortcuts

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