Move counter_source definition
The source of a Counter is not tight to the collector publishing system at all, so move that a level above, otherwise code which don't import the collector will fail using this variable. Change-Id: Ie70b9b544505a8c7d9841163a7d5960cf677f3e4 Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
3340461656
commit
1cb2adfe23
@ -29,10 +29,6 @@ METER_OPTS = [
|
||||
default='change this or be hacked',
|
||||
help='Secret value for signing metering messages',
|
||||
),
|
||||
cfg.StrOpt('counter_source',
|
||||
default='openstack',
|
||||
help='Source for counters emited on this instance',
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
|
@ -23,6 +23,16 @@ in by the plugins that create them.
|
||||
"""
|
||||
|
||||
import collections
|
||||
from ceilometer.openstack.common import cfg
|
||||
|
||||
OPTS = [
|
||||
cfg.StrOpt('counter_source',
|
||||
default='openstack',
|
||||
help='Source for counters emited on this instance'),
|
||||
]
|
||||
|
||||
cfg.CONF.register_opts(OPTS)
|
||||
|
||||
|
||||
# Fields explanation:
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user