The ceilometer.compute.virt.libvirt.inspector Module

The ceilometer.compute.virt.libvirt.inspector Module

Implementation of Inspector abstraction for libvirt.

class ceilometer.compute.virt.libvirt.inspector.LibvirtInspector(conf)[source]

Bases: ceilometer.compute.virt.inspector.Inspector

connection
inspect_disk_info(**kw)[source]

Inspect the disk information for an instance.

Parameters:
  • instance – the target instance
  • duration – the last ‘n’ seconds, over which the value should be inspected
Returns:

for each disk , capacity , allocation and usage

inspect_disks(**kw)[source]

Inspect the disk statistics for an instance.

Parameters:
  • instance – the target instance
  • duration – the last ‘n’ seconds, over which the value should be inspected
Returns:

for each disk, the number of bytes & operations read and written, and the error count

inspect_instance(instance, *args, **kwargs)
inspect_vnics(**kw)[source]

Inspect the vNIC statistics for an instance.

Parameters:
  • instance – the target instance
  • duration – the last ‘n’ seconds, over which the value should be inspected
Returns:

for each vNIC, the number of bytes & packets received and transmitted

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.