compute

package
v0.0.0-...-ccb81e8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailoverPartitionGraphKPI

type FailoverPartitionGraphKPI struct {
	// Common base for all KPIs that provides standard functionality.
	plugins.BaseKPI[struct{}]
	// contains filtered or unexported fields
}

KPI exposing the failover partition graph derived from the hypervisors and failover host reservations present in the cluster. The graph has two series:

  • cortex_failover_partition_graph_node{host,az,memory,cpu,vms} — one per hypervisor, whether or not it participates in any failover reservation, carrying the hypervisor's availability zone, total capacity and the number of vms currently running on it. The value is 1 when the hypervisor has at least one failover path (it is the source or target of an edge) and 0 when it has none.
  • cortex_failover_partition_graph_edge{source,target} 1 — one per directed evacuation path: every SourceHost of a failover host reservation may fail over onto the reservation's TargetHost.

func (*FailoverPartitionGraphKPI) Collect

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

Collect the failover partition graph metrics: one node per hypervisor and one edge per failover evacuation path.

func (*FailoverPartitionGraphKPI) Describe

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

Conform to the prometheus collector interface by providing the descriptors.

func (FailoverPartitionGraphKPI) GetName

func (*FailoverPartitionGraphKPI) Init

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

Initialize the KPI.

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

Jump to

Keyboard shortcuts

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