The ceilometer.compute.virt.inspector Module

Inspector abstraction for read-only access to hypervisors.

class ceilometer.compute.virt.inspector.CPUStats

Bases: tuple

CPUStats(number, time)

class ceilometer.compute.virt.inspector.Disk

Bases: tuple

Disk(device,)

class ceilometer.compute.virt.inspector.DiskStats

Bases: tuple

DiskStats(read_bytes, read_requests, write_bytes, write_requests, errors)

class ceilometer.compute.virt.inspector.Inspector[source]

Bases: object

inspect_cpus(instance_name)[source]

Inspect the CPU statistics for an instance.

Parameters:instance_name – the name of the target instance
Returns:the number of CPUs and cumulative CPU time
inspect_disks(instance_name)[source]

Inspect the disk statistics for an instance.

Parameters:instance_name – the name of the target instance
Returns:for each disk, the number of bytes & operations read and written, and the error count
inspect_instances()[source]

List the instances on the current host.

inspect_vnics(instance_name)[source]

Inspect the vNIC statistics for an instance.

Parameters:instance_name – the name of the target instance
Returns:for each vNIC, the number of bytes & packets received and transmitted
exception ceilometer.compute.virt.inspector.InspectorException(message=None)[source]

Bases: exceptions.Exception

class ceilometer.compute.virt.inspector.Instance

Bases: tuple

Instance(name, UUID)

exception ceilometer.compute.virt.inspector.InstanceNotFoundException(message=None)[source]

Bases: ceilometer.compute.virt.inspector.InspectorException

class ceilometer.compute.virt.inspector.Interface

Bases: tuple

Interface(name, mac, fref, parameters)

class ceilometer.compute.virt.inspector.InterfaceStats

Bases: tuple

InterfaceStats(rx_bytes, rx_packets, tx_bytes, tx_packets)

Previous topic

The ceilometer.compute.pollsters Module

Next topic

The ceilometer.compute.virt.libvirt.inspector Module

This Page