Emit meter event for instance "exists"
bug 1005941 As we check the CPU utilization for an instance also emit a meter message indicating that the instance still exists. Change-Id: I7a592efc750c6e0a9a24394e05bd2d75da3377b6
This commit is contained in:
parent
a78f2f447f
commit
e16287766d
@ -122,6 +122,11 @@ class CPUPollster(plugin.PollsterBase):
|
||||
type='cumulative',
|
||||
volume=cpu_info['cpu_time'],
|
||||
)
|
||||
yield make_counter_from_instance(instance,
|
||||
name='instance',
|
||||
type='delta',
|
||||
volume=1,
|
||||
)
|
||||
except Exception as err:
|
||||
self.LOG.error('could not get CPU time for %s: %s',
|
||||
instance.uuid, err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user