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) GetName() string
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
type VMFaultsKPI ¶
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.
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
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
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
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) GetName() string