a71028aa40
Magnum will have a background task that sends metrics to Ceilometer periodically. This patch make Ceilometer recongnize the metric format sent from Magnum. Below is a sample message sent from Magnum: { 'payload': { 'metrics': [ { 'unit': '%', 'name': 'memory_util', 'value': 12 } ], 'project_id': 'eba5e8c43b564e2597e884ff89d30800', 'user_id': '71a3a02f5591400a93f7145d555abbef', 'resource_id': '54123c4f-4d74-4da9-82e2-2e1432fe7522', } ... } Change-Id: I0df33af378ed850e8de64ba6a0563b898609b520 Partially-Implements: blueprint magnum-ceilometer-integration
42 lines
1.7 KiB
Python
42 lines
1.7 KiB
Python
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from oslo_config import cfg
|
|
|
|
EXCHANGE_OPTS = [
|
|
cfg.StrOpt('heat_control_exchange',
|
|
default='heat',
|
|
help="Exchange name for Heat notifications"),
|
|
cfg.StrOpt('glance_control_exchange',
|
|
default='glance',
|
|
help="Exchange name for Glance notifications."),
|
|
cfg.StrOpt('magnetodb_control_exchange',
|
|
default='magnetodb',
|
|
help="Exchange name for Magnetodb notifications."),
|
|
cfg.StrOpt('keystone_control_exchange',
|
|
default='keystone',
|
|
help="Exchange name for Keystone notifications."),
|
|
cfg.StrOpt('cinder_control_exchange',
|
|
default='cinder',
|
|
help="Exchange name for Cinder notifications."),
|
|
cfg.StrOpt('sahara_control_exchange',
|
|
default='sahara',
|
|
help="Exchange name for Data Processing notifications."),
|
|
cfg.StrOpt('swift_control_exchange',
|
|
default='swift',
|
|
help="Exchange name for Swift notifications."),
|
|
cfg.StrOpt('magnum_control_exchange',
|
|
default='magnum',
|
|
help="Exchange name for Magnum notifications."),
|
|
]
|