Documentation ¶
Index ¶
- Constants
- Variables
- func NewBlockCollector(parent *vmCollector) *vmBlockCollector
- func NewCpuCollector(parent *vmCollector) *cpuCollector
- func NewInterfaceStatCollector(parent *vmCollector) *interfaceStatCollector
- func NewMemoryCollector(parent *vmCollector) *memoryStatCollector
- func NewVmGeneralCollector(parent *vmCollector) *vmGeneralCollector
- func SshUri(host string, keyFile string) string
- type Collector
- type Domain
- type DomainImpl
- func (d *DomainImpl) BlockInfo(dev string) (res VirDomainBlockInfo, err error)
- func (d *DomainImpl) BlockStats(dev string) (res VirDomainBlockStats, err error)
- func (d *DomainImpl) CpuStats() (res VirDomainCpuStats, err error)
- func (d *DomainImpl) GetInfo() (res DomainInfo, err error)
- func (d *DomainImpl) GetName() (string, error)
- func (d *DomainImpl) GetXML() (string, error)
- func (d *DomainImpl) InterfaceStats(interfaceName string) (res VirDomainInterfaceStats, err error)
- func (d *DomainImpl) MemoryStats() (res VirDomainMemoryStat, err error)
- type DomainInfo
- type Driver
- type DriverImpl
- type LogbackCpuVal
- type VirDomainBlockInfo
- type VirDomainBlockStats
- type VirDomainCpuStats
- type VirDomainInterfaceStats
- type VirDomainMemoryStat
Constants ¶
View Source
const ( NoFlags = 0 FetchDomainsFlags = lib.CONNECT_LIST_DOMAINS_ACTIVE | lib.CONNECT_LIST_DOMAINS_RUNNING MaxNumMemoryStats = 8 )
View Source
const LocalUri = "qemu:///system"
Variables ¶
View Source
var DomainBlockXPath = xmlpath.MustCompile("/domain/devices/disk[@device=\"disk\"]/target/@dev")
We should possibly add a filter on the type, such as [@type=\"file\"] or [@type=\"network\"]
View Source
var DomainInterfaceXPath = xmlpath.MustCompile("/domain/devices/interface/target/@dev")
Functions ¶
func NewBlockCollector ¶
func NewBlockCollector(parent *vmCollector) *vmBlockCollector
func NewCpuCollector ¶
func NewCpuCollector(parent *vmCollector) *cpuCollector
func NewInterfaceStatCollector ¶
func NewInterfaceStatCollector(parent *vmCollector) *interfaceStatCollector
func NewMemoryCollector ¶
func NewMemoryCollector(parent *vmCollector) *memoryStatCollector
func NewVmGeneralCollector ¶
func NewVmGeneralCollector(parent *vmCollector) *vmGeneralCollector
Types ¶
type Collector ¶
type Collector struct { collector.AbstractCollector // contains filtered or unexported fields }
func NewLibvirtCollector ¶
func (*Collector) MetricsChanged ¶
type Domain ¶
type Domain interface { GetName() (string, error) GetXML() (string, error) GetInfo() (DomainInfo, error) CpuStats() (VirDomainCpuStats, error) BlockStats(dev string) (VirDomainBlockStats, error) BlockInfo(dev string) (VirDomainBlockInfo, error) MemoryStats() (VirDomainMemoryStat, error) InterfaceStats(interfaceName string) (VirDomainInterfaceStats, error) }
type DomainImpl ¶
type DomainImpl struct {
// contains filtered or unexported fields
}
func (*DomainImpl) BlockInfo ¶
func (d *DomainImpl) BlockInfo(dev string) (res VirDomainBlockInfo, err error)
func (*DomainImpl) BlockStats ¶
func (d *DomainImpl) BlockStats(dev string) (res VirDomainBlockStats, err error)
func (*DomainImpl) CpuStats ¶
func (d *DomainImpl) CpuStats() (res VirDomainCpuStats, err error)
func (*DomainImpl) GetInfo ¶
func (d *DomainImpl) GetInfo() (res DomainInfo, err error)
func (*DomainImpl) GetName ¶
func (d *DomainImpl) GetName() (string, error)
func (*DomainImpl) GetXML ¶
func (d *DomainImpl) GetXML() (string, error)
func (*DomainImpl) InterfaceStats ¶
func (d *DomainImpl) InterfaceStats(interfaceName string) (res VirDomainInterfaceStats, err error)
func (*DomainImpl) MemoryStats ¶
func (d *DomainImpl) MemoryStats() (res VirDomainMemoryStat, err error)
type DomainInfo ¶
type DriverImpl ¶
type DriverImpl struct {
// contains filtered or unexported fields
}
func (*DriverImpl) Close ¶
func (d *DriverImpl) Close() (err error)
func (*DriverImpl) Connect ¶
func (d *DriverImpl) Connect(uri string) error
func (*DriverImpl) ListDomains ¶
func (d *DriverImpl) ListDomains() ([]Domain, error)
type LogbackCpuVal ¶
type LogbackCpuVal uint64
func (LogbackCpuVal) AddValue ¶
func (val LogbackCpuVal) AddValue(logback collector.LogbackValue) collector.LogbackValue
type VirDomainBlockInfo ¶
type VirDomainBlockStats ¶
type VirDomainCpuStats ¶
type VirDomainInterfaceStats ¶
type VirDomainMemoryStat ¶
Click to show internal directories.
Click to hide internal directories.