Deprecate the ceilometer collector
The Ceilometer API has been deprecated for a while now. Some of the meter types queried by the collector (instance, image) have been removed from the Telemetry project in the Ocata release. In order to make sure that the warning will be seen, it has been put in the constructor of the Worker class. We should completely remove the collector during the next release cycle. Change-Id: Ieaa2bc585d0cbcf7b035da627e189c920c9a8e08
This commit is contained in:
parent
c89a3435c5
commit
da7dbc4593
|
@ -153,6 +153,10 @@ class APIWorker(BaseWorker):
|
|||
class Worker(BaseWorker):
|
||||
def __init__(self, collector, storage, tenant_id=None):
|
||||
self._collector = collector
|
||||
if getattr(self._collector, 'collector_name') == 'ceilometer':
|
||||
LOG.warning('Ceilometer collector is deprecated and will be '
|
||||
'removed during R cycle. This collector only works '
|
||||
'with versions prior to Ocata')
|
||||
self._storage = storage
|
||||
self._period = METRICS_CONF['period']
|
||||
self._wait_time = METRICS_CONF['wait_periods'] * self._period
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
deprecations:
|
||||
- |
|
||||
The ceilometer collector has been deprecated. Gnocchi should be used by
|
||||
default. The collector will be removed during the Rocky development cycle.
|
Loading…
Reference in New Issue