nova

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 13 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

View Source
const (
	Namespace = "openstack"
	Subsystem = "nova"
)

Variables

This section is empty.

Functions

func RegisterCollectors

func RegisterCollectors(registry *prometheus.Registry, novaDatabaseURL, novaApiDatabaseURL, placementDatabaseURL string, projectResolver *project.Resolver, logger *slog.Logger)

Types

type ComputeCollector

type ComputeCollector struct {
	// contains filtered or unexported fields
}

func NewComputeCollector

func NewComputeCollector(novaDB, novaApiDB *sql.DB, placementDB *placementdb.Queries, projectResolver *project.Resolver, logger *slog.Logger) *ComputeCollector

func (*ComputeCollector) Collect

func (c *ComputeCollector) Collect(ch chan<- prometheus.Metric)

func (*ComputeCollector) Describe

func (c *ComputeCollector) Describe(ch chan<- *prometheus.Desc)

type ComputeNodesCollector

type ComputeNodesCollector struct {
	// contains filtered or unexported fields
}

ComputeNodesCollector collects metrics about Nova compute nodes

func NewComputeNodesCollector

func NewComputeNodesCollector(logger *slog.Logger, novaDB *nova.Queries, novaAPIDB *novaapi.Queries) *ComputeNodesCollector

NewComputeNodesCollector creates a new compute nodes collector

func (*ComputeNodesCollector) Collect

func (c *ComputeNodesCollector) Collect(ch chan<- prometheus.Metric) error

Collect implements the prometheus.Collector interface

func (*ComputeNodesCollector) Describe

func (c *ComputeNodesCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type FlavorsCollector

type FlavorsCollector struct {
	// contains filtered or unexported fields
}

FlavorsCollector collects metrics about Nova flavors

func NewFlavorsCollector

func NewFlavorsCollector(logger *slog.Logger, novaDB *nova.Queries, novaAPIDB *novaapi.Queries) *FlavorsCollector

NewFlavorsCollector creates a new flavors collector

func (*FlavorsCollector) Collect

func (c *FlavorsCollector) Collect(ch chan<- prometheus.Metric) error

Collect implements the prometheus.Collector interface

func (*FlavorsCollector) Describe

func (c *FlavorsCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type LimitsCollector

type LimitsCollector struct {
	// contains filtered or unexported fields
}

LimitsCollector collects Nova limits metrics using placement as the authoritative source for quota usage (covers both DbQuotaDriver and UnifiedLimitsDriver).

func NewLimitsCollector

func NewLimitsCollector(logger *slog.Logger, novaDB *nova.Queries, novaAPIDB *novaapi.Queries, placementDB *placement.Queries, projectResolver *project.Resolver) *LimitsCollector

NewLimitsCollector creates a new limits collector

func (*LimitsCollector) Collect

func (c *LimitsCollector) Collect(ch chan<- prometheus.Metric) error

Collect implements the prometheus.Collector interface

func (*LimitsCollector) Describe

func (c *LimitsCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type QuotasCollector

type QuotasCollector struct {
	// contains filtered or unexported fields
}

QuotasCollector collects metrics about Nova quotas

func NewQuotasCollector

func NewQuotasCollector(logger *slog.Logger, novaDB *nova.Queries, novaAPIDB *novaapi.Queries, placementDB *placement.Queries, projectResolver *project.Resolver) *QuotasCollector

NewQuotasCollector creates a new quotas collector

func (*QuotasCollector) Collect

func (c *QuotasCollector) Collect(ch chan<- prometheus.Metric) error

Collect implements the prometheus.Collector interface

func (*QuotasCollector) Describe

func (c *QuotasCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type ServerCollector

type ServerCollector struct {
	// contains filtered or unexported fields
}

ServerCollector collects metrics about Nova servers (instances)

func NewServerCollector

func NewServerCollector(logger *slog.Logger, novaDB *nova.Queries, novaAPIDB *novaapi.Queries) *ServerCollector

NewServerCollector creates a new server collector

func (*ServerCollector) Collect

func (c *ServerCollector) Collect(ch chan<- prometheus.Metric) error

Collect implements the prometheus.Collector interface

func (*ServerCollector) Describe

func (c *ServerCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface

type ServicesCollector

type ServicesCollector struct {
	// contains filtered or unexported fields
}

func NewServicesCollector

func NewServicesCollector(logger *slog.Logger, novaDB *novadb.Queries, novaAPIDB *novaapidb.Queries) *ServicesCollector

func (*ServicesCollector) Collect

func (c *ServicesCollector) Collect(ch chan<- prometheus.Metric) error

func (*ServicesCollector) Describe

func (c *ServicesCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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