bin/nova/nova-hypervisor-metrics.py in sensu-plugins-openstack-0.0.5 vs bin/nova/nova-hypervisor-metrics.py in sensu-plugins-openstack-0.1.0
- old
+ new
@@ -52,7 +52,12 @@
for hv in hypervisors:
for key, value in hv.to_dict().iteritems():
if key in METRIC_KEYS:
output_metric('{}.{}.{}'.format(args.scheme, hv.hypervisor_hostname, key), value)
+ if not args.host:
+ for key, value in client.hypervisor_stats.statistics().to_dict().iteritems():
+ output_metric('{}.{}.{}'.format(args.scheme, 'total', key), value)
+
+
if __name__ == '__main__':
main()