collectors

package
v0.0.0-...-72672a8 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KVM_DEBUG_DIR  = "/sys/kernel/debug/kvm"
	KVM_DEBUG_STAT = "kvm_stat"
	MAX_DEPTH      = 2
)

Variables

This section is empty.

Functions

func NewKvmDebugStatCollector

func NewKvmDebugStatCollector(logger *logrus.Logger) (easyxporter.AsyncCollector, error)

Types

type DirMap

type DirMap map[string]string

type VmInfo

type VmInfo struct {
	Pid         string `yaml:"pid"`
	KvmDebugDir string `yaml:"kvm_debug_dir"`
}

type VmMap

type VmMap struct {
	VmInfos map[string]VmInfo `yaml:"vm_infos"`
}

func ReadVmMapFromFile

func ReadVmMapFromFile(path string) (*VmMap, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳