The ceilometer.compute.virt.inspector Module¶
Inspector abstraction for read-only access to hypervisors.
-
class
ceilometer.compute.virt.inspector.DiskIOPSStats(device, iops_count)¶ Bases:
tuple
-
class
ceilometer.compute.virt.inspector.DiskInfo(device, capacity, allocation, physical)¶ Bases:
tuple
-
class
ceilometer.compute.virt.inspector.DiskLatencyStats(device, disk_latency)¶ Bases:
tuple
-
class
ceilometer.compute.virt.inspector.DiskRateStats(device, read_bytes_rate, read_requests_rate, write_bytes_rate, write_requests_rate)¶ Bases:
tuple
-
class
ceilometer.compute.virt.inspector.DiskStats(device, read_bytes, read_requests, write_bytes, write_requests, errors)¶ Bases:
tuple
-
class
ceilometer.compute.virt.inspector.Inspector(conf)[source]¶ Bases:
object-
inspect_disk_info(instance, duration)[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_disk_iops(instance, duration)[source]¶ Inspect the disk statistics as rates 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 iops per second
-
inspect_disk_latency(instance, duration)[source]¶ Inspect the disk statistics as rates 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 average disk latency
-
inspect_disk_rates(instance, duration)[source]¶ Inspect the disk statistics as rates 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 per second, with the error count
-
inspect_disks(instance, duration)[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, duration)[source]¶ Inspect the CPU statistics for an instance.
Parameters: - instance – the target instance
- duration – the last ‘n’ seconds, over which the value should be inspected
Returns: the instance stats
-
-
exception
ceilometer.compute.virt.inspector.InspectorException(message=None)[source]¶ Bases:
exceptions.Exception
-
class
ceilometer.compute.virt.inspector.InterfaceRateStats(name, mac, fref, parameters, rx_bytes_rate, tx_bytes_rate)¶ Bases:
tuple
-
class
ceilometer.compute.virt.inspector.InterfaceStats(name, mac, fref, parameters, rx_bytes, tx_bytes, rx_packets, tx_packets, rx_drop, tx_drop, rx_errors, tx_errors)¶ Bases:
tuple