ignore compute.instance.update for metrics

nova sends *.update events in between create.start and create.end
events and it might not have a host name (which we need). in reality
to any changes to vcpus/memory/root_gb/ephemeral_gb metrics will
either send a *.resize notification and/or require a reboot which
sends it's own notification. because of that, just ignore
*.update notifications

Change-Id: I1f975c2d73adfc19126d70bdb1ab452e37b278fd
closes-bug: #1718290
This commit is contained in:
gord chung 2018-01-15 14:51:31 +00:00 committed by gordon chung
parent 1a152e1498
commit 192620941c
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ metric:
lookup: ['name', 'unit', 'volume']
- name: 'memory'
event_type: &instance_events compute.instance.(?!create.start).*
event_type: &instance_events compute.instance.(?!create.start|update).*
type: 'gauge'
unit: 'MB'
volume: $.payload.memory_mb