compute

package
v0.0.0-...-0e8ba2f Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlavorRunningVMs

type FlavorRunningVMs struct {
	FlavorName       string  `db:"flavor_name"`
	AvailabilityZone string  `db:"availability_zone"`
	RunningVMs       float64 `db:"running_vms"`
	ProjectID        string  `db:"project_id"`
	ProjectName      string  `db:"project_name"`
}

type FlavorRunningVMsKPI

type FlavorRunningVMsKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

func (*FlavorRunningVMsKPI) Collect

func (k *FlavorRunningVMsKPI) Collect(ch chan<- prometheus.Metric)

func (*FlavorRunningVMsKPI) Describe

func (k *FlavorRunningVMsKPI) Describe(ch chan<- *prometheus.Desc)

func (FlavorRunningVMsKPI) GetName

func (FlavorRunningVMsKPI) GetName() string

func (*FlavorRunningVMsKPI) Init

func (k *FlavorRunningVMsKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type HostRunningVMs

type HostRunningVMs struct {
	ComputeHostName  string  `db:"compute_host"`
	AvailabilityZone string  `db:"availability_zone"`
	CPUArchitecture  string  `db:"cpu_architecture"`
	HypervisorFamily string  `db:"hypervisor_family"`
	WorkloadType     string  `db:"workload_type"`
	Enabled          bool    `db:"enabled"`
	Decommissioned   bool    `db:"decommissioned"`
	ExternalCustomer bool    `db:"external_customer"`
	PinnedProjects   string  `db:"pinned_projects"`
	RunningVMs       float64 `db:"running_vms"`
	compute.HostUtilization
}

type HostRunningVMsKPI

type HostRunningVMsKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

func (*HostRunningVMsKPI) Collect

func (k *HostRunningVMsKPI) Collect(ch chan<- prometheus.Metric)

func (*HostRunningVMsKPI) Describe

func (k *HostRunningVMsKPI) Describe(ch chan<- *prometheus.Desc)

func (HostRunningVMsKPI) GetName

func (HostRunningVMsKPI) GetName() string

func (*HostRunningVMsKPI) Init

func (k *HostRunningVMsKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type KVMResourceCapacityKPI

type KVMResourceCapacityKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

func (*KVMResourceCapacityKPI) Collect

func (k *KVMResourceCapacityKPI) Collect(ch chan<- prometheus.Metric)

func (*KVMResourceCapacityKPI) Describe

func (k *KVMResourceCapacityKPI) Describe(ch chan<- *prometheus.Desc)

func (KVMResourceCapacityKPI) GetName

func (KVMResourceCapacityKPI) GetName() string

func (*KVMResourceCapacityKPI) Init

func (k *KVMResourceCapacityKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type VMCommitmentsKPI

type VMCommitmentsKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

func (*VMCommitmentsKPI) Collect

func (k *VMCommitmentsKPI) Collect(ch chan<- prometheus.Metric)

func (*VMCommitmentsKPI) Describe

func (k *VMCommitmentsKPI) Describe(ch chan<- *prometheus.Desc)

func (VMCommitmentsKPI) GetName

func (VMCommitmentsKPI) GetName() string

func (*VMCommitmentsKPI) Init

func (k *VMCommitmentsKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type VMFaultsKPI

type VMFaultsKPI struct {
	plugins.BaseKPI[struct{}]
	// contains filtered or unexported fields
}

This kpi tracks vm faults in the datacenter. It exposes helpful information about the faults, such as the availability zone, hypervisor type, vm state, and error info if available. This can be used to identify issues in the datacenter and to monitor the overall health of the vms.

func (*VMFaultsKPI) Collect

func (k *VMFaultsKPI) Collect(ch chan<- prometheus.Metric)

Collect collects the current state of vms from the database and sends it as Prometheus metrics to the provided channel.

func (*VMFaultsKPI) Describe

func (k *VMFaultsKPI) Describe(ch chan<- *prometheus.Desc)

Describe sends the descriptor of this kpi to the provided channel. This is used by Prometheus to know which metrics this kpi exposes.

func (VMFaultsKPI) GetName

func (VMFaultsKPI) GetName() string

GetName returns a unique name for this kpi that is used for registration and configuration.

func (*VMFaultsKPI) Init

func (k *VMFaultsKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

Init initializes the kpi, e.g. by creating the necessary Prometheus descriptors. The base kpi is also initialized with the provided database, client and options.

type VMLifeSpanKPI

type VMLifeSpanKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

Advanced statistics about vm life spans.

func (*VMLifeSpanKPI) Collect

func (k *VMLifeSpanKPI) Collect(ch chan<- prometheus.Metric)

func (*VMLifeSpanKPI) Describe

func (k *VMLifeSpanKPI) Describe(ch chan<- *prometheus.Desc)

func (VMLifeSpanKPI) GetName

func (VMLifeSpanKPI) GetName() string

func (*VMLifeSpanKPI) Init

func (k *VMLifeSpanKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type VMMigrationStatisticsKPI

type VMMigrationStatisticsKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

Advanced statistics about openstack migrations.

func (*VMMigrationStatisticsKPI) Collect

func (k *VMMigrationStatisticsKPI) Collect(ch chan<- prometheus.Metric)

func (*VMMigrationStatisticsKPI) Describe

func (k *VMMigrationStatisticsKPI) Describe(ch chan<- *prometheus.Desc)

func (VMMigrationStatisticsKPI) GetName

func (VMMigrationStatisticsKPI) GetName() string

func (*VMMigrationStatisticsKPI) Init

func (k *VMMigrationStatisticsKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type VMwareHostContentionKPI

type VMwareHostContentionKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

func (*VMwareHostContentionKPI) Collect

func (k *VMwareHostContentionKPI) Collect(ch chan<- prometheus.Metric)

func (*VMwareHostContentionKPI) Describe

func (k *VMwareHostContentionKPI) Describe(ch chan<- *prometheus.Desc)

func (VMwareHostContentionKPI) GetName

func (VMwareHostContentionKPI) GetName() string

func (*VMwareHostContentionKPI) Init

func (k *VMwareHostContentionKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type VMwareProjectNoisinessKPI

type VMwareProjectNoisinessKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

func (*VMwareProjectNoisinessKPI) Collect

func (k *VMwareProjectNoisinessKPI) Collect(ch chan<- prometheus.Metric)

func (*VMwareProjectNoisinessKPI) Describe

func (k *VMwareProjectNoisinessKPI) Describe(ch chan<- *prometheus.Desc)

func (VMwareProjectNoisinessKPI) GetName

func (*VMwareProjectNoisinessKPI) Init

func (k *VMwareProjectNoisinessKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

type VMwareResourceCapacityKPI

type VMwareResourceCapacityKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}] // No options passed through yaml config
	// contains filtered or unexported fields
}

func (*VMwareResourceCapacityKPI) Collect

func (k *VMwareResourceCapacityKPI) Collect(ch chan<- prometheus.Metric)

func (*VMwareResourceCapacityKPI) Describe

func (k *VMwareResourceCapacityKPI) Describe(ch chan<- *prometheus.Desc)

func (VMwareResourceCapacityKPI) GetName

func (*VMwareResourceCapacityKPI) Init

func (k *VMwareResourceCapacityKPI) Init(db *db.DB, client client.Client, opts conf.RawOpts) error

Jump to

Keyboard shortcuts

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