Documentation
¶
Index ¶
Constants ¶
const ( Namespace = "openstack" Subsystem = "nova" )
Variables ¶
This section is empty.
Functions ¶
func RegisterCollectors ¶
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 *nova_api.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 *nova_api.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 *nova_api.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 *nova_api.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 *nova_api.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 (*ServicesCollector) Collect ¶
func (c *ServicesCollector) Collect(ch chan<- prometheus.Metric) error
func (*ServicesCollector) Describe ¶
func (c *ServicesCollector) Describe(ch chan<- *prometheus.Desc)