libvirt

package
v0.0.0-...-721076f Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVM

type KVM struct {
	Hostname     string
	MetricGroups []*MetricGroup
}

VCenter description qemu+tcp://172.29.231.80/system

func (*KVM) CollectDomain

func (kvm *KVM) CollectDomain(domain *libvirt.Domain) ([]backend.Point, error)

CollectDomain extracts Prometheus metrics from a libvirt domain.

func (*KVM) Connect

func (vcenter *KVM) Connect() (*libvirt.Connect, error)

func (*KVM) Query

func (kvm *KVM) Query(interval int, channel *chan []backend.Point)

func (*KVM) QueryHost

func (kvm *KVM) QueryHost(channel *chan backend.HostStuct)

type Metric

type Metric struct {
	Definition []MetricDef
}

Metrics description in config

type MetricDef

type MetricDef struct {
	Metric string
}

Metric Definition

type MetricGroup

type MetricGroup struct {
	Metrics []MetricDef
}

Metric Grouping for retrieval

Jump to

Keyboard shortcuts

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