diff options
author | Chris Dent <chdent@redhat.com> | 2014-10-06 20:00:08 +0100 |
---|---|---|
committer | Eoghan Glynn <eglynn@redhat.com> | 2014-10-07 13:04:33 +0100 |
commit | cac21417118c9aa72705088f8d04ff5250d93123 (patch) | |
tree | f5c471cbfd72faee55e89949a088f40590dabbec /ceilometer/ipmi/notifications/ironic.py | |
parent | 8b61fdd2db831dcb651c42c9bcdafc1c8aa37451 (diff) | |
download | ceilometer-cac21417118c9aa72705088f8d04ff5250d93123.tar.gz |
Include a 'node' key and value in ipmi metadata
The ipmi meters use resource_ids which make it challenging
to select information for all the sensors of a particular type.
This change adds metadata that identifies the physical node on
which a sensor exists.
There are still remaining issues with the naming of ipmi and
sensor-related meters that will need to be addressed separately.
Closes-Bug: 1377157
Change-Id: Ib53755112e4757aa53ab60079f3c555e21a72b63
(cherry picked from commit 3b20fa08527170aaca38253277feedf0f2d11217)
Diffstat (limited to 'ceilometer/ipmi/notifications/ironic.py')
-rw-r--r-- | ceilometer/ipmi/notifications/ironic.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ceilometer/ipmi/notifications/ironic.py b/ceilometer/ipmi/notifications/ironic.py index 4e37eeaa..f3357146 100644 --- a/ceilometer/ipmi/notifications/ironic.py +++ b/ceilometer/ipmi/notifications/ironic.py @@ -97,6 +97,7 @@ class SensorNotification(plugin.NotificationBase): def _package_payload(self, message, payload): # NOTE(chdent): How much of the payload should we keep? + payload['node'] = message['payload']['node_uuid'] info = {'publisher_id': message['publisher_id'], 'timestamp': message['payload']['timestamp'], 'event_type': message['payload']['event_type'], |