kvm

package
v0.0.0-...-ddb491b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeExporterHostCPUUsage

type NodeExporterHostCPUUsage struct {
	ComputeHost string  `db:"compute_host"`
	AvgCPUUsage float64 `db:"avg_cpu_usage"`
	MaxCPUUsage float64 `db:"max_cpu_usage"`
}

Feature that maps CPU usage of kvm hosts.

func (NodeExporterHostCPUUsage) Indexes

func (NodeExporterHostCPUUsage) Indexes() []db.Index

Indexes for the feature.

func (NodeExporterHostCPUUsage) TableName

func (NodeExporterHostCPUUsage) TableName() string

Table under which the feature is stored.

type NodeExporterHostCPUUsageExtractor

type NodeExporterHostCPUUsageExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		NodeExporterHostCPUUsage,
	]
}

Extractor that extracts CPU usage of kvm hosts and stores it as a feature into the database.

func (*NodeExporterHostCPUUsageExtractor) Extract

Extract CPU usage of kvm hosts.

func (*NodeExporterHostCPUUsageExtractor) GetName

Name of this feature extractor that is used in the yaml config, for logging etc.

func (NodeExporterHostCPUUsageExtractor) Triggers

Get message topics that trigger a re-execution of this extractor.

type NodeExporterHostMemoryActive

type NodeExporterHostMemoryActive struct {
	ComputeHost     string  `db:"compute_host"`
	AvgMemoryActive float64 `db:"avg_memory_active"`
	MaxMemoryActive float64 `db:"max_memory_active"`
}

Feature that maps memory active percentage of kvm hosts.

func (NodeExporterHostMemoryActive) Indexes

Indexes for the feature.

func (NodeExporterHostMemoryActive) TableName

Table under which the feature is stored.

type NodeExporterHostMemoryActiveExtractor

type NodeExporterHostMemoryActiveExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		NodeExporterHostMemoryActive,
	]
}

Extractor that extracts how much memory of kvm hosts is active and stores it as a feature into the database.

func (*NodeExporterHostMemoryActiveExtractor) Extract

Extract how much memory of kvm hosts is active.

func (*NodeExporterHostMemoryActiveExtractor) GetName

Name of this feature extractor that is used in the yaml config, for logging etc.

func (NodeExporterHostMemoryActiveExtractor) Triggers

Get message topics that trigger a re-execution of this extractor.

Jump to

Keyboard shortcuts

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